Update waybar wttr and tooltip settings
Remove wttr tooltip, add custom format to include "feels like" temperature Split tooltip styling into tooltip and tooltip label for better control. Still can't use transparency for now though, TODO later.
This commit is contained in:
parent
7bfb8c1718
commit
6686c06ef8
|
@ -206,11 +206,14 @@
|
|||
"on-click-right" = "${swaync}/bin/swaync-client -d -sw";
|
||||
"escape" = true;
|
||||
};
|
||||
"custom/weather" = {
|
||||
"custom/weather" = let
|
||||
date-format = "%Y-%m-%d";
|
||||
custom-indicator = "{ICON}{temp_C}({FeelsLikeC})";
|
||||
in {
|
||||
"format" = "{}°";
|
||||
"tooltip" = true;
|
||||
"tooltip" = false;
|
||||
"interval" = 900; # Every 15 minutes
|
||||
"exec" = "${pkgs.wttrbar}/bin/wttrbar --location Didcot --hide-conditions";
|
||||
"exec" = ''${pkgs.wttrbar}/bin/wttrbar --location Didcot --date-format "${date-format}" --custom-indicator "${custom-indicator}"'';
|
||||
"return-type" = "json";
|
||||
};
|
||||
tray = {
|
||||
|
@ -243,10 +246,16 @@
|
|||
}
|
||||
|
||||
tooltip {
|
||||
color: ${base05};
|
||||
background: alpha(${base00}, ${toString opacity.popups});
|
||||
/* TODO make transparent when I can fix the blurls issue */
|
||||
/* background: alpha(${base00}, ${toString opacity.popups}); */
|
||||
background: ${base00};
|
||||
border: 1px solid ${accent};
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
tooltip label {
|
||||
color: ${base05};
|
||||
border: none;
|
||||
padding: 5px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue