From 204abc1ebd3f60a9fbe5fac31b9f121958aff9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Tue, 19 Nov 2019 10:21:59 +0100 Subject: [PATCH] [i3] Add config for media controls --- i3/config | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/i3/config b/i3/config index 0d596c8..ca556c6 100644 --- a/i3/config +++ b/i3/config @@ -224,6 +224,17 @@ exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agen # autolock exec xautolock -time 5 -locker ~/bin/lock -notify 10 +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound + +# Media player controls +bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + # Shortcuts bindsym Mod4+F1 exec firefox bindsym Mod4+F2 exec nautilus