2023-08-18 02:48:05 +02:00
|
|
|
{ pkgs, config, ... }: {
|
|
|
|
programs.swaylock = {
|
|
|
|
enable = true;
|
2023-08-18 13:59:31 +02:00
|
|
|
# swaylock-effects has extra effects like image blur and stuff.
|
2023-08-18 13:58:04 +02:00
|
|
|
package = pkgs.swaylock-effects;
|
2023-08-18 02:48:05 +02:00
|
|
|
settings = {
|
2023-08-31 11:57:54 +02:00
|
|
|
# All <color> options are of the form <rrggbb[aa]>.
|
2023-08-18 03:13:47 +02:00
|
|
|
font-size = 96;
|
2023-08-18 02:48:05 +02:00
|
|
|
show-failed-attempts = true;
|
2023-08-31 11:18:01 +02:00
|
|
|
effect-blur = "20x8";
|
2023-08-18 02:48:05 +02:00
|
|
|
screenshots = true;
|
2023-08-24 13:43:54 +02:00
|
|
|
font = "JetBrainsMono Nerd Font";
|
2023-08-18 02:56:13 +02:00
|
|
|
|
2023-08-18 03:04:57 +02:00
|
|
|
clock = true;
|
2023-08-24 13:43:54 +02:00
|
|
|
timestr = "%R";
|
|
|
|
datestr = "%a, %b %d";
|
2023-08-25 01:02:10 +02:00
|
|
|
grace = 5;
|
2023-08-18 03:04:57 +02:00
|
|
|
|
2023-08-18 02:56:13 +02:00
|
|
|
indicator = true;
|
2023-08-31 11:33:07 +02:00
|
|
|
indicator-radius = "130";
|
|
|
|
indicator-thickness = "12";
|
|
|
|
indicator-caps-lock = true;
|
|
|
|
disable-caps-lock-text = true;
|
2023-08-31 11:18:01 +02:00
|
|
|
|
2023-08-31 11:57:54 +02:00
|
|
|
text-color = "83a598"; #83a598 # Sets the color of the text.
|
|
|
|
key-hl-color = "fe8019"; #fe8019 # Sets the color of the key press highlight segments.
|
2023-08-31 11:18:01 +02:00
|
|
|
separator-color = "ebdbb200"; #ebdbb2
|
|
|
|
|
2023-08-31 11:57:54 +02:00
|
|
|
inside-color="00000099"; #000000 # Sets the color of the inside of the indicator.
|
|
|
|
inside-clear-color=""; # Sets the color of the inside of the indicator when cleared.
|
|
|
|
inside-caps-lock-color=""; # Sets the color of the inside of the indicator when Caps Lock is active.
|
|
|
|
inside-ver-color=""; # Sets the color of the inside of the indicator when verifying.
|
|
|
|
inside-wrong-color=""; # Sets the color of the inside of the indicator when invalid.
|
2023-08-31 11:18:01 +02:00
|
|
|
|
2023-08-31 11:57:54 +02:00
|
|
|
ring-color = "d65d0e"; #d65d0e # Sets the color of the ring of the indicator.
|
|
|
|
ring-clear-color = ""; # Sets the color of the ring of the indicator when cleared.
|
|
|
|
ring-caps-lock-color = ""; # Sets the color of the ring of the indicator when Caps Lock is active.
|
|
|
|
ring-ver-color = ""; # Sets the color of the ring of the indicator when verifying.
|
|
|
|
ring-wrong-color = "f2594bD9"; #f2594bD9 # Sets the color of the ring of the indicator when invalid.
|
2023-08-31 11:18:01 +02:00
|
|
|
|
2023-08-31 11:57:54 +02:00
|
|
|
line-color = "ebdbb200"; #ebdbb2 # Sets the color of the line between the inside and ring.
|
|
|
|
line-clear-color = "ffd204FF"; #ffd204 # Sets the color of the line between the inside and ring when cleared.
|
|
|
|
line-caps-lock-color = "d65d0e"; #d65d0e # Sets the color of the line between the inside and ring when Caps Lock is active.
|
|
|
|
line-ver-color = "d9d8d8FF"; #d9d8d8FF # Sets the color of the line between the inside and ring when verifying.
|
|
|
|
line-wrong-color = "ee2e24FF"; #ee2e24FF # Sets the color of the line between the inside and ring when invalid.
|
2023-08-31 11:18:01 +02:00
|
|
|
|
2023-08-31 11:57:54 +02:00
|
|
|
text-clear-color = "ffd20400"; #ffd204 # Sets the color of the text when cleared.
|
|
|
|
text-ver-color = "d9d8d800"; #d9d8d8 # Sets the color of the text when verifying.
|
|
|
|
text-wrong-color = "ee2e2400"; #ee2e24 # Sets the color of the text when invalid.
|
2023-08-31 11:18:01 +02:00
|
|
|
|
2023-08-31 11:57:54 +02:00
|
|
|
bs-hl-color = "ee2e24FF"; #ee2e24FF # Sets the color of backspace highlight segments.
|
|
|
|
caps-lock-key-hl-color = "ffd204FF"; #ffd204FF # Sets the color of the key press highlight segments when Caps Lock is active.
|
|
|
|
caps-lock-bs-hl-color = "ee2e24FF"; #ee2e24FF # Sets the color of backspace highlight segments when Caps Lock is active.
|
|
|
|
text-caps-lock-color = "d65d0e"; #d65d0e # Sets the color of the text when Caps Lock is active.
|
|
|
|
inside-caps-lock-color = "d65d0e00"; #d65d0e # Sets the color of the inside of the indicator when Caps Lock is active.
|
2023-08-18 02:48:55 +02:00
|
|
|
};
|
2023-08-18 02:49:30 +02:00
|
|
|
};
|
2023-08-24 13:43:54 +02:00
|
|
|
}
|