diff options
Diffstat (limited to 'bin/comm-sel')
-rwxr-xr-x | bin/comm-sel | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/comm-sel b/bin/comm-sel index 3dc1527..70c2e77 100755 --- a/bin/comm-sel +++ b/bin/comm-sel @@ -6,8 +6,11 @@ case "$TERMINAL" in urxvt) CLASS='-name';; alacritty|kitty) CLASS='--class';; esac -case "$(dmenu_path|grep -E "catgirl$|scli$"|dmenu -p "choose chat app:")" in - catgirl) catgirl-open.sh &;; - scli) $TERMINAL $CLASS comm -e scli&;; - *) return;; -esac +while + case "$(dmenu_path|(grep -E 'catgirl$|profanity$';printf 'exit\n')|dmenu -p 'choose chat app:')" in + catgirl) catgirl-open.sh &;; + profanity) "$TERMINAL" "$CLASS" comm -e profanity&;; + *) return 1;; + esac +do : +done |