From a11f7c357236afea1b00df5f85dc8674f5f1d661 Mon Sep 17 00:00:00 2001 From: ensa Date: Fri, 26 Jun 2020 17:04:50 -0700 Subject: improved lh, switched to catgirl bin/ lh: now resolves link shorteners first, so web browser is used less catgirl-open.sh: uses tabbed with xterm to put multiple catgirl clients on one "window" comm-sel: now uses catgirl-open.sh instead of epic5 in xterm cordless specifies config dir so non-standard config locations will work added different x class flags for different TERMINAL values config/ cwmrc: removed St and tabbed from autogroups, added tabbed-surf things generally fixed to accommodate for xterm ALTSCR removed $SCR invocations now include -u to hide the cursor window force-killing uses non-old $() syntax ksh/prompt.ksh: uses unicode halfbar instead of powerline triangles clears formatting at start of PS1 before coloring things --- config/cwmrc | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'config/cwmrc') diff --git a/config/cwmrc b/config/cwmrc index 8539b13..0a34d84 100644 --- a/config/cwmrc +++ b/config/cwmrc @@ -4,12 +4,11 @@ gap 13 0 0 0 sticky yes #autogroup rules autogroup 1 XTerm -autogroup 1 St autogroup 3 mail autogroup 4 comm autogroup 5 music autogroup 5 mpv -autogroup 8 tabbed +autogroup 8 tabbed-surf autogroup 9 pass #aesthetics fontname "Cozette:style=Medium:pixelsize=11" @@ -35,21 +34,21 @@ bind-key 4-d menu-exec bind-key 4S-d menu-cmd bind-key 4C-d menu-window-hidden bind-key 4-Return terminal -#bind-key 4S-Return "sh -c \"$TERMINAL -c popup" -bind-key 4-e "sh -c \"$TERMINAL -e $EDITOR\"" -#bind-key 4S-e "sh -c \"$TERMINAL -c popup -e $EDITOR\"" +#bind-key 4S-Return "sh -c \"$TERMINAL -class popup" +bind-key 4-e "sh -c \"$TERMINAL -e env TERM=xterm-256color $EDITOR\"" +#bind-key 4S-e "sh -c \"$TERMINAL -class popup -e env TERM=xterm-256color $EDITOR\"" bind-key 4-w "sh -c \"$BROWSER $HOMEPAGE\"" bind-key 4S-c "sh -c \"$COMM\"" -bind-key 4-a "sh -c \"$TERMINAL -c pass -e kpcli --kdb=$XDG_DATA_HOME/KeePass/database.kdbx\"" -bind-key 4-s "sh -c \"lh `xclip -o`\"" -bind-key 4S-s "sh -c \"lh `xclip -sel clip -o`\"" -bind-key 4-m "sh -c \"$ALTSCR -c musictui -e $MUSIC\"" -bind-key 4-c "sh -c \"$ALTSCR -c mail -e $MAILER\"" -bind-key 4-n "sh -c \"$ALTSCR -e $RSS\"" -bind-key 4-r "sh -c \"$ALTSCR -e $FILE\"" +bind-key 4-a "sh -c \"$TERMINAL -class pass -e kpcli --kdb=$HOME_DATA/KeePass/database.kdbx\"" +bind-key 4-s "sh -c \"lh $(xclip -o)\"" +bind-key 4S-s "sh -c \"lh $(xclip -sel clip -o)\"" +bind-key 4-m "sh -c \"$TERMINAL -class musictui -e $MUSIC\"" +bind-key 4-c "sh -c \"$TERMINAL -class mail -e $MAILER\"" +bind-key 4-n "sh -c \"$TERMINAL -e $RSS\"" +bind-key 4-r "sh -c \"$TERMINAL -e $FILE\"" bind-key 4S-r "sh -c \"$READER\"" -bind-key 4-p "sh -c \"$SCR $(xdg-user-dir PICTURES)/screenshot-$(date +%Y-%m-%d_%T).png\"" -bind-key 4S-p "sh -c \"$SCR -s $(xdg-user-dir PICTURES)/screenshot-$(date +%Y-%m-%d_%T).png\"" +bind-key 4-p "sh -c \"$SCR -u $(xdg-user-dir PICTURES)/screenshot-$(date +%Y-%m-%d_%T).png\"" +bind-key 4S-p "sh -c \"$SCR -us $(xdg-user-dir PICTURES)/screenshot-$(date +%Y-%m-%d_%T).png\"" bind-key 4S-comma "mpc -q prev" bind-key 4S-period "mpc -q next" bind-key 4-apostrophe "mpc -q single" @@ -102,7 +101,7 @@ bind-key 4-Tab group-cycle bind-key 4S-Tab group-rcycle #window killing bind-key 4-q window-close -bind-key 4S-q "sh -c \"kill -9 `xdotool getwindowfocus getwindowpid`\"" +bind-key 4S-q "sh -c \"kill -9 $(xdotool getwindowfocus getwindowpid)\"" #layouts bind-key 4-f window-maximize bind-key 4S-f window-fullscreen -- cgit 1.4.1-2-gfad0