add little wavy spacers to waybar

This commit is contained in:
notgne2 2021-12-17 03:30:04 -07:00
parent f1e11eaf62
commit d3cf3f7813
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -368,11 +368,17 @@ in
position = "left"; position = "left";
height = null; height = null;
modules-left = [ "sway/workspaces" "custom/weather-temp" "custom/weather-precip" "custom/weather-wind" ]; modules-left = [ "sway/workspaces" "custom/spacer" "custom/weather-temp" "custom/weather-precip" "custom/weather-wind" ];
modules-center = [ "clock#1" "clock#2" "mpd" "clock#3" ]; modules-center = [ "clock#1" "clock#2" "custom/spacer" "mpd" "custom/spacer" "clock#3" ];
modules-right = [ "pulseaudio" "memory" "cpu" ] ++ lib.optionals cfg.battery [ "battery" ] ++ [ "tray" ]; modules-right = [ "pulseaudio" "custom/spacer" "memory" "custom/spacer" "cpu" ] ++ lib.optionals cfg.battery [ "custom/spacer" "battery" ] ++ [ "custom/spacer" "tray" ];
modules = { modules = {
"custom/spacer" = {
format = "";
rotate = 90;
tooltip = false;
};
"custom/weather-temp" = { "custom/weather-temp" = {
exec = "${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=%c+%t' || echo ERR"; 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'"; 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}; color: #${config.colors.base16.base06};
} }
#custom-spacer {
font-size: 15px;
color: #${config.colors.base16.base00};
font-weight: bold;
margin: 0;
padding: 0;
}
#workspaces, #workspaces,
#clock.1, #clock.1,
#clock.2, #clock.2,
@ -484,7 +498,7 @@ in
#mpd { #mpd {
background: #${config.colors.base16.base00}; background: #${config.colors.base16.base00};
padding: 5px 0; padding: 5px 0;
margin: 10px 0; margin: 0;
} }
#workspaces { padding: 0 0 5px 0; } #workspaces { padding: 0 0 5px 0; }