fix bar layout

This commit is contained in:
Schrottkatze 2024-10-03 19:30:56 +02:00
parent f903d1b45e
commit f0b640eeed
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
2 changed files with 42 additions and 35 deletions

View file

@ -15,18 +15,22 @@
(defwidget bottomBar [] (defwidget bottomBar []
(overlay (overlay
:class "bottomBar" :class "bottomBar"
(centerbox (transform
(box :translate-y "1.5px"
:halign "start" (centerbox
(workspaceWidget) (box
) :halign "start"
(box (workspaceWidget)
:halign "center" )
(traveldings) (box
) :halign "center"
(box (traveldings)
:halign "end" )
(label :text "${iceData.speed}km/h") (box
:halign "end"
; (label :text "${iceData.speed}km/h")
(iceTacho)
)
) )
) )
(box (box

View file

@ -16,30 +16,33 @@
(defwidget topBar [] (defwidget topBar []
(overlay (overlay
:class "topBar" :class "topBar"
(centerbox (transform
(box :translate-y "-1.5px"
:halign "start" (centerbox
:spacing 12 (box
:space-evenly false :halign "start"
(label :text " ") :spacing 12
(cpu) :space-evenly false
(sep) (label :text " ")
(mem) (cpu)
(sep) (sep)
(label :markup bat0) (mem)
(sep) (sep)
(label :markup bat1) (label :markup bat0)
) (sep)
(box (label :markup bat1)
:halign "center" )
(systray (box
:icon-size 18 :halign "center"
:spacing 3 (systray
:icon-size 18
:spacing 3
)
)
(box
:halign "end"
(time)
) )
)
(box
:halign "end"
(time)
) )
) )
(box (box