various: new configs and tweaks
This commit is contained in:
parent
5c9eefa9c1
commit
f613a68945
12
.cwmrc
12
.cwmrc
|
@ -26,17 +26,17 @@ bind-key 4-Down window-snap-down
|
|||
bind-key 4-Return terminal
|
||||
bind-key 4-c "xterm -class Calc -e calc -d -m 0"
|
||||
|
||||
bind-key Print "~/.cwm_scripts/screenshot sel"
|
||||
bind-key C-Print "~/.cwm_scripts/screenshot win"
|
||||
bind-key CS-Print "~/.cwm_scripts/screenshot full"
|
||||
bind-key Print "/home/jbauer/.cwm_scripts/screenshot sel"
|
||||
bind-key C-Print "/home/jbauer/.cwm_scripts/screenshot win"
|
||||
bind-key CS-Print "/home/jbauer/.cwm_scripts/screenshot full"
|
||||
|
||||
bind-key XF86AudioPlay "playerctl play-pause"
|
||||
bind-key XF86AudioNext "playerctl previous"
|
||||
bind-key XF86AudioPrev "playerctl next"
|
||||
|
||||
bind-key XF86AudioRaiseVolume "~/.cwm_scripts/volctl raise"
|
||||
bind-key XF86AudioLowerVolume "~/.cwm_scripts/volctl lower"
|
||||
bind-key XF86AudioMute "~/.cwm_scripts/volctl toggle-mute"
|
||||
bind-key XF86AudioRaiseVolume "/home/jbauer/.cwm_scripts/volctl raise"
|
||||
bind-key XF86AudioLowerVolume "/home/jbauer/.cwm_scripts/volctl lower"
|
||||
bind-key XF86AudioMute "/home/jbauer/.cwm_scripts/volctl toggle-mute"
|
||||
|
||||
bind-mouse 4-1 window-move
|
||||
bind-mouse 4-2 window-close
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
permit persist :wheel
|
||||
permit nopass :wheel cmd /sbin/sysctl args machdep.lidaction=0
|
||||
permit nopass :wheel cmd /sbin/sysctl args machdep.lidaction=1
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
case "$2" in
|
||||
uaudio*)
|
||||
level="$(sndioctl -n output.level)"
|
||||
pkill -HUP sndiod
|
||||
sleep 0.5
|
||||
echo "Setting audio level to $level"
|
||||
sndioctl output.level="$level"
|
||||
;;
|
||||
esac
|
|
@ -1,3 +0,0 @@
|
|||
grep -q '^display.brightness=' /etc/wsconsctl.conf &&
|
||||
sed -i "s/^display.brightness=.*/$(wsconsctl display.brightness)/" /etc/wsconsctl.conf ||
|
||||
wsconsctl display.brightness >> /etc/wsconsctl.conf
|
Loading…
Reference in New Issue