summaryrefslogtreecommitdiff
path: root/bindings.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-10-26 21:05:31 +0200
committerAnton Khirnov <anton@khirnov.net>2021-10-26 21:05:31 +0200
commit43470e3b516b49e7bdb7559e9ed0af0809d16212 (patch)
tree831733644250aeb53110e00b38934c2a37fc8636 /bindings.lua
parent3d1e5438ada61e406de6dccc0b44e7491bf6561d (diff)
bindings: add a binding for toggling auto-mute
Diffstat (limited to 'bindings.lua')
-rw-r--r--bindings.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua
index 8aa9d48..ebaf864 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -35,6 +35,7 @@ function M.create(workspace)
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 }, "Delete", function () utils.auto_mute_toggle(workspace.notify_tbl, 'auto_mute') end),
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),