diff options
author | terminaldweller <thabogre@gmail.com> | 2022-04-23 12:25:24 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-04-23 12:25:24 +0000 |
commit | feb01e618438f4cd3e55985c6fe9f303741d43c8 (patch) | |
tree | 950fea62831918499291509d329aa298c574e7ef /bin/run_with_dmenu.sh | |
parent | update (diff) | |
download | scripts-feb01e618438f4cd3e55985c6fe9f303741d43c8.tar.gz scripts-feb01e618438f4cd3e55985c6fe9f303741d43c8.zip |
updates
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 |