aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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 = {