From c3b78d929f3c0bf58890904ea3c07b470057b35f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 6 Jan 2021 21:28:14 +0300 Subject: feat: setup multimedia playback keys --- .config/i3/config | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.config/i3/config') diff --git a/.config/i3/config b/.config/i3/config index 1ad4c61..66604ff 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -20,6 +20,12 @@ bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAUL bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else $show_volume; fi" bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle +# Use playerctl to respond to multimedia keys +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioPrev exec playerctl previous +bindsym XF86AudioNext exec playerctl next + + # Screenshot via ImageMagick bindsym --release Shift+Print exec --no-startup-id screenshot.sh bindsym --release Print exec --no-startup-id screenshot.sh -window root -- cgit v1.2.3