documentation/docs/void-desktop-setup/Idle-and-lockscreen.md

42 lines
881 B
Markdown
Raw Normal View History

2023-08-25 17:17:28 +02:00
# Idle and lockscreen
2023-08-16 22:09:10 +02:00
Wayfire has a screensaver and dpms option. These may be configured by editing `.config/wayfire.ini`.
```
[idle]
screensaver_timeout = <timeout_screensaver>
dpms_timeout = <timeout_dpms>
```
Logically, `timeout_dpms` > `timeout_screensaver`.
`gtklock` is used as lockscreen, since it nicely matches the `gtkgreet` login manager.
```
# xbps-install -Sy gtklock
```
`gtklock` can be configured with the same `css` file as `gtkgreet`. Thereby:
```
# ln -s /etc/greetd/config/gtkgreet.css .config/gtklock/style.css
```
2023-08-25 17:17:28 +02:00
To initiate `gtklock` on suspend, `zzz-user-hooks` may be used.
2023-08-16 22:09:10 +02:00
```
2023-08-25 17:17:28 +02:00
# xbps-install -Sy zzz-user-hooks
2023-08-16 22:09:10 +02:00
```
2023-08-25 17:17:28 +02:00
To let `zzz-user-hooks` execute `gtklock` on suspend create and edit the file `.onsuspend`.
2023-08-16 22:09:10 +02:00
```
2023-08-25 17:17:28 +02:00
#!/bin/sh
exec gtklock -d
```
To make the file executable.
2023-08-16 23:26:07 +02:00
```
2023-08-25 17:17:28 +02:00
$ chmod 755 .onsuspend
```