feat(eww): add weather widget
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
7fb4d00fa2
commit
e9cb27e509
1 changed files with 6 additions and 0 deletions
|
@ -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 "↑"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue