snowflake/modules/swayidle.nix
notohh f6835e00ac
All checks were successful
/ check (push) Successful in 1m11s
swayidle: reload ironbar after dpms off
2023-10-08 14:27:31 -04:00

13 lines
554 B
Nix

_: {
home.file.".local/bin/lock" = {
executable = true;
text = ''
swayidle -w \
timeout 500 'swaylock -f --image ~/Pictures/wallpapers/mumei.png --clock --grace 5 --ring-color f5c2e7 --inside-color 1e1e2e --line-color 11111b' \
timeout 600 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \
before-sleep 'swaylock -f --image ~/Picture/wallpapers/mumei.png --clock --ring-color f5c2e7 --inside-color 1e1e2e --line-color 11111b' \
after-resume 'ironbar reload'
'';
};
}