feat: added font size argument

This commit is contained in:
Nick 2025-06-16 15:46:20 -05:00
parent 40a550f8d9
commit 8545d7c1e8
2 changed files with 9 additions and 7 deletions

View file

@ -30,7 +30,7 @@ let
custom = { custom = {
font = fonts.names.name0; font = fonts.names.name0;
font_size = "${builtins.toString fonts.sizes.desktop.size0}px"; font_size = fonts.sizes.desktop.size0;
font_weight = "bold"; font_weight = "bold";
opacityBg = "0.90"; opacityBg = "0.90";
opacityBt = "1"; opacityBt = "1";
@ -44,6 +44,8 @@ let
background_2 = el.base00; background_2 = el.base00;
background_3 = el.base04; background_3 = el.base04;
}; };
fontSizeMod = plus: builtins.toString (custom.font_size + plus);
in in
'' ''
@ -64,7 +66,7 @@ in
} }
#workspaces { #workspaces {
font-size: 18px; font-size: ${fontSizeMod 6}px;
padding-left: 5px; padding-left: 5px;
margin-bottom: 0px; margin-bottom: 0px;
} }
@ -81,7 +83,7 @@ in
} }
#tray, #pulseaudio, #privacy, #cpu, #memory, #disk, #clock { #tray, #pulseaudio, #privacy, #cpu, #memory, #disk, #clock {
font-size: ${custom.font_size}; font-size: ${builtins.toString custom.font_size}px;
color: #${custom.text_color}; color: #${custom.text_color};
padding-right: 10px; padding-right: 10px;
} }
@ -108,13 +110,13 @@ in
} }
#battery { #battery {
font-size: ${custom.font_size}; font-size: ${builtins.toString custom.font_size}px;
color: #${custom.text_color}; color: #${custom.text_color};
padding-right: 10px; padding-right: 10px;
} }
#custom-launcher { #custom-launcher {
font-size: 20px; font-size: ${fontSizeMod 8}px;
color: #${custom.text_color}; color: #${custom.text_color};
font-weight: ${custom.font_weight}; font-weight: ${custom.font_weight};
padding-left: 10px; padding-left: 10px;
@ -122,7 +124,7 @@ in
} }
#custom-weather { #custom-weather {
font-size: 14px; font-size: ${fontSizeMod 2}px;
color: #${custom.text_color}; color: #${custom.text_color};
font-weight: ${custom.font_weight}; font-weight: ${custom.font_weight};
} }

View file

@ -12,7 +12,7 @@ in
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
# package = flake.inputs.waybar.packages.${pkgs.system}.default; package = flake.inputs.waybar.packages.${pkgs.system}.default;
settings = settingsPath; settings = settingsPath;
style = stylePath; style = stylePath;
}; };