From: martin f. krafft Date: Mon, 8 Jun 2009 15:12:41 +0000 (+0200) Subject: fix up screensaver spawning and add XF86ScreenSaver to blank X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/36cbfe41b3e7e243719bf94c23c8d0232c0e8268 fix up screensaver spawning and add XF86ScreenSaver to blank --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 26967cd..8e6cc7f 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -388,8 +388,9 @@ globalkeys = awful.util.table.join(globalkeys, awful.key({ cmdmodkey }, "c", function () awful.util.spawn(terminal .. " -e python") end), awful.key({ cmdmodkey }, "r", function () awful.util.spawn("gmrun") end), awful.key({ cmdmodkey }, "j", function () awful.util.spawn("jpilot") end), - awful.key({ cmdmodkey }, "x", function () awful.util.spawn("/sbin/start-stop-daemon --start --background --exec /usr/bin/xscreensaver; xscreensaver-command -lock") end), - awful.key({ cmdmodkey, "Shift" }, "x", function () awful.util.spawn("xscreensaver-command -exit") end) + awful.key({ cmdmodkey }, "x", function () awful.util.spawn_with_shell("/sbin/start-stop-daemon --start --background --exec /usr/bin/xscreensaver; xscreensaver-command -lock") end), + awful.key({ cmdmodkey, "Shift" }, "x", function () awful.util.spawn("xscreensaver-command -exit") end), + awful.key(nil, "XF86ScreenSaver", function () awful.util.spawn("xset dpms force off") end) ) -- Set keys