mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: added font size argument
This commit is contained in:
parent
40a550f8d9
commit
8545d7c1e8
2 changed files with 9 additions and 7 deletions
|
@ -30,7 +30,7 @@ let
|
|||
|
||||
custom = {
|
||||
font = fonts.names.name0;
|
||||
font_size = "${builtins.toString fonts.sizes.desktop.size0}px";
|
||||
font_size = fonts.sizes.desktop.size0;
|
||||
font_weight = "bold";
|
||||
opacityBg = "0.90";
|
||||
opacityBt = "1";
|
||||
|
@ -44,6 +44,8 @@ let
|
|||
background_2 = el.base00;
|
||||
background_3 = el.base04;
|
||||
};
|
||||
|
||||
fontSizeMod = plus: builtins.toString (custom.font_size + plus);
|
||||
in
|
||||
''
|
||||
|
||||
|
@ -64,7 +66,7 @@ in
|
|||
}
|
||||
|
||||
#workspaces {
|
||||
font-size: 18px;
|
||||
font-size: ${fontSizeMod 6}px;
|
||||
padding-left: 5px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
@ -81,7 +83,7 @@ in
|
|||
}
|
||||
|
||||
#tray, #pulseaudio, #privacy, #cpu, #memory, #disk, #clock {
|
||||
font-size: ${custom.font_size};
|
||||
font-size: ${builtins.toString custom.font_size}px;
|
||||
color: #${custom.text_color};
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
@ -108,13 +110,13 @@ in
|
|||
}
|
||||
|
||||
#battery {
|
||||
font-size: ${custom.font_size};
|
||||
font-size: ${builtins.toString custom.font_size}px;
|
||||
color: #${custom.text_color};
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#custom-launcher {
|
||||
font-size: 20px;
|
||||
font-size: ${fontSizeMod 8}px;
|
||||
color: #${custom.text_color};
|
||||
font-weight: ${custom.font_weight};
|
||||
padding-left: 10px;
|
||||
|
@ -122,7 +124,7 @@ in
|
|||
}
|
||||
|
||||
#custom-weather {
|
||||
font-size: 14px;
|
||||
font-size: ${fontSizeMod 2}px;
|
||||
color: #${custom.text_color};
|
||||
font-weight: ${custom.font_weight};
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ in
|
|||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
# package = flake.inputs.waybar.packages.${pkgs.system}.default;
|
||||
package = flake.inputs.waybar.packages.${pkgs.system}.default;
|
||||
settings = settingsPath;
|
||||
style = stylePath;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue