vincentbernat.i3wm-configur.../rc/xlock.lua
Vincent Bernat 097e076694 lock: use xss-lock instead of xautolock
xss-lock features nice integration with standard X screensaver
feature which makes it easy to trigger it or to disable it. Moreover, it
also has some logind integration to lock screen before suspend.
2014-09-12 14:52:36 +02:00

14 lines
364 B
Lua

-- Lockscreen
local lock = function()
os.execute("xset s activate")
end
config.keys.global = awful.util.table.join(
config.keys.global,
awful.key({}, "XF86ScreenSaver", lock),
awful.key({ modkey, }, "Delete", lock))
-- Configure xss-lock
os.execute(awful.util.spawn(awful.util.getdir("config") ..
"/bin/xss-lock start"))