added instructions for zzz-user-hooks #2
1 changed files with 58 additions and 34 deletions
|
@ -1,34 +1,58 @@
|
||||||
Wayfire has a screensaver and dpms option. These may be configured by editing `.config/wayfire.ini`.
|
Wayfire has a screensaver and dpms option. These may be configured by editing `.config/wayfire.ini`.
|
||||||
|
|
||||||
```
|
```
|
||||||
[idle]
|
[idle]
|
||||||
screensaver_timeout = <timeout_screensaver>
|
screensaver_timeout = <timeout_screensaver>
|
||||||
dpms_timeout = <timeout_dpms>
|
dpms_timeout = <timeout_dpms>
|
||||||
```
|
```
|
||||||
|
|
||||||
Logically, `timeout_dpms` > `timeout_screensaver`.
|
Logically, `timeout_dpms` > `timeout_screensaver`.
|
||||||
|
|
||||||
`gtklock` is used as lockscreen, since it nicely matches the `gtkgreet` login manager.
|
`gtklock` is used as lockscreen, since it nicely matches the `gtkgreet` login manager.
|
||||||
|
|
||||||
```
|
```
|
||||||
# xbps-install -Sy gtklock
|
# xbps-install -Sy gtklock
|
||||||
```
|
```
|
||||||
|
|
||||||
`gtklock` can be configured with the same `css` file as `gtkgreet`. Thereby:
|
`gtklock` can be configured with the same `css` file as `gtkgreet`. Thereby:
|
||||||
|
|
||||||
```
|
```
|
||||||
# ln -s /etc/greetd/config/gtkgreet.css .config/gtklock/style.css
|
# 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` before sleep and after a certain time, `swayidle` may be used.
|
||||||
|
|
||||||
```
|
```
|
||||||
# xbps-install -Sy swayidle
|
# xbps-install -Sy swayidle
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, in `.config/wayfire.ini` gtklock may be started with the given conditions:
|
Then, in `.config/wayfire.ini` gtklock may be started with the given conditions:
|
||||||
|
|
||||||
```
|
```
|
||||||
[autostart]
|
[autostart]
|
||||||
idle = swayidle -w timeout 590 gtklock before-sleep gtklock
|
idle = swayidle -w timeout 590 gtklock before-sleep gtklock
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# laptops
|
||||||
|
|
||||||
|
On laptops it may be necessary to install `zzz user hooks` to make sure that when the laptop closes `gktlock` also starts
|
||||||
|
|
||||||
|
```
|
||||||
|
# xbps-install -Sy zzz-user-hooks
|
||||||
|
```
|
||||||
|
|
||||||
|
To configure `zzz user hooks` you need to make a file and edit the file `~/.onsuspend` and add
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
gtklock -dS
|
||||||
|
```
|
||||||
|
|
||||||
|
Then make the file executable
|
||||||
|
|
||||||
|
```
|
||||||
|
$ chmod +x .onsuspend
|
||||||
|
```
|
||||||
|
|
||||||
|
now `gtlock` will start when you close your laptop
|
Loading…
Reference in a new issue