weather and leftwm_state variables

This commit is contained in:
Candifloss 2024-12-12 11:15:48 +05:30
parent 420abf483b
commit 5ba780343e
2 changed files with 14 additions and 0 deletions

View File

@ -32,3 +32,17 @@
:initial "{\"level\":\"0\",\"status\":\"empty\",\"icon\":\"\"}"
`sh/values/power/battery.sh`
)
;Weather
(defpoll weather
:interval "5m"
:initial "{\"coord\":{\"lon\":0,\"lat\":0},\"weather\":[{\"id\":0,\"main\":\"Unknown\",\"description\":\"unknown\",\"icon\":\"00d\"},{\"id\":0,\"main\":\"Not available\",\"description\":\"not available\",\"icon\":\"00d\"}],\"base\":\"stations\",\"main\":{\"temp\":0,\"feels_like\":0,\"temp_min\":0,\"temp_max\":0,\"pressure\":0,\"humidity\":0,\"sea_level\":0,\"grnd_level\":0},\"visibility\":0,\"wind\":{\"speed\":0,\"deg\":0},\"rain\":{\"1h\":0},\"clouds\":{\"all\":0},\"dt\":978310800,\"sys\":{\"type\":0,\"id\":0,\"country\":\"UK\",\"sunrise\":978310800,\"sunset\":978310800},\"timezone\":0,\"id\":0,\"name\":\"Unknown\",\"cod\":0}"
`sh/values/weather/weather.sh`
)
;WIndow managers
(defpoll leftwm_state
:insterval "300ms"
:initial "{\"window_title\":\"None\",\"workspaces\":[{\"id\":1,\"output\":\"VGA-1\",\"h\":0,\"w\":0,\"x\":0,\"y\":0,\"layout\":\"Default\",\"index\":0,\"tags\":[{\"name\":\"1\",\"index\":0,\"mine\":false,\"visible\":false,\"focused\":false,\"urgent\":false,\"busy\":false}]}]}"
`leftwm state`
)