From 2ea382c1b8747d0045f3df80924232e2246cde3e Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 4 Dec 2012 20:24:53 +0100 Subject: 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 --- rc.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'rc.lua') 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 -- cgit v1.2.3