[qtile] Added keyboard shortcurs for volume and backlight

This commit is contained in:
Marcel Kapfer 2020-07-30 10:53:26 +02:00
parent c7ce18e7ed
commit 8dc21f5cdc
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 8 additions and 0 deletions

View File

@ -71,6 +71,14 @@ keys = [
Key([mod], "Tab", lazy.next_layout()),
Key([mod], "w", lazy.window.kill()),
# Volume and Backlight keys
Key([], "XF86AudioLowerVolume", lazy.spawn("amixer set Master 5%- unmute")),
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer set Master 5%+ unmute")),
Key([], "XF86AudioMute", lazy.spawn("amixer set Master togglemute")),
Key([], "XF86AudioMicMute", lazy.spawn("amixer set Capture togglemute")),
Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -5")),
Key([], "XF86MonBrightnessUp", lazy.spawn("xbacklight +5")),
Key([mod, "control"], "r", lazy.restart()),
Key([mod, "control"], "q", lazy.shutdown()),
Key([mod], "r", lazy.spawn("rofi -show run")),