1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

alsa/alsabar: fixed toggle call

This commit is contained in:
Luke Bonham 2015-04-23 09:13:38 +02:00
parent 87eafea63d
commit 926a63f282

View file

@ -501,23 +501,23 @@ globalkeys = awful.util.table.join(
-- ALSA volume control -- ALSA volume control
awful.key({ altkey }, "Up", awful.key({ altkey }, "Up",
function () function ()
awful.util.spawn(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel)) os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),
awful.key({ altkey }, "Down", awful.key({ altkey }, "Down",
function () function ()
awful.util.spawn(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel)) os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),
awful.key({ altkey }, "m", awful.key({ altkey }, "m",
function () function ()
awful.util.spawn(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel)) os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel))
--awful.util.spawn(string.format("amixer set %s toggle", volumewidget.channel)) --os.execute(string.format("amixer set %s toggle", volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),
awful.key({ altkey, "Control" }, "m", awful.key({ altkey, "Control" }, "m",
function () function ()
awful.util.spawn(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel)) os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel))
volumewidget.update() volumewidget.update()
end), end),