1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 20:41:22 +00:00

Merge pull request #270 from aajjbb/feature/powerarrow-dark-volume-mouse

[powerarrow-dark] use mouse scroll in volume widget
This commit is contained in:
Luca CPZ 2019-11-12 11:53:06 +00:00 committed by GitHub
commit f2d6c00a72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,6 +241,16 @@ theme.volume = lain.widget.alsa({
widget:set_markup(markup.font(theme.font, " " .. volume_now.level .. "% ")) widget:set_markup(markup.font(theme.font, " " .. volume_now.level .. "% "))
end 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 -- Net
local neticon = wibox.widget.imagebox(theme.widget_net) local neticon = wibox.widget.imagebox(theme.widget_net)