From 4684d80b6271dd775cd23dabf2b91d6ce56fa33a Mon Sep 17 00:00:00 2001 From: Ensa Date: Fri, 20 Dec 2019 00:14:09 -0800 Subject: first significant commit see README.md for information --- bin/comm-sel | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/comm-sel (limited to 'bin/comm-sel') 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 -- cgit