sway: suspend without turning off screen
This commit is contained in:
@@ -42,17 +42,8 @@ include /etc/sway/config-vars.d/*
|
||||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||
timeout 600 'systemctl hibernate'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# 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.
|
||||
# Suspend the machine after 600 seconds
|
||||
exec swayidle -w timeout 600 'systemctl suspend'
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user