From 766a35d27e08d982fe0994f856ad9032b5d84752 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Sat, 6 Jul 2024 00:00:00 +0100 Subject: [PATCH] awesome: add space between keybindings --- config/awesome/rc.lua | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 8dad5f6..ce0a39b 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -391,10 +391,44 @@ globalkeys = gears.table.join( history_path = awful.util.get_cache_dir() .. "/history_eval", } end, { description = "lua execute prompt", group = "awesome" }), + -- Menubar awful.key({ modkey }, "p", function() menubar.show() - end, { description = "show the menubar", group = "launcher" }) + end, { description = "show the menubar", group = "launcher" }), + + -- Sound and volume keys + awful.key({}, "XF86AudioRaiseVolume", function() + awful.util.spawn "amixer -D pulse set Master '1000+'" + end), + + awful.key({}, "XF86AudioLowerVolume", function() + awful.util.spawn "amixer -D pulse set Master '1000-'" + end), + + awful.key({}, "XF86AudioMute", function() + awful.util.spawn "amixer -D pulse set Master toggle" + end), + + awful.key({ "Shift" }, "XF86AudioRaiseVolume", function() + awful.util.spawn "pamixer -i 10" + end), + + awful.key({ "Shift" }, "XF86AudioLowerVolume", function() + awful.util.spawn "pamixer -d 10" + end), + + awful.key({}, "XF86AudioMicMute", function() + awful.util.spawn "pamixer --mute" + end), + + awful.key({}, "XF86MonBrightnessDown", function() + awful.util.spawn "brightnessctl specific '10%-'" + end), + + awful.key({}, "XF86MonBrightnessUp", function() + awful.util.spawn "brightnessctl specific '+10%'" + end) ) clientkeys = gears.table.join(