Add audiowheel
This commit is contained in:
parent
2075285a92
commit
422d921e79
4 changed files with 16 additions and 3 deletions
9
rc.lua
9
rc.lua
|
@ -57,6 +57,9 @@ for s in screen do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
audiowheel = require("audiowheel")-- { bg = "#ffff00aa" }
|
||||
|
||||
|
||||
-- {{{ Key bindings
|
||||
|
||||
binder = require("separable.binder")
|
||||
|
@ -67,6 +70,12 @@ binder.add_default_bindings()
|
|||
binder.add_bindings(tags.create_bindings())
|
||||
binder.add_bindings(require("mybindings"))
|
||||
|
||||
binder.add_bindings(awful.util.table.join(
|
||||
awful.key({}, "XF86AudioRaiseVolume", function() audiowheel:up() end),
|
||||
awful.key({}, "XF86AudioLowerVolume", function() audiowheel:down() end),
|
||||
awful.key({}, "XF86AudioMute", function() audiowheel:toggle() end)
|
||||
))
|
||||
|
||||
binder.apply()
|
||||
|
||||
-- }}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue