sway/media.conf: add XF86AudioNext & XF86AudioPrev (provided by BT devices)

This commit is contained in:
Aminda Suomalainen 2024-05-12 09:31:42 +03:00
parent dceb88b272
commit 7057e8fe1f
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -11,6 +11,8 @@ bindsym $mod+Shift+b exec blueman-manager
# Media keys
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause && notify-send -t 500 "Play-Pause pressed"
bindsym XF86AudioNext exec --no-startup-id playerctl next && notify-send -t 500 "Next pressed"
bindsym XF86AudioPrev exec --no-startup-id playerctl previous && notify-send -t 500 "Previous pressed"
# Volume keys NOTE: won't work if nothing is playing (which I consider an improvement
# over randomly stopping working as I enable and disable audio devices).
set $sink $(pactl list short sinks | grep RUNNING | cut -f1)