26 lines
1.5 KiB
Plaintext
26 lines
1.5 KiB
Plaintext
### Idle configuration
|
|
#
|
|
# Example configuration:
|
|
#
|
|
#exec swayidle -w \
|
|
# before-sleep 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg'
|
|
# timeout 300 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' \
|
|
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
|
|
#
|
|
# 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.
|
|
|
|
# Definiere den Lock-Befehl (falls noch nicht geschehen)
|
|
set $lock_cmd swaylock --screenshots --clock --indicator --indicator-radius 120 --indicator-thickness 10 --ignore-empty-password --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.3 --ring-color 8bd5ca --key-hl-color 91d7e3 --text-color cad3f5 --line-color 00000000 --inside-color 24273a88 --separator-color 00000000 --ring-ver-color 8aadf4 --inside-ver-color 24273a88 --ring-wrong-color ed8796 --inside-wrong-color 24273a88 --text-wrong-color ed8796 --bs-hl-color ed8796 --effect-compose "50%,25%;150x150;center;/home/crimsen/Bilder/wallpaper/logo.png"
|
|
|
|
# Swayidle Konfiguration
|
|
exec swayidle -w \
|
|
timeout 300 '$lock_cmd' \
|
|
timeout 600 'swaymsg "output * power off"' \
|
|
resume 'swaymsg "output * power on"' \
|
|
before-sleep '$lock_cmd'
|
|
|
|
# Shortcut zum Sperren (z.B. Mod + L)
|
|
bindsym $mod+Shift+j exec $lock_cmd
|