[idle;lock] Switches to swaylock
This commit is contained in:
23
home-manager/features/swaylock.nix
Normal file
23
home-manager/features/swaylock.nix
Normal 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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user