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 12:44:30 +02:00
|
|
|
# OTHER
|
|
|
|
key-hl-color = "fe8019"; #fe8019 # Sets the color of the key press highlight segments.
|
|
|
|
separator-color = "ebdbb200"; #ebdbb2 # Sets the color of the lines that separate highlight segments.
|
|
|
|
bs-hl-color = "d79921"; #d79921 # Sets the color of backspace highlight segments.
|
|
|
|
# DEFAULT
|
|
|
|
ring-color = "d65d0e"; #d65d0e # Sets the color of the ring of the indicator.
|
|
|
|
line-color = "ebdbb2"; #ebdbb2 # Sets the color of the line between the inside and ring.
|
|
|
|
text-color = "83a598"; #83a598 # Sets the color of the text.
|
|
|
|
inside-color = "1d202199"; #1d2021 # Sets the color of the inside of the indicator.
|
|
|
|
# VERIFYING
|
|
|
|
ring-ver-color = "fe8019"; #fe8019 # Sets the color of the ring of the indicator when verifying.
|
|
|
|
line-ver-color = "ebdbb2"; #ebdbb2 # Sets the color of the line between the inside and ring when verifying.
|
|
|
|
text-ver-color = "83a598"; #83a598 # Sets the color of the text when verifying.
|
|
|
|
inside-ver-color = "3c3836"; #3c3836 # Sets the color of the inside of the indicator when verifying.
|
|
|
|
# WRONG
|
|
|
|
ring-wrong-color = "fe8019"; #fe8019 # Sets the color of the ring of the indicator when invalid.
|
|
|
|
line-wrong-color = "ebdbb2"; #ebdbb2 # Sets the color of the line between the inside and ring when invalid.
|
|
|
|
text-wrong-color = "83a598"; #83a598 # Sets the color of the text when invalid.
|
|
|
|
inside-wrong-color = "3c3836"; #3c3836 # Sets the color of the inside of the indicator when invalid.
|
|
|
|
# CAPS-LOCK
|
|
|
|
ring-caps-lock-color = "d65d0e"; #d65d0e # Sets the color of the ring of the indicator when Caps Lock is active.
|
|
|
|
line-caps-lock-color = "d65d0e"; #d65d0e # Sets the color of the line between the inside and ring 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 = "00000099"; #000000 # Sets the color of the inside of the indicator when Caps Lock is active.
|
|
|
|
# CLEAR
|
|
|
|
ring-clear-color = "d65d0e"; #d65d0e # Sets the color of the ring of the indicator when cleared.
|
|
|
|
line-clear-color = "928374FF"; #928374 # Sets the color of the line between the inside and ring when cleared.
|
|
|
|
text-clear-color = "92837400"; #928374 # Sets the color of the text when cleared.
|
|
|
|
inside-clear-color = "00000099"; #000000 # Sets the color of the inside of the indicator when cleared.
|
2023-08-31 11:18:01 +02:00
|
|
|
|
2023-08-18 02:48:55 +02:00
|
|
|
};
|
2023-08-18 02:49:30 +02:00
|
|
|
};
|
2023-08-24 13:43:54 +02:00
|
|
|
}
|