about summary refs log tree commit diff stats
path: root/bin/comm-sel
diff options
context:
space:
mode:
Diffstat (limited to 'bin/comm-sel')
-rwxr-xr-xbin/comm-sel9
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