sway: play-pause on XF86AudioPlay

This commit is contained in:
Konstantin Koslowski 2022-07-01 10:25:37 +02:00
parent 603fa63b0e
commit e7ba828de1

5
config
View file

@ -20,6 +20,7 @@ set $background $HOME/Pictures/wallpaper/bavarian_forest_5k_bw.jpg
set $brightness_cmd $HOME/.config/sway/bin/sway_brightness set $brightness_cmd $HOME/.config/sway/bin/sway_brightness
set $output_cmd $HOME/.local/bin/swayout set $output_cmd $HOME/.local/bin/swayout
set $volume_cmd $HOME/.config/sway/bin/sway_volume set $volume_cmd $HOME/.config/sway/bin/sway_volume
set $media_cmd /usr/bin/playerctl
set $idle_cmd $HOME/.config/sway/bin/start_swayidle.sh set $idle_cmd $HOME/.config/sway/bin/start_swayidle.sh
set $waybar_cmd $HOME/.config/sway/bin/start_waybar.sh set $waybar_cmd $HOME/.config/sway/bin/start_waybar.sh
set $move_cmd $HOME/.config/sway/bin/sway_move set $move_cmd $HOME/.config/sway/bin/sway_move
@ -184,6 +185,10 @@ bindsym XF86AudioMute exec $volume_cmd mute
bindsym XF86MonBrightnessUp exec $brightness_cmd increase bindsym XF86MonBrightnessUp exec $brightness_cmd increase
bindsym XF86MonBrightnessDown exec $brightness_cmd decrease bindsym XF86MonBrightnessDown exec $brightness_cmd decrease
# #
## Media
#
bindsym XF86AudioPlay exec $media_cmd play-pause
#
# #
## Screenshot ## Screenshot
# #