diff options
author | ensa <psii@riseup.net> | 2020-07-08 15:32:24 -0700 |
---|---|---|
committer | ensa <psii@riseup.net> | 2020-07-08 15:32:24 -0700 |
commit | eec480ccb22f3166d723befc9522e8a25eabf8c1 (patch) | |
tree | 28ec200089f6d5797a06590defcb1c4ccf254c7c /bin/comm-sel | |
parent | 4606fd8469199d5497b4b2fa4ea74d237ec9688b (diff) | |
download | cfg-eec480ccb22f3166d723befc9522e8a25eabf8c1.tar.gz |
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.
Diffstat (limited to 'bin/comm-sel')
-rwxr-xr-x | bin/comm-sel | 4 |
1 files changed, 2 insertions, 2 deletions
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 |