From 3d1e5438ada61e406de6dccc0b44e7491bf6561d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 26 Oct 2021 19:22:38 +0200 Subject: bindings: capture errors from locking the screen --- bindings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bindings.lua') 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 -- cgit v1.2.3