nixcfg/homeManagerModules/apps/swaylock/default.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
2024-08-07 21:50:38 -04:00
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.swaylock.enable {
home.packages = with pkgs; [swaylock];
programs.swaylock.enable = true;
xdg.configFile."swaylock/config".text = ''
2024-06-03 22:10:25 -04:00
bs-hl-color=e78284
caps-lock-bs-hl-color=e78284
caps-lock-key-hl-color=e78284
color=303446
daemonize
2024-08-07 21:50:38 -04:00
font="${cfg.theme.monospaceFont.name}"
image=${cfg.theme.wallpaper}
indicator-caps-lock
indicator-idle-visible
2024-06-03 22:10:25 -04:00
indicator-radius=120
indicator-thickness=20
inside-caps-lock-color=303446cc
2024-06-03 22:10:25 -04:00
inside-clear-color=303446cc
inside-color=303446cc
inside-ver-color=303446cc
inside-wrong-color=303446cc
2024-06-03 22:10:25 -04:00
key-hl-color=a6d189
2024-08-07 21:50:38 -04:00
line-caps-lock-color=${cfg.theme.colors.background}CC
line-clear-color=${cfg.theme.colors.background}CC
line-color=${cfg.theme.colors.background}CC
line-ver-color=${cfg.theme.colors.background}CC
line-wrong-color=${cfg.theme.colors.background}CC
2024-06-03 22:10:25 -04:00
ring-caps-lock-color=e78284cc
ring-clear-color=85c1dccc
2024-08-07 21:50:38 -04:00
ring-color=${cfg.theme.colors.primary}CC
2024-06-03 22:10:25 -04:00
ring-ver-color=a6d189cc
ring-wrong-color=e78284cc
2024-07-30 21:14:15 -04:00
scaling=fill
2024-08-07 21:50:38 -04:00
separator-color=${cfg.theme.colors.background}CC
2024-06-03 22:10:25 -04:00
text-caps-lock-color=c6d0f5
text-clear-color=c6d0f5
text-ver-color=c6d0f5
text-wrong-color=c6d0f5
'';
};
}