From d3cf3f7813824f81d11186dd8f27c98cb245da11 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 17 Dec 2021 03:30:04 -0700 Subject: [PATCH] add little wavy spacers to waybar --- home-manager/modules/ezpcusr.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/home-manager/modules/ezpcusr.nix b/home-manager/modules/ezpcusr.nix index 1488704..3a36bd9 100644 --- a/home-manager/modules/ezpcusr.nix +++ b/home-manager/modules/ezpcusr.nix @@ -368,11 +368,17 @@ in position = "left"; height = null; - modules-left = [ "sway/workspaces" "custom/weather-temp" "custom/weather-precip" "custom/weather-wind" ]; - modules-center = [ "clock#1" "clock#2" "mpd" "clock#3" ]; - modules-right = [ "pulseaudio" "memory" "cpu" ] ++ lib.optionals cfg.battery [ "battery" ] ++ [ "tray" ]; + modules-left = [ "sway/workspaces" "custom/spacer" "custom/weather-temp" "custom/weather-precip" "custom/weather-wind" ]; + modules-center = [ "clock#1" "clock#2" "custom/spacer" "mpd" "custom/spacer" "clock#3" ]; + modules-right = [ "pulseaudio" "custom/spacer" "memory" "custom/spacer" "cpu" ] ++ lib.optionals cfg.battery [ "custom/spacer" "battery" ] ++ [ "custom/spacer" "tray" ]; modules = { + "custom/spacer" = { + format = "〰"; + rotate = 90; + tooltip = false; + }; + "custom/weather-temp" = { exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=%c+%t' || echo ERR"; on-click = "${pkgs.xdg-utils}/bin/xdg-open 'https://weather.com/weather/today/l/85625'"; @@ -467,6 +473,14 @@ in color: #${config.colors.base16.base06}; } + #custom-spacer { + font-size: 15px; + color: #${config.colors.base16.base00}; + font-weight: bold; + margin: 0; + padding: 0; + } + #workspaces, #clock.1, #clock.2, @@ -484,7 +498,7 @@ in #mpd { background: #${config.colors.base16.base00}; padding: 5px 0; - margin: 10px 0; + margin: 0; } #workspaces { padding: 0 0 5px 0; }