waybar: add weather module using wttrbar
This commit is contained in:
parent
30df75daf7
commit
6fa95c45f7
|
@ -65,6 +65,7 @@ tooltip {
|
|||
#battery,
|
||||
#clock,
|
||||
#custom-notification,
|
||||
#custom-weather,
|
||||
#tray {
|
||||
margin: 0px;
|
||||
padding: 1px 5px;
|
||||
|
@ -75,7 +76,8 @@ tooltip {
|
|||
#mpris,
|
||||
#tray,
|
||||
#backlight,
|
||||
#battery {
|
||||
#battery,
|
||||
#custom-weather {
|
||||
color: @base05;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
"clock"
|
||||
"backlight"
|
||||
"battery"
|
||||
"custom/weather"
|
||||
"tray"
|
||||
];
|
||||
# Module config
|
||||
|
@ -205,6 +206,13 @@
|
|||
"on-click-right" = "${swaync}/bin/swaync-client -d -sw";
|
||||
"escape" = true;
|
||||
};
|
||||
"custom/weather" = {
|
||||
"format" = "{}°";
|
||||
"tooltip" = true;
|
||||
"interval" = 3600;
|
||||
"exec" = "${pkgs.wttrbar}/bin/wttrbar --location London --hide-conditions";
|
||||
"return-type" = "json";
|
||||
};
|
||||
tray = {
|
||||
icon-size = config.stylix.fonts.sizes.desktop;
|
||||
show-passive-items = true;
|
||||
|
|
Loading…
Reference in a new issue