sway: suspend without turning off screen

This commit is contained in:
KK
2026-06-20 10:11:39 +02:00
parent 6559d05e06
commit 7bfb9a2d7d

View File

@@ -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
# #