about summary refs log tree commit diff stats
path: root/config/cwmrc
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2020-06-29 19:45:18 -0700
committerensa <psii@riseup.net>2020-06-29 19:45:18 -0700
commite1d03e2fe607c5e1643be186c4ce4031ae1004e0 (patch)
treeee249107b5fb051f8d11e6c87e2e5e19775c5daa /config/cwmrc
parenta11f7c357236afea1b00df5f85dc8674f5f1d661 (diff)
downloadcfg-e1d03e2fe607c5e1643be186c4ce4031ae1004e0.tar.gz
bin/fl added, lh reworked, opener renamed, data/applications removed
bin/
	fl: finds links, sends list to dmenu so user can choose one to copy to the
	clipboard
	lh:
		replaced sed invocations with lstrip() invocations
		redir handling changed to function findredir(), which loops over curl's
		output, only outputting location urls
		changed case statement to look for .extensions instead of the end of the url
		local files are now sent to bin/op for processing
		mpv given --no-terminal flag for no output instead of redirection shit
		similarly, sxiv is given -q (and -p to not cache)
	op:
		formerly opener
		changed error message to be more portable
	prompt:
		removed help text
	pw:
		doesn't need to be in a variable
	rsschk:
		redesigned after an eternity
		uses a modified re_urls, looking for .rss and .xml urls
		generally smaller
	shenv:
		uses ${var:=val}
		specifies /bin/sh
	xbg:
		removed .fehbg handling
config/
	aliasrc:
		e and v set TERM to xterm-256color, otherwise vis freaks out
	cwmrc:
		urgencyborder color added (with color1)
		ungroupborder changed to color5
		program list removed
		4-Return set to $TERMINAL
		4S-r rebound to restart
		4-X set to $LOCK
		prompt binds fixed
	dunst/dunstrc:
		icons disabled
	ksh/functions/l.:
		changed to ksh function
		for non-current directories, changes there in a subshell and uses that
		current directory, sending an error message if the directory doesn't exist
	lf/lfrc:
		cmd open removed
		cmd ttmsh fixed
	shrc:
		removed ALTSCR
		added OPENER=op
		IRC_SERVERS_FILE removed
		TODO changed to correct path
		GOCACHE and GOBIN added, self-explanatory
data/
	applications/:
		removed
	mailcap:
		changed to relegate most of its functionality to bin/op
Diffstat (limited to 'config/cwmrc')
-rw-r--r--config/cwmrc18
1 files changed, 7 insertions, 11 deletions
diff --git a/config/cwmrc b/config/cwmrc
index 0a34d84..cc3b5e4 100644
--- a/config/cwmrc
+++ b/config/cwmrc
@@ -13,10 +13,11 @@ autogroup 9 pass
 #aesthetics
 fontname "Cozette:style=Medium:pixelsize=11"
 borderwidth 1
+color urgencyborder	"#cc3214"
 color activeborder	"#6b996b"
 color inactiveborder	"#4c4635"
 color groupborder	"#3c7b7f"
-color ungroupborder	"#cc3214"
+color ungroupborder	"#7a4955"
 color menubg		"#14130e"
 color menufg		"#b7a980"
 color font		"#3d6266"
@@ -25,15 +26,11 @@ color selfont		"#72694f"
 #don't want any default keys
 unbind-key all
 unbind-mouse all
-#program list
-command term xterm
-command lock slock
 #program spawning
 #bind-key 4-d dmenu_run
 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 4-Return "sh -c \"$TERMINAL\""
 #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\""
@@ -46,7 +43,6 @@ 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 -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"
@@ -67,9 +63,9 @@ bind-key 4C-equal "xbacklight -inc 5"
 bind-key 4C-minus "xbacklight -dec 5"
 bind-key 4CS-equal "xbacklight -inc 15"
 bind-key 4CS-minus "xbacklight -dec 15"
-bind-key 4-x lock
-bind-key 4S-x "sh -c \"prompt 'shutdown computer?' 'doas shutdown -p now'\""
-bind-key 4S-BackSpace "sh -c \"prompt 'reboot computer?' 'doas shutdown -r now'\""
+bind-key 4-x "sh -c \"$LOCK\""
+bind-key 4S-x "prompt 'shutdown computer?' 'doas halt -p'"
+bind-key 4S-BackSpace "prompt 'reboot computer?' 'doas reboot'"
 bind-key 4-b "sh -c \"pkill dzen2||bar.sh\""
 #window nav
 bind-key 4-j window-cycle
@@ -115,7 +111,7 @@ bind-key 4-0 group-toggle-all
 bind-key 4S-0 window-stick
 bind-key 4C-0 window-hide
 #exits
-bind-key 4-F2 restart
+bind-key 4S-r restart
 bind-key 4S-Escape quit
 #group designation/nav
 bind-key 4-g window-group