Add colour scheme to swaylock

This commit is contained in:
Evie Litherland-Smith 2024-05-13 10:40:09 +01:00
parent bfb83536a4
commit 38072e03c4

View file

@ -1,9 +1,14 @@
{pkgs, ...}: { {
config,
pkgs,
accentColour ? "base07",
...
}: {
programs.swaylock = { programs.swaylock = {
enable = true; enable = true;
package = pkgs.swaylock-effects; package = pkgs.swaylock-effects;
# Settings are specifically for swaylock-effects # Settings are specifically for swaylock-effects
settings = { settings = with config.scheme; {
indicator-radius = 100; indicator-radius = 100;
indicator-thickness = 10; indicator-thickness = 10;
indicator-caps-lock = true; indicator-caps-lock = true;
@ -13,6 +18,35 @@
effect-vignette = "0.5:0.5"; effect-vignette = "0.5:0.5";
grace = 2; grace = 2;
fade-in = 0.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;
}; };
}; };
} }