From a2e6853a1cd34a189892b30b1f92b93ba80d0dc6 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Mon, 19 Jul 2021 22:29:13 +0200 Subject: [PATCH] SWAYIDLE: used to lock screen after 6min --- .config/sway/config.d/64-verrouillage.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/sway/config.d/64-verrouillage.conf b/.config/sway/config.d/64-verrouillage.conf index 00be693..a3cae5c 100644 --- a/.config/sway/config.d/64-verrouillage.conf +++ b/.config/sway/config.d/64-verrouillage.conf @@ -3,3 +3,6 @@ # Écran unbindsym $mod+l bindsym $mod+l exec swaylock + +# Automatique +exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f'