From 920b1a983f98195e6b48fa270ad63defca521cba Mon Sep 17 00:00:00 2001 From: brink-lab Date: Sat, 18 Oct 2025 13:32:38 +0200 Subject: [PATCH] Fix spacing between icons on Waybar (#1411) * Update style.css Fixes the uneven spacing between icons on waybar by updating styling.css with Propo font family. However, Propo introduces a small issue as the volume icons don't have the same with. As a consequence, icons left of volume will move based on the displayed volume icon. To solve this, I added a non-Propo font to the pipewire module as well - this way the volume icons have fixed length but eats a bit into the spacing towards the CPU icon. But I see this as the best trade-off. * Update waybar config.jsonc * Update tray spacing in waybar config * Modify margins in style.css Adjusted margins for various elements. * Update waybar css for even spacing * Update Waybar config tray spacing --- config/waybar/config.jsonc | 4 ++-- config/waybar/style.css | 19 ++++++++++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 8db620ba..8fe19a3c 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -122,7 +122,7 @@ "modules": ["custom/expand-icon", "tray"] }, "custom/expand-icon": { - "format": " ", + "format": "", "tooltip": false }, "custom/screenrecording-indicator": { @@ -133,6 +133,6 @@ }, "tray": { "icon-size": 12, - "spacing": 12 + "spacing": 17 } } diff --git a/config/waybar/style.css b/config/waybar/style.css index 2cf371b3..f2b1e9fe 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -7,7 +7,7 @@ border: none; border-radius: 0; min-height: 0; - font-family: CaskaydiaMono Nerd Font; + font-family: 'CaskaydiaMono Nerd Font'; font-size: 12px; } @@ -30,11 +30,8 @@ opacity: 0.5; } -#tray, #cpu, #battery, -#network, -#bluetooth, #pulseaudio, #custom-omarchy, #custom-screenrecording-indicator, @@ -43,8 +40,20 @@ margin: 0 7.5px; } +#tray { + margin-right: 16px; +} + +#bluetooth { + margin-right: 17px; +} + +#network { + margin-right: 13px; +} + #custom-expand-icon { - margin-right: 7px; + margin-right: 20px; } tooltip {