diff options
| author | Ensa <psychoticfervor@tuta.io> | 2019-12-20 00:14:09 -0800 |
|---|---|---|
| committer | Ensa <psychoticfervor@tuta.io> | 2019-12-20 00:14:09 -0800 |
| commit | 4684d80b6271dd775cd23dabf2b91d6ce56fa33a (patch) | |
| tree | ddb6c6219e213132b8500e016b1ce238aa71029d /bin/comm-sel | |
| parent | f733ca7c8041866df27752c8e0c2610e0ecef6a7 (diff) | |
| download | cfg-4684d80b6271dd775cd23dabf2b91d6ce56fa33a.tar.gz | |
first significant commit
see README.md for information
Diffstat (limited to 'bin/comm-sel')
| -rwxr-xr-x | bin/comm-sel | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/comm-sel b/bin/comm-sel new file mode 100755 index 0000000..f67787f --- /dev/null +++ b/bin/comm-sel @@ -0,0 +1,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 |