Set media keys

This commit is contained in:
Rodolphe Bréard 2023-10-15 12:04:36 +02:00
parent e828062b6d
commit efbc2e572b
2 changed files with 11 additions and 1 deletions

View file

@ -163,3 +163,13 @@ bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Media keys
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+
bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl=, XF86AudioPlay, exec, playerctl --player rhythmbox play-pause
bindl=, XF86AudioPrev, exec, playerctl --player rhythmbox previous
bindl=, XF86AudioNext, exec, playerctl --player rhythmbox next
bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5%
bindl=, XF86MonBrightnessDown, exec, brightnessctl set 5%-