mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 10:18:34 +02:00
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.
14 lines
364 B
Lua
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"))
|