diff options
Diffstat (limited to 'bin/comm-sel')
-rwxr-xr-x | bin/comm-sel | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/comm-sel b/bin/comm-sel index f67787f..0678679 100755 --- a/bin/comm-sel +++ b/bin/comm-sel @@ -1,9 +1,14 @@ #!/bin/sh -# sends a list of communication TUIs (e.g irssi) to dmenu and allows the user to choose one. +# sends a list of communication TUIs (e.g epic5) to dmenu and allows the user to choose one. # class "comm" is added to enable window managers (e.g dwm) to do specific things with them. -case "$(dmenu_path|grep -E "irssi|6cord|scli$"|dmenu -p "choose chat app:")" in - irssi) $TERMINAL -c comm -e irssi --home=$XDG_CONFIG_HOME/irssi&;; - 6cord) $TERMINAL -c comm -e 6cord&;; +# st-altscreen is a built of st that doesn't have scrollback or extra keybindings, so it doesn't get in the way of whatever binds clients have. +# as a result it's lighter than the build of st i use for interactive use. +if command -v st-altscreen>/dev/null; then + TERMINAL="st-altscreen" +fi +case "$(dmenu_path|grep -E "epic5$|6cord|scli$"|dmenu -p "choose chat app:")" in + epic5) $TERMINAL -c comm -e epic5 -l "$XDG_CONFIG_HOME/epic/epicrc" ensa&;; + 6cord) $TERMINAL -c comm -e env TERM=xterm 6cord&;; scli) $TERMINAL -c comm -e scli&;; *) notify-send "comm-sel error" "invalid program selection"&&return 1;; esac |