greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / home / features / wayland / swaylock.nix46 lines · 1023B · raw

1{ lib, outputs, ... }:
2
3let
4  c = lib.mapAttrs (_: lib.removePrefix "#") outputs.palette.colors;
5in {
6  programs.swaylock = {
7    enable = true;
8
9    settings = {
10      daemonize = true;
11      ignore-empty-password = true;
12      show-failed-attempts = true;
13
14      font = "Fantasque Sans Mono";
15      font-size = 18;
16      indicator-radius = 80;
17      indicator-thickness = 6;
18
19      color = c.bg;
20
21      inside-color = c.bg;
22      inside-clear-color = c.bg;
23      inside-ver-color = c.bg;
24      inside-wrong-color = c.bg;
25
26      ring-color = c.surface;
27      ring-clear-color = c.dim;
28      ring-ver-color = c.yellow;
29      ring-wrong-color = c.red;
30
31      key-hl-color = c.green;
32      bs-hl-color = c.red;
33
34      line-color = "00000000";
35      line-clear-color = "00000000";
36      line-ver-color = "00000000";
37      line-wrong-color = "00000000";
38      separator-color = "00000000";
39
40      text-color = c.fg;
41      text-clear-color = c.dim;
42      text-ver-color = c.yellow;
43      text-wrong-color = c.red;
44    };
45  };
46}