aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-04-23 12:25:24 +0000
committerterminaldweller <thabogre@gmail.com>2022-04-23 12:25:24 +0000
commitfeb01e618438f4cd3e55985c6fe9f303741d43c8 (patch)
tree950fea62831918499291509d329aa298c574e7ef /bin
parentupdate (diff)
downloadscripts-feb01e618438f4cd3e55985c6fe9f303741d43c8.tar.gz
scripts-feb01e618438f4cd3e55985c6fe9f303741d43c8.zip
updates
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run_with_dmenu.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/run_with_dmenu.sh b/bin/run_with_dmenu.sh
index a0dc7cf..bce0c00 100755
--- a/bin/run_with_dmenu.sh
+++ b/bin/run_with_dmenu.sh
@@ -1,6 +1,10 @@
#!/usr/bin/env zsh
. ~/scripts/zshrc_stripped.sh
-COMMAND=$(echo "" | dmenu -i -l 20 -p "Quick Term:")
+COMMAND=$(echo "" | dmenu -l 20 -p "Quick Term:")
RESULT=$(eval "$COMMAND")
-echo $RESULT | dmenu -i -l 20 -p "Quick Term Out:" | xsel -ib
+if [ "$COMMAND" = "getmangas" ]; then
+ echo "$RESULT" | sort | dmenu -D ">" -l 20 -p "Quick Term Out:" | xsel -ib
+else
+ echo "$RESULT" | dmenu -l 20 -p "Quick Term Out:" | xsel -ib
+fi