mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 03:38:33 +02:00
widgets: make volume widget works with pulseaudio
Also add mute/unmute with right button.
This commit is contained in:
parent
5275a77cd3
commit
5671652669
1 changed files with 3 additions and 2 deletions
|
@ -107,8 +107,9 @@ vicious.register(volwidget, vicious.widgets.volume,
|
|||
2, "Master")
|
||||
volwidget:buttons(awful.util.table.join(
|
||||
awful.button({ }, 1, function () awful.util.spawn("pavucontrol", false) end),
|
||||
awful.button({ }, 4, function () awful.util.spawn("amixer -q -c 0 set Master 2dB+", false) end),
|
||||
awful.button({ }, 5, function () awful.util.spawn("amixer -q -c 0 set Master 2dB-", false) end)
|
||||
awful.button({ }, 3, function () awful.util.spawn("amixer -q sset Master toggle", false) end),
|
||||
awful.button({ }, 4, function () awful.util.spawn("amixer -q sset Master 5%+", false) end),
|
||||
awful.button({ }, 5, function () awful.util.spawn("amixer -q sset Master 5%-", false) end)
|
||||
))
|
||||
|
||||
-- File systems
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue