Do not start many alsamixer instances.
This commit is contained in:
parent
40908e3306
commit
3104af29d1
2
rc.lua
2
rc.lua
|
@ -269,7 +269,7 @@ local volicon = wibox.widget.imagebox()
|
|||
volicon:set_image(beautiful.widget_vol)
|
||||
volicon:buttons(
|
||||
awful.util.table.join(
|
||||
awful.button({ }, 1, function () awful.util.spawn("urxvt -e alsamixer --view=all") end),
|
||||
awful.button({ }, 1, function () os.execute("pgrep alsamixer || urxvt -e alsamixer --view=all &") end),
|
||||
awful.button({ }, 4, function () os.execute("pgrep -x amixer || amixer set Master 1%+") end),
|
||||
awful.button({ }, 5, function () os.execute("pgrep -x amixer || amixer set Master 1%-") end)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue