Auto lock and sleep
This commit is contained in:
parent
2d8c85f2e4
commit
7608b66ca9
@ -40,10 +40,10 @@ input * {
|
||||
}
|
||||
|
||||
### Output configuration
|
||||
#
|
||||
|
||||
# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/)
|
||||
output * bg ~/.cache/betterlockscreen/current/wall_dim.png fill
|
||||
#
|
||||
|
||||
# Example configuration:
|
||||
#
|
||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
||||
@ -63,6 +63,11 @@ output * bg ~/.cache/betterlockscreen/current/wall_dim.png fill
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
exec swayidle -w \
|
||||
timeout 20 'swaylock -f -c 000000' \
|
||||
timeout 40 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
|
Loading…
Reference in New Issue
Block a user