From 0cd2b2bd00a43191f88b140ff0e85950f37642b1 Mon Sep 17 00:00:00 2001 From: Nico Date: Tue, 26 Aug 2025 19:28:22 +1000 Subject: [PATCH] waybar: decrease margins of window now right and left margin match one top and bottom margins. can't for some reason remove the top margin using css --- stow/.config/waybar/config.jsonc | 2 +- stow/.config/waybar/style.css | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/stow/.config/waybar/config.jsonc b/stow/.config/waybar/config.jsonc index 59a7b2c..9f6d3b4 100644 --- a/stow/.config/waybar/config.jsonc +++ b/stow/.config/waybar/config.jsonc @@ -2,7 +2,7 @@ "layer": "top", // Waybar at top layer "position": "right", // Waybar position (top|bottom|left|right) //"height": 40, - "margin": "0 10 0 10", + "margin": "0 5 5 5", //"width": 1350, // Waybar width // Choose the order of the modules idle_inhibitor "modules-left": [ diff --git a/stow/.config/waybar/style.css b/stow/.config/waybar/style.css index d8c4914..82f8ba0 100644 --- a/stow/.config/waybar/style.css +++ b/stow/.config/waybar/style.css @@ -31,11 +31,10 @@ window#waybar.solo { } */ -button { - /* Avoid rounded borders under each button name */ +/*button { border: none; border-radius: 0; -} +}*/ #workspaces { background-color: @background; @@ -50,19 +49,20 @@ button { } #workspaces button.active { - color: @on_primary; - background-color: @on_primary_container; + color: @on_primary_container; + background-color: @primary_container; } #workspaces button:hover { color: @on_primary; background: @on_primary_container; -} + border: 0px solid black; +}/* #workspaces button.urgent { color: @error; background-color: @error_container; -} +}*/ #clock, #battery, @@ -101,6 +101,7 @@ button { border-top-left-radius: 0px; border-top-right-radius: 0px; margin-top: 0px; + margin-bottom: 0px; border-left: none;