Evie Litherland-Smith
8e7bc3aeaf
Hopefully fix issues with swayidle not being able to find wrapped script by passing derivation directly
57 lines
1.6 KiB
Nix
57 lines
1.6 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;
|
|
# color = base00;
|
|
bs-hl-color = base06;
|
|
caps-lock-bs-hl-color = base06;
|
|
caps-lock-key-hl-color = green;
|
|
# inside-color = 00000000;
|
|
# inside-clear-color = 00000000;
|
|
# inside-caps-lock-color = 00000000;
|
|
# inside-ver-color = 00000000;
|
|
# inside-wrong-color = 00000000;
|
|
key-hl-color = green;
|
|
# layout-bg-color = 00000000;
|
|
# layout-border-color = 00000000;
|
|
layout-text-color = base05;
|
|
# line-color = 00000000;
|
|
# line-clear-color = 00000000;
|
|
# line-caps-lock-color = 00000000;
|
|
# line-ver-color = 00000000;
|
|
# line-wrong-color = 00000000;
|
|
ring-color = config.scheme.${accentColour};
|
|
ring-clear-color = base06;
|
|
ring-caps-lock-color = base09;
|
|
ring-ver-color = blue;
|
|
ring-wrong-color = red;
|
|
# separator-color = 00000000;
|
|
text-color = base05;
|
|
text-clear-color = base06;
|
|
text-caps-lock-color = base09;
|
|
text-ver-color = blue;
|
|
text-wrong-color = red;
|
|
};
|
|
};
|
|
}
|