snowflake/modules/swayidle.nix

13 lines
511 B
Nix
Raw Normal View History

2023-06-11 02:08:06 -04:00
_: {
home.file.".local/bin/lock" = {
executable = true;
text = ''
2023-04-23 17:45:37 -04:00
swayidle -w \
timeout 600 'swaylock -f --image ~/Pictures/wallpapers/anny.jpg --clock --grace 5 --ring-color f5c2e7 --inside-color 1e1e2e --line-color 11111b' \
timeout 800 'hyprctl dispatch dpms off' \
resume 'hyprctl dispatch dpms on' \
before-sleep 'swaylock -f --image ~/Picture/wallpapers/anny.jpg --clock --ring-color f5c2e7 --inside-color 1e1e2e --line-color 11111b'
'';
};
}