forked from ahurac/dotfiles
40 lines
821 B
Text
40 lines
821 B
Text
(defwidget time []
|
|
(eventbox :class "time"
|
|
"${formattime(EWW_TIME, "%Y-%m-%d | %H:%M:%S")}"
|
|
)
|
|
)
|
|
|
|
(defwidget battery []
|
|
(box
|
|
(label
|
|
:text "${EWW_BATTERY.BAT0.status == "Discharging" ? "" : ""}"
|
|
)
|
|
(label :text "${EWW_BATTERY.BAT0.capacity} %")
|
|
)
|
|
)
|
|
|
|
(defwindow bar
|
|
:monitor 0
|
|
:geometry (geometry
|
|
:x "0%"
|
|
:y "0%"
|
|
:width "100%"
|
|
:height "2.5%"
|
|
:anchor "bottom center"
|
|
)
|
|
:stacking "fg"
|
|
:reserve (struts :distance "0px" :side "top")
|
|
:windowtype "dock"
|
|
:wm-ignore false
|
|
:exclusive true
|
|
:focusable false
|
|
(centerbox
|
|
(box :class "left")
|
|
(box :class "center"
|
|
(time)
|
|
)
|
|
(box :class "right" :halign "end"
|
|
(battery)
|
|
)
|
|
)
|
|
)
|