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")
|
"scripts/songcardartist")
|
||||||
|
|
||||||
(defpoll songcard_button :interval "1s" "scripts/songcardplayrender")
|
(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 wifi_label :interval "1s" "scripts/wifi")
|
||||||
(defpoll bluetooth_label :interval "1s" "scripts/bluetooth")
|
(defpoll bluetooth_label :interval "1s" "scripts/bluetooth")
|
||||||
(defpoll volume_level :interval "1s" "scripts/volume")
|
(defpoll volume_level :interval "1s" "scripts/volume")
|
||||||
|
@ -118,6 +119,7 @@
|
||||||
:space-evenly "false"
|
:space-evenly "false"
|
||||||
:spacing 10
|
:spacing 10
|
||||||
(literal :content {autosus})
|
(literal :content {autosus})
|
||||||
|
(weather)
|
||||||
(wifi)
|
(wifi)
|
||||||
(bluetooth)
|
(bluetooth)
|
||||||
(brightness)
|
(brightness)
|
||||||
|
@ -125,6 +127,10 @@
|
||||||
(power)
|
(power)
|
||||||
(timedate)))
|
(timedate)))
|
||||||
|
|
||||||
|
;; Displays the current weather
|
||||||
|
(defwidget weather []
|
||||||
|
(label :text {weather_text}))
|
||||||
|
|
||||||
;; A widget that displays the current wifi SSID
|
;; A widget that displays the current wifi SSID
|
||||||
(defwidget wifi []
|
(defwidget wifi []
|
||||||
(icon-module :icon "↑"
|
(icon-module :icon "↑"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue