tsuki: add swayidle

This commit is contained in:
notohh 2024-01-22 03:48:28 -05:00
parent f564fcf3b4
commit e7ba648e1c
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 16 additions and 1 deletions

View file

@ -4,6 +4,7 @@
...
}: {
imports = [
./services/swayidle.nix
../../home
../../home/firefox
../../home/ags
@ -16,7 +17,6 @@
../../home/zellij
../../home/spotify-player
../../home/wayland/hyprland
../../modules/swayidle.nix
];
systemd.user.startServices = "sd-switch";
@ -35,6 +35,8 @@
pavucontrol
vscodium-fhs
obsidian
supersonic-wayland
jellyfin-mpv-shim
unzip
unrar
p7zip

View file

@ -0,0 +1,13 @@
_: {
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'
'';
};
}