summaryrefslogtreecommitdiff
path: root/bindings.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-10-26 19:22:38 +0200
committerAnton Khirnov <anton@khirnov.net>2021-10-26 19:22:38 +0200
commit3d1e5438ada61e406de6dccc0b44e7491bf6561d (patch)
treecddf9aa415c3bad5a71f7a17346b17936b8f5136 /bindings.lua
parent8867d417fce527dce7155fb18b26e2ab9a269c6c (diff)
bindings: capture errors from locking the screen
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