nixcfg/homeManagerModules/apps/swaylock/default.nix

60 lines
1.7 KiB
Nix
Raw Normal View History

{
pkgs,
lib,
config,
...
}: {
options = {alyraffauf.apps.swaylock.enable = lib.mkEnableOption "Enable Swaylock.";};
config = lib.mkIf config.alyraffauf.apps.swaylock.enable {
home.packages = with pkgs; [swaylock];
programs.swaylock.enable = true;
xdg.configFile."swaylock/config".text = ''
2024-05-04 21:10:26 -04:00
font="${config.alyraffauf.desktop.theme.terminalFont.name}-Regular"
color=303446
image=${config.alyraffauf.desktop.theme.wallpaper}
2024-04-28 13:49:50 -04:00
daemonize
indicator-radius=120
indicator-thickness=20
indicator-caps-lock
indicator-idle-visible
key-hl-color=a6d189
2024-05-04 21:10:26 -04:00
separator-color=${config.alyraffauf.desktop.theme.colors.background}CC
inside-color=303446cc
inside-clear-color=303446cc
inside-caps-lock-color=303446cc
inside-ver-color=303446cc
inside-wrong-color=303446cc
2024-05-04 21:10:26 -04:00
ring-color=${config.alyraffauf.desktop.theme.colors.primary}CC
ring-clear-color=85c1dccc
ring-caps-lock-color=e78284cc
ring-ver-color=a6d189cc
ring-wrong-color=e78284cc
2024-05-04 21:10:26 -04:00
line-color=${config.alyraffauf.desktop.theme.colors.background}CC
line-clear-color=${config.alyraffauf.desktop.theme.colors.background}CC
line-caps-lock-color=${config.alyraffauf.desktop.theme.colors.background}CC
line-ver-color=${config.alyraffauf.desktop.theme.colors.background}CC
line-wrong-color=${config.alyraffauf.desktop.theme.colors.background}CC
text-clear-color=c6d0f5
text-ver-color=c6d0f5
text-wrong-color=c6d0f5
bs-hl-color=e78284
caps-lock-key-hl-color=e78284
caps-lock-bs-hl-color=e78284
text-caps-lock-color=c6d0f5
'';
};
}