Add media keys

This commit is contained in:
Yorick Barbanneau 2023-03-11 02:54:17 +01:00
parent 6228340afb
commit d05ed674de

View file

@ -90,6 +90,18 @@ sway_keybindings:
- bindsym: '$mod+p'
action: 'scratchpad show'
# Media keys
- bindsym: '$mod+F1'
action: 'exec brightnessctl s 1%-'
- bindsym: '$mod+F2'
action: 'exec brightnessctl s +1%'
- bindsym: $mod+F3
action: exec pactl set-sink-volume @DEFAULT_SINK@ -5%
- bindsym: $mod+F4
action: exec pactl set-sink-volume @DEFAULT_SINK@ +5%
- bindsym: $mod+F5
action: exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# Mode resize
- bindsym: '$mod+r'
action: 'mode "resize"'