From e7ba828de133bb9a14500dafb25e23624bd838e0 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Fri, 1 Jul 2022 10:25:37 +0200 Subject: [PATCH] sway: play-pause on XF86AudioPlay --- config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config b/config index fca9c43..411c888 100644 --- a/config +++ b/config @@ -20,6 +20,7 @@ set $background $HOME/Pictures/wallpaper/bavarian_forest_5k_bw.jpg set $brightness_cmd $HOME/.config/sway/bin/sway_brightness set $output_cmd $HOME/.local/bin/swayout 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 $waybar_cmd $HOME/.config/sway/bin/start_waybar.sh 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 XF86MonBrightnessDown exec $brightness_cmd decrease # +## Media +# +bindsym XF86AudioPlay exec $media_cmd play-pause +# # ## Screenshot #