From 36cbfe41b3e7e243719bf94c23c8d0232c0e8268 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 8 Jun 2009 17:12:41 +0200 Subject: [PATCH 1/1] fix up screensaver spawning and add XF86ScreenSaver to blank --- .config/awesome/rc.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2