From b6a7712005ee69028ec6c63510a031f73eaacaf1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 29 Aug 2026 01:26:45 +0530 Subject: desktop: using standard font sizes across the configuration --- modules/desktop/rofi/default.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'modules/desktop/rofi/default.nix') diff --git a/modules/desktop/rofi/default.nix b/modules/desktop/rofi/default.nix index d40ccbb..c50447d 100644 --- a/modules/desktop/rofi/default.nix +++ b/modules/desktop/rofi/default.nix @@ -16,10 +16,24 @@ config = lib.mkIf config.desktop.enable { programs.rofi = { enable = true; - theme = "${config.scheme { - template = builtins.readFile ./theme.mustache.rasi; - extension = ".rasi"; - }}"; + theme = + let + template = + builtins.replaceStrings + [ + "@@rofi-font@@" + "@@rofi-font-message@@" + ] + [ + ''"${config.fonts.normal} Bold ${toString config.fonts.size}"'' + ''"${config.fonts.normal} Bold ${toString (config.fonts.size - 4)}"'' + ] + (builtins.readFile ./theme.mustache.rasi); + in + "${config.scheme { + inherit template; + extension = ".rasi"; + }}"; extraConfig = { modi = "drun"; show-icons = true; -- cgit v1.2.3