From 64062d6d6eba66332fdc6f653d47b9e166f13f4c Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 16 Apr 2024 08:22:38 +0200 Subject: [PATCH] added bindsym for work host --- roles/sway/templates/hosts/sway/work/config.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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####################################################