From 7ecb216f3519896368dfccdf9e62917cb450f80f Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 22 Apr 2020 09:10:02 +0200 Subject: [PATCH] Feat: add volume controle keys --- config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.py b/config.py index 4bc63d7..374a988 100644 --- a/config.py +++ b/config.py @@ -82,6 +82,20 @@ keys = [ Key([MOD, "control"], "r", lazy.restart()), Key([MOD, "control"], "q", lazy.shutdown()), Key([MOD, "control"], "equal", lazy.spawn("systemctl suspend")), + + # Change the volume if our keyboard has keys + Key( + [], "XF86AudioRaiseVolume", + lazy.spawn("pamixer -i 2") + ), + Key( + [], "XF86AudioLowerVolume", + lazy.spawn("pamixer -d 2") + ), + Key( + [], "XF86AudioMute", + lazy.spawn("pamixer -t") + ), ]