diff options
-rw-r--r-- | bindings.lua | 1 | ||||
-rw-r--r-- | utils.lua | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua index 08ac445..087e4c3 100644 --- a/bindings.lua +++ b/bindings.lua @@ -34,6 +34,7 @@ function M.create(workspace) -- audio control awful.key({ modkey }, "Prior", function () utils.vol_control(1) end), awful.key({ modkey }, "Next", function () utils.vol_control(-1) end), + awful.key({ modkey }, "End", utils.vol_mute_toggle), awful.key({ modkey }, "grave", function () awful.spawn("mpc toggle") end), awful.key({ modkey }, "b", function () awful.spawn("mpc next") end), awful.key({ modkey }, "p", function () awful.spawn("mpc prev") end), @@ -35,6 +35,10 @@ function M.vol_control(n) awful.spawn(cmd) end +function M.vol_mute_toggle() + awful.spawn("amixer -q set Master toggle") +end + function M.spawn_current(command) awful.spawn(command, {tag = mouse.screen.selected_tag}) end |