Optimized swayidle

This commit is contained in:
Emmet 2023-08-17 15:06:00 -05:00
parent 51adc3d9b0
commit fe6a6320ab

View file

@ -60,8 +60,8 @@ in
# TODO add stylix colors to swaylock cmd
home.file.".swayidle-stylix".text = ''
#!/bin/sh
swaylock_cmd='swaylock --indicator-radius 200 --grace 5 --fade-in 0.5 --screenshots --effect-blur 10x10'
swayidle -w timeout 300 "$swaylock_cmd" \
swaylock_cmd='swaylock --indicator-radius 200 --grace 5 --screenshots --effect-blur 10x10'
swayidle -w timeout 300 "$swaylock_cmd --fade-in 0.5" \
timeout 600 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \
before-sleep "$swaylock_cmd"