From feb01e618438f4cd3e55985c6fe9f303741d43c8 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 23 Apr 2022 16:55:24 +0430 Subject: updates --- bin/run_with_dmenu.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3