/bin/log

Log my thoughts

Home About GitHub

03 Sep 2011
awesome thinkpad volume hotkey

awesome下ThinkPad的音量控制 vim ~/.config/awesome/rc.lua

globalkeys = awful.util.table.join(
...,
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn_with_shell("amixer set Master 2%+") end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn_with_shell("amixer set Master 2%-") end),
awful.key({ }, "XF86AudioMute", function () awful.util.spawn_with_shell("amixer set Master toggle") end),
....
)

Carpe diem,
JZR at 07:19

Home About GitHub