mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
Add usage for buttons 4/5 (mouse scroll) to the volume widget.
This commit is contained in:
parent
ce095c7bc3
commit
de8c49045d
|
@ -241,6 +241,16 @@ theme.volume = lain.widget.alsa({
|
|||
widget:set_markup(markup.font(theme.font, " " .. volume_now.level .. "% "))
|
||||
end
|
||||
})
|
||||
theme.volume.widget:buttons(awful.util.table.join(
|
||||
awful.button({}, 4, function ()
|
||||
awful.util.spawn("amixer set Master 1%+")
|
||||
theme.volume.update()
|
||||
end),
|
||||
awful.button({}, 5, function ()
|
||||
awful.util.spawn("amixer set Master 1%-")
|
||||
theme.volume.update()
|
||||
end)
|
||||
))
|
||||
|
||||
-- Net
|
||||
local neticon = wibox.widget.imagebox(theme.widget_net)
|
||||
|
|
Loading…
Reference in a new issue