sway: Add multimedia keys for mpd

master
Simon Bruder 2020-11-05 15:41:32 +01:00
parent 8b99b6e048
commit f14a4ead1c
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioPrev exec mpc next
bindsym XF86AudioNext exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym $mod+y exec "swaylock -f -i $wallpaper"
bindsym --locked $mod+q exec 'test $(swaymsg -t get_outputs | jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"'