From eec480ccb22f3166d723befc9522e8a25eabf8c1 Mon Sep 17 00:00:00 2001 From: ensa Date: Wed, 8 Jul 2020 15:32:24 -0700 Subject: catgirl-open.sh simplified, lh now handles stdin bin/ bar.sh: doesn't specify width (defaults to display width) bother: incorrectly used last, now uses tail uses : instead of true (telling the shell to do nothing) catgirl-open.sh: tabbed now called with -c, network chosen before invoking tabbed just tests xprop instead of hacky $? handling comm-sel: no longer specifies config directory for cordless (cordless does this correctly now) lh: if no arguments are given, set $1 to standard input. turned actual link handling into a loop, lh can now be sent multiple links and handle them all in sequence. --- bin/comm-sel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/comm-sel') diff --git a/bin/comm-sel b/bin/comm-sel index ce2e99b..c5508cf 100755 --- a/bin/comm-sel +++ b/bin/comm-sel @@ -1,6 +1,6 @@ #!/bin/sh # sends a list of communication TUIs (e.g catgirl) 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. +# class "comm" is added to enable window managers (e.g ewm) to do specific things with them. case "$TERMINAL" in xterm) CLASS='-class';; urxvt) CLASS='-name';; @@ -8,7 +8,7 @@ case "$TERMINAL" in esac case "$(dmenu_path|grep -E "catgirl$|cordless|scli$"|dmenu -p "choose chat app:")" in catgirl) catgirl-open.sh &;; - cordless) $TERMINAL $CLASS comm -e env TERM=xterm-256color cordless -config-dir "$XDG_CONFIG_HOME/cordless" &;; + cordless) $TERMINAL $CLASS comm -e env TERM=xterm-256color cordless &;; scli) $TERMINAL $CLASS comm -e scli&;; *) return;; esac -- cgit 1.4.1-2-gfad0