aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/rofi
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 01:26:45 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 03:50:32 +0530
commitb6a7712005ee69028ec6c63510a031f73eaacaf1 (patch)
tree8ce4c80d2243365c090b3d17383b60de971508ae /modules/desktop/rofi
parentb1b7118c59c91da3b6688941888078b37ff0f637 (diff)
downloadhome-manager-config-b6a7712005ee69028ec6c63510a031f73eaacaf1.tar.gz
home-manager-config-b6a7712005ee69028ec6c63510a031f73eaacaf1.zip
desktop: using standard font sizes across the configuration
Diffstat (limited to 'modules/desktop/rofi')
-rw-r--r--modules/desktop/rofi/default.nix22
-rw-r--r--modules/desktop/rofi/theme.mustache.rasi4
2 files changed, 20 insertions, 6 deletions
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;
diff --git a/modules/desktop/rofi/theme.mustache.rasi b/modules/desktop/rofi/theme.mustache.rasi
index b2005c1..19a3252 100644
--- a/modules/desktop/rofi/theme.mustache.rasi
+++ b/modules/desktop/rofi/theme.mustache.rasi
@@ -41,7 +41,7 @@
urgent-background: @base00;
urgent-foreground: @base08;
- font: "FiraCode Nerd Font Bold 18";
+ font: @@rofi-font@@;
}
window {
@@ -151,7 +151,7 @@ message {
textbox {
background-color: transparent;
text-color: @foreground;
- font: "FiraCode Nerd Font Bold 14";
+ font: @@rofi-font-message@@;
}
error-message {