Do not start many alsamixer instances.

This commit is contained in:
Kolan Sh 2017-07-29 12:48:28 +03:00
parent 40908e3306
commit 3104af29d1
1 changed files with 1 additions and 1 deletions

2
rc.lua
View File

@ -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)
)