swaylock: migrate to font modules

This commit is contained in:
Aly Raffauf 2024-08-07 21:50:38 -04:00
parent 0544cc476a
commit f54de08162

View file

@ -3,8 +3,10 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
config = lib.mkIf config.ar.home.apps.swaylock.enable { cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.swaylock.enable {
home.packages = with pkgs; [swaylock]; home.packages = with pkgs; [swaylock];
programs.swaylock.enable = true; programs.swaylock.enable = true;
@ -15,8 +17,8 @@
caps-lock-key-hl-color=e78284 caps-lock-key-hl-color=e78284
color=303446 color=303446
daemonize daemonize
font="UbuntuSansMono Nerd Font" font="${cfg.theme.monospaceFont.name}"
image=${config.ar.home.theme.wallpaper} image=${cfg.theme.wallpaper}
indicator-caps-lock indicator-caps-lock
indicator-idle-visible indicator-idle-visible
indicator-radius=120 indicator-radius=120
@ -27,18 +29,18 @@
inside-ver-color=303446cc inside-ver-color=303446cc
inside-wrong-color=303446cc inside-wrong-color=303446cc
key-hl-color=a6d189 key-hl-color=a6d189
line-caps-lock-color=${config.ar.home.theme.colors.background}CC line-caps-lock-color=${cfg.theme.colors.background}CC
line-clear-color=${config.ar.home.theme.colors.background}CC line-clear-color=${cfg.theme.colors.background}CC
line-color=${config.ar.home.theme.colors.background}CC line-color=${cfg.theme.colors.background}CC
line-ver-color=${config.ar.home.theme.colors.background}CC line-ver-color=${cfg.theme.colors.background}CC
line-wrong-color=${config.ar.home.theme.colors.background}CC line-wrong-color=${cfg.theme.colors.background}CC
ring-caps-lock-color=e78284cc ring-caps-lock-color=e78284cc
ring-clear-color=85c1dccc ring-clear-color=85c1dccc
ring-color=${config.ar.home.theme.colors.primary}CC ring-color=${cfg.theme.colors.primary}CC
ring-ver-color=a6d189cc ring-ver-color=a6d189cc
ring-wrong-color=e78284cc ring-wrong-color=e78284cc
scaling=fill scaling=fill
separator-color=${config.ar.home.theme.colors.background}CC separator-color=${cfg.theme.colors.background}CC
text-caps-lock-color=c6d0f5 text-caps-lock-color=c6d0f5
text-clear-color=c6d0f5 text-clear-color=c6d0f5
text-ver-color=c6d0f5 text-ver-color=c6d0f5