|
|
@ -514,22 +514,22 @@ globalkeys = awful.util.table.join( |
|
|
|
-- ALSA volume control |
|
|
|
-- ALSA volume control |
|
|
|
awful.key({ altkey }, "Up", |
|
|
|
awful.key({ altkey }, "Up", |
|
|
|
function () |
|
|
|
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() |
|
|
|
volumewidget.update() |
|
|
|
end), |
|
|
|
end), |
|
|
|
awful.key({ altkey }, "Down", |
|
|
|
awful.key({ altkey }, "Down", |
|
|
|
function () |
|
|
|
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() |
|
|
|
volumewidget.update() |
|
|
|
end), |
|
|
|
end), |
|
|
|
awful.key({ altkey }, "m", |
|
|
|
awful.key({ altkey }, "m", |
|
|
|
function () |
|
|
|
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() |
|
|
|
volumewidget.update() |
|
|
|
end), |
|
|
|
end), |
|
|
|
awful.key({ altkey, "Control" }, "m", |
|
|
|
awful.key({ altkey, "Control" }, "m", |
|
|
|
function () |
|
|
|
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() |
|
|
|
volumewidget.update() |
|
|
|
end), |
|
|
|
end), |
|
|
|
|
|
|
|
|
|
|
|