Feat: add volume controle keys

This commit is contained in:
Bertrand Benjamin 2020-04-22 09:10:02 +02:00
parent eff679529b
commit 7ecb216f35
1 changed files with 14 additions and 0 deletions

View File

@ -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")
),
]