diff --git a/docs/void-desktop-setup/Idle-and-lockscreen.md b/docs/void-desktop-setup/Idle-and-lockscreen.md index f6edc4b..3cd5591 100644 --- a/docs/void-desktop-setup/Idle-and-lockscreen.md +++ b/docs/void-desktop-setup/Idle-and-lockscreen.md @@ -1,3 +1,5 @@ +# Idle and lockscreen + Wayfire has a screensaver and dpms option. These may be configured by editing `.config/wayfire.ini`. ``` @@ -20,15 +22,21 @@ Logically, `timeout_dpms` > `timeout_screensaver`. # ln -s /etc/greetd/config/gtkgreet.css .config/gtklock/style.css ``` -To initiate `gtklock` before sleep and after a certain time, `swayidle` may be used. +To initiate `gtklock` on suspend, `zzz-user-hooks` may be used. ``` -# xbps-install -Sy swayidle +# xbps-install -Sy zzz-user-hooks ``` -Then, in `.config/wayfire.ini` gtklock may be started with the given conditions: +To let `zzz-user-hooks` execute `gtklock` on suspend create and edit the file `.onsuspend`. ``` -[autostart] -idle = swayidle -w timeout 590 gtklock before-sleep gtklock +#!/bin/sh +exec gtklock -d ``` + +To make the file executable. + +``` +$ chmod 755 .onsuspend +``` \ No newline at end of file