From 9ecb5ce633aba575d1a1cd4f387c25d9ae936b92 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 24 Nov 2021 21:01:24 +0100 Subject: swayidle: Add configuration .config/swayidle/config: Add simple swayidle configuration to lock with waylock after 5min of inactivity, switch of screens after 10min and turn them back on again upon resume. Ensure to run waylock before sleep state is reached. --- .config/swayidle/config | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .config/swayidle/config (limited to '.config/swayidle') diff --git a/.config/swayidle/config b/.config/swayidle/config new file mode 100644 index 0000000..804f0cd --- /dev/null +++ b/.config/swayidle/config @@ -0,0 +1,3 @@ +timeout 300 'setsid -f waylock' +timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' +before-sleep 'setsid -f waylock' -- cgit v1.2.3-70-g09d2