summaryrefslogtreecommitdiff
path: root/bindings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bindings.lua')
-rw-r--r--bindings.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings.lua b/bindings.lua
index 999edd5..8aa9d48 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -12,8 +12,8 @@ function M.create(workspace)
local globalkeys = gears.table.join(
awful.key({ modkey, "Mod1" }, "Delete", awesome.restart),
- awful.key({ modkey }, "Pause", function () awful.spawn("xscreensaver-command -lock") end),
- awful.key({ modkey }, "XF86ScreenSaver", function () awful.spawn("xscreensaver-command -lock") end),
+ awful.key({ modkey }, "Pause", utils.screen_lock),
+ awful.key({ modkey }, "XF86ScreenSaver", utils.screen_lock),
-- something of a hack: diziet is configured to send F13/XF86Tools on lid close
-- this should trigger a screen lock if HDMI cable is not connected