diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck index ed58738..c5f34b5 100644 --- a/.config/eww/eww.yuck +++ b/.config/eww/eww.yuck @@ -29,6 +29,7 @@ "scripts/songcardartist") (defpoll songcard_button :interval "1s" "scripts/songcardplayrender") +(defpoll weather_text :interval "60s" "curl 'wttr.in/Boston?m&format=1'") (defpoll wifi_label :interval "1s" "scripts/wifi") (defpoll bluetooth_label :interval "1s" "scripts/bluetooth") (defpoll volume_level :interval "1s" "scripts/volume") @@ -118,6 +119,7 @@ :space-evenly "false" :spacing 10 (literal :content {autosus}) + (weather) (wifi) (bluetooth) (brightness) @@ -125,6 +127,10 @@ (power) (timedate))) +;; Displays the current weather +(defwidget weather [] + (label :text {weather_text})) + ;; A widget that displays the current wifi SSID (defwidget wifi [] (icon-module :icon "↑"