aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-30 21:12:29 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-31 05:20:19 +0530
commit75c6bd69a616e1f6c87c2c82983bc8e39985f341 (patch)
tree0240e69a181c0601c1beb5f51e76dc0d5af3449a
parent65e34d3c578ba09346317d8b5cdeedcb73481767 (diff)
downloadhome-manager-config-75c6bd69a616e1f6c87c2c82983bc8e39985f341.tar.gz
home-manager-config-75c6bd69a616e1f6c87c2c82983bc8e39985f341.zip
refactor: fixed the eww-bar service, standardised fonts and font sizes
-rw-r--r--modules/desktop/eww/default.nix11
-rw-r--r--modules/desktop/rofi/default.nix2
-rw-r--r--modules/fonts/default.nix24
3 files changed, 29 insertions, 8 deletions
diff --git a/modules/desktop/eww/default.nix b/modules/desktop/eww/default.nix
index 40a20a9..509596e 100644
--- a/modules/desktop/eww/default.nix
+++ b/modules/desktop/eww/default.nix
@@ -40,10 +40,10 @@
[
config.fonts.normal
(toString baseSize)
- (toString (baseSize + 6))
- (toString (baseSize - 2))
- (toString (baseSize - 6))
- (toString (baseSize - 4))
+ (toString config.fonts.iconSize)
+ (toString config.fonts.labelSize)
+ (toString config.fonts.smallSize)
+ (toString config.fonts.idxSize)
]
(builtins.readFile ./eww.mustache.scss);
}
@@ -62,9 +62,6 @@
ExecStart = "${lib.getExe config.desktop.eww.package} open bar";
ExecStop = "${lib.getExe config.desktop.eww.package} close bar";
};
- Install = {
- WantedBy = [ config.programs.eww.systemd.target ];
- };
};
};
}
diff --git a/modules/desktop/rofi/default.nix b/modules/desktop/rofi/default.nix
index c50447d..d193c10 100644
--- a/modules/desktop/rofi/default.nix
+++ b/modules/desktop/rofi/default.nix
@@ -26,7 +26,7 @@
]
[
''"${config.fonts.normal} Bold ${toString config.fonts.size}"''
- ''"${config.fonts.normal} Bold ${toString (config.fonts.size - 4)}"''
+ ''"${config.fonts.normal} Bold ${toString config.fonts.idxSize}"''
]
(builtins.readFile ./theme.mustache.rasi);
in
diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix
index cc282c7..352bc87 100644
--- a/modules/fonts/default.nix
+++ b/modules/fonts/default.nix
@@ -35,6 +35,30 @@
description = "Default desktop UI (GTK) font size.";
default = 11;
};
+
+ iconSize = lib.mkOption {
+ type = lib.types.int;
+ description = "Font size for icons (base size + 6).";
+ default = 24;
+ };
+
+ labelSize = lib.mkOption {
+ type = lib.types.int;
+ description = "Font size for labels (base size - 2).";
+ default = 16;
+ };
+
+ smallSize = lib.mkOption {
+ type = lib.types.int;
+ description = "Font size for small text (base size - 6).";
+ default = 12;
+ };
+
+ idxSize = lib.mkOption {
+ type = lib.types.int;
+ description = "Font size for index numbers (base size - 4).";
+ default = 14;
+ };
};
config = {