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'