This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/desktop/swaylock/default.nix

47 lines
1.3 KiB
Nix

{
config,
pkgs,
accentColour ? "base07",
...
}: {
home.packages = with pkgs; [
(callPackage ./swaylockfx.nix
{swaylock-effects = config.programs.swaylock.package;})
];
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
# Settings are specifically for swaylock-effects
settings = with config.scheme; {
indicator-radius = 100;
indicator-thickness = 10;
indicator-caps-lock = true;
ignore-empty-password = true;
show-failed-attempts = true;
effect-blur = "5x3";
effect-vignette = "0.5:0.5";
grace = 2;
fade-in = 0.2;
bs-hl-color = base06;
caps-lock-bs-hl-color = base06;
caps-lock-key-hl-color = green;
inside-color = "${base00}cc";
key-hl-color = green;
layout-bg-color = "${base00}cc";
layout-border-color = config.scheme.${accentColour};
layout-text-color = base05;
ring-color = config.scheme.${accentColour};
ring-clear-color = base06;
ring-caps-lock-color = base09;
ring-ver-color = blue;
ring-wrong-color = red;
separator-color = base01;
text-color = base05;
text-clear-color = base06;
text-caps-lock-color = base09;
text-ver-color = blue;
text-wrong-color = red;
};
};
}