diff --git a/roles/sway/templates/hosts/sway/work/config.j2 b/roles/sway/templates/hosts/sway/work/config.j2 index 1ebb4d9..71df79b 100644 --- a/roles/sway/templates/hosts/sway/work/config.j2 +++ b/roles/sway/templates/hosts/sway/work/config.j2 @@ -24,6 +24,20 @@ workspace $tag8 output $screen1 workspace $tag9 output $laptop workspace $tag10 output $laptop +# laptop bindsyms +bindsym XF86AudioRaiseVolume exec pamixer -ui 5 && \ + pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioLowerVolume exec pamixer -ud 5 && \ + pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioMute exec pamixer --toggle-mute && \ + ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || \ + pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioMicMute exec amixer set Capture toggle +bindsym XF86MonBrightnessUp exec brightnessctl set +10% && \ + brightnessctl -m | cut -d',' -f4 | tr -d '%' > $SWAYSOCK.wob +bindsym XF86MonBrightnessDown exec brightnessctl set 10%- && \ + brightnessctl -m | cut -d',' -f4 | tr -d '%' > $SWAYSOCK.wob + # syncthing exec_always bash -c "pgrep -x syncthing || syncthing" #INCLUDE####################################################