tsuki: add swayidle
This commit is contained in:
parent
f564fcf3b4
commit
e7ba648e1c
2 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
13
hosts/tsuki/services/swayidle.nix
Normal file
13
hosts/tsuki/services/swayidle.nix
Normal 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'
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue