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; }