summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2012-12-04 20:24:53 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2012-12-04 20:24:53 +0100
commit2ea382c1b8747d0045f3df80924232e2246cde3e (patch)
treee13992ab191b90d038f8f58de39bd6b001016509
parentf163a114701b18e809f2cc5c443473f61764c483 (diff)
downloadawesome-configs-2ea382c1b8747d0045f3df80924232e2246cde3e.tar.xz
rc.lua: adapt rc for the new workstation
Keycode 121: mute is supported in hardware, ignore event Keycode 150: inproperly mapped by udev, let acpid handle the SBTN event to suspend the system to memory Keycode 235: launch the display manager rather than turning off the screen via DPMS Keycode 244: show an xmessage popup with BAT status for now, until I think of something better
-rw-r--r--rc.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/rc.lua b/rc.lua
index 2a944c8..362bc22 100644
--- a/rc.lua
+++ b/rc.lua
@@ -327,15 +327,17 @@ globalkeys = awful.util.table.join(
-- }}}
-- {{{ Multimedia keys
- awful.key({}, "#235", function () exec("kscreenlocker --forcelock") end),
- awful.key({}, "#121", function () exec("pvol.py -m") end),
+ awful.key({}, "#160", function () exec("kscreenlocker --forcelock") end),
+ --awful.key({}, "#121", function () exec("pvol.py -m") end),
awful.key({}, "#122", function () exec("pvol.py -p -c -2") end),
awful.key({}, "#123", function () exec("pvol.py -p -c 2") end),
- awful.key({}, "#232", function () exec("plight.py -c -10") end),
- awful.key({}, "#233", function () exec("plight.py -c 10") end),
- awful.key({}, "#165", function () exec("sudo /usr/sbin/pm-hibernate") end),
- awful.key({}, "#150", function () exec("sudo /usr/sbin/pm-suspend") end),
- awful.key({}, "#163", function () exec("pypres.py") end),
+ awful.key({}, "#232", function () exec("plight.py -c -1") end),
+ awful.key({}, "#233", function () exec("plight.py -c 1") end),
+ --awful.key({}, "#150", function () exec("sudo /usr/sbin/pm-suspend") end),
+ awful.key({}, "#213", function () exec("sudo /usr/sbin/pm-hibernate") end),
+ --awful.key({}, "#235", function () exec("xset dpms force off") end),
+ awful.key({}, "#235", function () exec("pypres.py") end),
+ awful.key({}, "#244", function () sexec("acpitool -b | xmessage -timeout 10 -file -") end),
-- }}}
-- {{{ Prompt menus