2023-11-19 12:20:37 +01:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
programs.swaylock = {
|
|
|
|
enable = true;
|
|
|
|
# swaylock-effects has extra effects like image blur and stuff.
|
|
|
|
package = pkgs.swaylock-effects;
|
|
|
|
settings = {
|
|
|
|
# All <color> options are of the form <rrggbb[aa]>.
|
|
|
|
font-size = 96;
|
|
|
|
show-failed-attempts = true;
|
|
|
|
effect-blur = "20x8";
|
|
|
|
screenshots = true;
|
|
|
|
font = "JetBrainsMono Nerd Font";
|
|
|
|
|
|
|
|
clock = true;
|
|
|
|
timestr = "%R";
|
|
|
|
datestr = "%a, %b %d";
|
|
|
|
grace = 5;
|
|
|
|
|
|
|
|
indicator = true;
|
|
|
|
indicator-radius = "130";
|
|
|
|
indicator-thickness = "12";
|
|
|
|
indicator-caps-lock = true;
|
2023-11-19 12:57:34 +01:00
|
|
|
disable-caps-lock-text = false;
|
2023-11-19 12:20:37 +01:00
|
|
|
|
|
|
|
# OTHER
|
|
|
|
key-hl-color = "b8bb26"; #b8bb26 # Sets the color of the key press highlight segments.
|
|
|
|
separator-color = "ebdbb200"; #ebdbb200 # Sets the color of the lines that separate highlight segments.
|
|
|
|
bs-hl-color = "d79921"; #d79921 # Sets the color of backspace highlight segments.
|
|
|
|
# DEFAULT
|
2023-11-19 12:57:34 +01:00
|
|
|
ring-color = "2a9b34"; #2a9b34 # Sets the color of the ring of the indicator.
|
2023-11-19 12:20:37 +01:00
|
|
|
line-color = "ebdbb200"; #ebdbb200 # Sets the color of the line between the inside and ring.
|
|
|
|
text-color = "83a598"; #83a598 # Sets the color of the text.
|
|
|
|
inside-color = "1d202199"; #1d202199 # Sets the color of the inside of the indicator.
|
|
|
|
# VERIFYING
|
2023-11-19 12:57:34 +01:00
|
|
|
ring-ver-color = "41ff58"; #41ff58 # Sets the color of the ring of the indicator when verifying.
|
2023-11-19 12:20:37 +01:00
|
|
|
line-ver-color = "ebdbb200"; #ebdbb200 # Sets the color of the line between the inside and ring when verifying.
|
|
|
|
text-ver-color = "83a59800"; #83a59800 # Sets the color of the text when verifying.
|
2023-11-19 12:57:34 +01:00
|
|
|
inside-ver-color = "1e1e1e99"; #1e1e1e99 # Sets the color of the inside of the indicator when verifying.
|
2023-11-19 12:20:37 +01:00
|
|
|
# WRONG
|
2023-11-20 12:43:11 +01:00
|
|
|
ring-wrong-color = "da6a6a"; #da6a6a # Sets the color of the ring of the indicator when invalid.
|
2023-11-19 12:20:37 +01:00
|
|
|
line-wrong-color = "ebdbb200"; #ebdbb200 # Sets the color of the line between the inside and ring when invalid.
|
|
|
|
text-wrong-color = "83a59800"; #83a59800 # Sets the color of the text when invalid.
|
2023-11-19 12:57:34 +01:00
|
|
|
inside-wrong-color = "1e1e1e99"; #1e1e1e99 # Sets the color of the inside of the indicator when invalid.
|
2023-11-19 12:20:37 +01:00
|
|
|
# CAPS-LOCK
|
2023-11-19 12:57:34 +01:00
|
|
|
ring-caps-lock-color = "2a9b34"; #2a9b34 # Sets the color of the ring of the indicator when Caps Lock is active.
|
|
|
|
line-caps-lock-color = "2a9b3400"; #2a9b3400 # Sets the color of the line between the inside and ring when Caps Lock is active.
|
|
|
|
text-caps-lock-color = "2a9b3400"; #2a9b3400 # Sets the color of the text when Caps Lock is active.
|
|
|
|
inside-caps-lock-color = "1e1e1e99"; #1e1e1e99 # Sets the color of the inside of the indicator when Caps Lock is active.
|
2023-11-19 12:20:37 +01:00
|
|
|
# CLEAR
|
|
|
|
ring-clear-color = "bdae93"; #bdae93 # Sets the color of the ring of the indicator when cleared.
|
|
|
|
line-clear-color = "92837400"; #92837400 # Sets the color of the line between the inside and ring when cleared.
|
|
|
|
text-clear-color = "92837400"; #92837400 # Sets the color of the text when cleared.
|
2023-11-19 12:57:34 +01:00
|
|
|
inside-clear-color = "1e1e1e99"; #1e1e1e99 # Sets the color of the inside of the indicator when cleared.
|
2023-11-19 12:20:37 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|