diff --git a/modules/home/gui/desktop/wayland/waybar/config/style.nix b/modules/home/gui/desktop/wayland/waybar/config/style.nix index 018d9b2..f222e21 100755 --- a/modules/home/gui/desktop/wayland/waybar/config/style.nix +++ b/modules/home/gui/desktop/wayland/waybar/config/style.nix @@ -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}; } diff --git a/modules/home/gui/desktop/wayland/waybar/default.nix b/modules/home/gui/desktop/wayland/waybar/default.nix index cf8371a..f961167 100755 --- a/modules/home/gui/desktop/wayland/waybar/default.nix +++ b/modules/home/gui/desktop/wayland/waybar/default.nix @@ -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; };