nix/home-manager/common/desktops/hyprland/components/swaylock.nix

26 lines
620 B
Nix
Raw Normal View History

2024-01-03 14:25:06 +01:00
{ pkgs, ... }: {
programs.swaylock = {
enable = true;
# swaylock-effects has extra effects like image blur and stuff.
package = pkgs.swaylock-effects;
settings = {
# All <color> options are of the form <rrggbb[aa]>.
2024-01-07 04:55:25 +01:00
# font-size = 96;
2024-01-03 14:25:06 +01:00
show-failed-attempts = true;
2024-01-07 05:05:17 +01:00
effect-blur = "40x8";
2024-01-03 14:25:06 +01:00
screenshots = true;
clock = true;
timestr = "%R";
datestr = "%a, %b %d";
grace = 5;
indicator = true;
indicator-radius = "130";
indicator-thickness = "12";
indicator-caps-lock = true;
disable-caps-lock-text = false;
};
};
}