nix/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/swaylock-conf.nix
2023-08-31 18:57:54 +09:00

58 lines
3.4 KiB
Nix

{ pkgs, config, ... }: {
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;
disable-caps-lock-text = true;
text-color = "83a598"; #83a598 # Sets the color of the text.
key-hl-color = "fe8019"; #fe8019 # Sets the color of the key press highlight segments.
separator-color = "ebdbb200"; #ebdbb2
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.
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.
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.
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.
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.
};
};
}