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