diff --git a/rc.lua b/rc.lua index 3656f3a..4d30f94 100644 --- a/rc.lua +++ b/rc.lua @@ -413,12 +413,20 @@ globalkeys = awful.util.table.join( -- Custom shortcuts awful.key({ }, "XF86AudioRaiseVolume", function() - awful.util.spawn("amixer set Master 3%+", false) - end, {description = "increase the volume by 3%", group="Fn Keys"}), + awful.util.spawn("amixer set Master 3%+", false) + end, {description = "increase the volume by 3%", group="Fn Keys"}), awful.key({ }, "XF86AudioLowerVolume", function() - awful.util.spawn("amixer set Master 3%-", false) - end, {description = "decrease the volume by 3%", group="Fn Keys"}), + awful.util.spawn("amixer set Master 3%-", false) + end, {description = "decrease the volume by 3%", group="Fn Keys"}), + + awful.key({modkey}, "Up", function() + awful.util.spawn("amixer sset Master 3%+", false) + end, {description = "increase the volume by 3%", group="Sound controls"}), + + awful.key({modkey}, "Down", function() + awful.util.spawn("amixer sset Master 3%-", false) + end, {description = "decrease the volume by 3%", group="Sound controls"}), awful.key({ }, "XF86AudioMute", function() awful.util.spawn("amixer set Master toggle", false)