-- ALSA volume control
awful.key({ }, "#123",
function ()
os.execute(string.format("amixer set %s 5%%+", volume.channel))
volume.update()
end),
awful.key({ }, "#122",
function ()
os.execute(string.format("amixer set %s 5%%-", volume.channel))
volume.update()
end),
awful.key({ }, "#121",
function ()
os.execute(string.format("amixer set %s toggle", volume.togglechannel or volume.channel))
volume.update()
end),
awful.key({ altkey, "Control" }, "m",
function ()
os.execute(string.format("amixer set %s 100%%", volume.channel))
volume.update()
end),
awful.key({ altkey, "Control" }, "0",
function ()
os.execute(string.format("amixer -q set %s 0%%", volume.channel))
volume.update()
end),
-- Backlight control
awful.key({ }, "#233",
function ()
os.execute("xbacklight -steps 200 -time 200 -inc 5%%")
end
),
awful.key({ }, "#232",
function ()
os.execute("xbacklight -steps 200 -time 200 -dec 5%%")
end
),