Fix: Whitespaces begone or something

This commit is contained in:
stitchy 2024-11-27 10:41:47 +00:00
parent 7545885942
commit 4d66a5e231
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
11 changed files with 94 additions and 28 deletions

View file

@ -1,4 +1,4 @@
;;;; (defpoll time :interval "1s" 'date +%s')
;;;; (defpoll time :interval "1s" 'date +%s')
(defwidget clock []
(box :orientation "vertical"
@ -22,12 +22,12 @@
))))))
(defwidget circle [val prog sty char]
(defwidget circle [val prog sty char]
(box :halign "center"
:orientation "vertical"
:valign "end"
(circular-progress :value prog
:start-at 10
(circular-progress :value prog
:start-at 10
:clockwise false
:thickness 3
:width 30
@ -38,14 +38,14 @@
(box :class "circle" :style sty char)))
(defwidget battery []
(circle :prog {EWW_BATTERY.BAT1.capacity * (77778 /100000)}
(circle :prog {EWW_BATTERY.BAT1.capacity * (77778 /100000)}
:sty "color: ${EWW_BATTERY.BAT1.status == 'Charging' ? '#1a1': EWW_BATTERY.BAT1.capacity < 20 ? '#a11': '#cac'};"
:val {EWW_BATTERY.BAT1.capacity}
:char "󱐋"))
(deflisten vol "cat ~/.cache/eww/vol && inotifywait -q -m -e close_write ~/.cache/eww/vol | while read -r filename event; do cat ~/.cache/eww/vol; done")
(defwidget volume []
(defwidget volume []
(circle :prog {vol * 7/10}
:sty "font-size: 12; margin-right: 2px;"
:val {vol + 1 - 1}
@ -79,7 +79,7 @@
:space-evenly false
(_workspaces)
(clock)
(box :orientation "vertical" :spacing -25 :valign "end"
(box :orientation "vertical" :spacing -25 :valign "end"
(brightness)
(mic)
(volume)