make weather icons better
This commit is contained in:
parent
75162c6f61
commit
c7e27e5594
@ -373,7 +373,7 @@ in {
|
||||
};
|
||||
|
||||
settings.mainbar = let
|
||||
weatherCommand = f: "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=${f}' || echo 'ERR') | ${pkgs.gnused}/bin/sed 's/^Unknown.*/ERR/'";
|
||||
weatherCommand = f: "(${pkgs.curl}/bin/curl 'wttr.in/${cfg.location}?format=${f}' || echo 'ERR') | ${pkgs.gnused}/bin/sed 's/^Unknown.*/ERR/' | ${pkgs.coreutils}/bin/tr -s ' '";
|
||||
in {
|
||||
position = lib.mkDefault "left";
|
||||
height = lib.mkDefault null;
|
||||
@ -389,22 +389,22 @@ in {
|
||||
};
|
||||
|
||||
"custom/weather-temp" = {
|
||||
exec = lib.mkDefault (weatherCommand "%c%t");
|
||||
exec = lib.mkDefault (weatherCommand "%c+%t");
|
||||
on-click = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://weather.com/weather/today/l/85625'";
|
||||
on-click-right = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = lib.mkDefault 900;
|
||||
interval = lib.mkDefault 300;
|
||||
};
|
||||
"custom/weather-precip" = {
|
||||
exec = lib.mkDefault (weatherCommand "🌧️+%p");
|
||||
on-click = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://www.lightningmaps.org/'";
|
||||
on-click-right = "lib.mkDefault ${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = lib.mkDefault 900;
|
||||
interval = lib.mkDefault 300;
|
||||
};
|
||||
"custom/weather-wind" = {
|
||||
exec = lib.mkDefault (weatherCommand "🌬️+%w");
|
||||
on-click = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://www.ventusky.com/";
|
||||
on-click-right = lib.mkDefault "${pkgs.xdg-utils}/bin/xdg-open 'https://wttr.in/${cfg.location}'";
|
||||
interval = lib.mkDefault 900;
|
||||
interval = lib.mkDefault 300;
|
||||
};
|
||||
|
||||
"custom/media" = {
|
||||
|
Loading…
Reference in New Issue
Block a user