From b1e8aded32f676d620f4f5b4039949a797e6d209 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 6 Oct 2024 10:44:01 -0500 Subject: [PATCH] waybar: use custom gap option Signed-off-by: Myned --- options/custom/programs/waybar/default.nix | 10 +++++++++- options/custom/programs/waybar/style.css | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/options/custom/programs/waybar/default.nix b/options/custom/programs/waybar/default.nix index b7e6b7c..01c0ae9 100644 --- a/options/custom/programs/waybar/default.nix +++ b/options/custom/programs/waybar/default.nix @@ -43,9 +43,17 @@ in { # https://www.nerdfonts.com/cheat-sheet programs.waybar = { enable = true; - style = ./style.css; # ?? waybar --log-level debug systemd.enable = true; # Start on login + # ?? waybar --log-level debug + style = '' + ${readFile ./style.css} + + .horizontal > box { + margin: 0 ${toString config.custom.gap}px ${toString config.custom.gap}px; + } + ''; + ### SETTINGS ### # https://github.com/Alexays/Waybar/wiki/Configuration #?? pkill -SIGUSR2 -x waybar diff --git a/options/custom/programs/waybar/style.css b/options/custom/programs/waybar/style.css index d97d74a..9139e69 100644 --- a/options/custom/programs/waybar/style.css +++ b/options/custom/programs/waybar/style.css @@ -33,7 +33,6 @@ tooltip { .horizontal > box { background: #002b36; border: 2px #073642 solid; - margin: 0 10px 10px; padding: 4px; }