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

add extra keypad bindings

This commit is contained in:
dongkc 2017-03-06 14:47:47 +00:00
parent f615f256aa
commit 601e37e61f

17
rc.lua
View file

@ -339,6 +339,23 @@ globalkeys = awful.util.table.join(
awful.key({ altkey, }, "h", function () if beautiful.fs then beautiful.fs.show(7) end end),
awful.key({ altkey, }, "w", function () if beautiful.weather then beautiful.weather.show(7) end end),
-- ALSA volume control for Thinkpad Extra Keypad
awful.key({ }, "XF86AudioRaiseVolume",
function ()
os.execute(string.format("amixer -q set %s 1%%+", beautiful.volume.channel))
beautiful.volume.update()
end),
awful.key({ }, "XF86AudioLowerVolume",
function ()
os.execute(string.format("amixer -q set %s 1%%-", beautiful.volume.channel))
beautiful.volume.update()
end),
awful.key({ }, "XF86AudioMute",
function ()
os.execute(string.format("amixer -q set %s toggle", beautiful.volume.togglechannel or beautiful.volume.channel))
beautiful.volume.update()
end),
-- ALSA volume control
awful.key({ altkey }, "Up",
function ()