aboutsummaryrefslogtreecommitdiff
path: root/dot-config/sway
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-11-02 00:47:26 +0000
committerBlake Romero <blake@blkrom.com>2024-11-02 00:47:26 +0000
commit0d1a0f05e3af76096684414c39c1223d5c628379 (patch)
tree5c307a25dc5420e70b516be770b5719f33c254cd /dot-config/sway
parentc2cbcef96a1c19220683302764a4e6e4261f30e9 (diff)
Add keybindings for audio & power off buttons
Diffstat (limited to 'dot-config/sway')
-rw-r--r--dot-config/sway/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/dot-config/sway/config b/dot-config/sway/config
index d491664..7121979 100644
--- a/dot-config/sway/config
+++ b/dot-config/sway/config
@@ -73,9 +73,15 @@ bindsym $mod+r reload
bindsym $mod+e exec swaynag -t warning -m 'Do you want to logout from Sway?' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+Escape exit
+bindsym XF86PowerOff exec sudo halt
+
bindsym --locked XF86MonBrightnessUp exec brightnessctl --save set +10%
bindsym --locked XF86MonBrightnessDown exec brightnessctl --save --min-value=10 set 10-%
+bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle
+bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 10%+
+bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 10%-
+
bindsym $mod+h splith
bindsym $mod+v splitv