mirror of
https://github.com/labwc/labwc.git
synced 2026-02-26 01:40:22 -05:00
docs/autostart: add swayidle example
This commit is contained in:
parent
9eaa5a92a1
commit
05237ed1cb
1 changed files with 8 additions and 0 deletions
|
|
@ -19,3 +19,11 @@ waybar >/dev/null 2>&1 &
|
||||||
# org.freedesktop.Notifications D-Bus API and require a client such as mako to
|
# org.freedesktop.Notifications D-Bus API and require a client such as mako to
|
||||||
# function correctly. Thunderbird is an example of this.
|
# function correctly. Thunderbird is an example of this.
|
||||||
mako >/dev/null 2>&1 &
|
mako >/dev/null 2>&1 &
|
||||||
|
|
||||||
|
# Lock screen after 5 minutes; turn off display after another 5 minutes
|
||||||
|
swayidle -w \
|
||||||
|
timeout 300 'swaylock -f -c 000000' \
|
||||||
|
timeout 600 'wlr-randr --output eDP-1 --off' \
|
||||||
|
resume 'wlr-randr --output eDP-1 --on' \
|
||||||
|
before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 &
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue