aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run_with_dmenu.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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