[idle;lock] Switches to swaylock

This commit is contained in:
2025-05-28 12:23:14 -07:00
parent efab3866c2
commit aa6402cf7c
6 changed files with 96 additions and 93 deletions

View File

@@ -0,0 +1,23 @@
{ pkgs, ... }:
{
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
clock = true;
indicator = true;
effect-pixelate = 10;
};
};
home.file.".config/swaylock/swaylock.sh" = {
executable = true;
text = ''
#!/bin/env bash
image=`fd . ~/Pictures/Wallpaper --type f | sort -R | tail -1`
swaylock --image "$image"
'';
};
}