nix/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/swaylock-conf.nix
2023-08-31 19:44:30 +09:00

57 lines
3.2 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;
# 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.
};
};
}