blob: f67787f9abb1fee5c2c2917bc9b995b19956ba09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
# sends a list of communication TUIs (e.g irssi) 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&;;
scli) $TERMINAL -c comm -e scli&;;
*) notify-send "comm-sel error" "invalid program selection"&&return 1;;
esac
|