diff options
Diffstat (limited to 'bin/run_with_dmenu.sh')
-rwxr-xr-x | bin/run_with_dmenu.sh | 8 |
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 |