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
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
### Idle configuration
|
# Suspend the machine after 600 seconds
|
||||||
#
|
exec swayidle -w timeout 600 'systemctl suspend'
|
||||||
# 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.
|
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user