From 8dc21f5cdc870c8ff253c1e09aa5280ed2449c29 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 30 Jul 2020 10:53:26 +0200 Subject: [PATCH] [qtile] Added keyboard shortcurs for volume and backlight --- qtile/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qtile/config.py b/qtile/config.py index 0cd85f2..11aaaee 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -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")),