dotfiles/config/eww-ahrc--laptop/eww.yuck

41 lines
821 B
Text
Raw Normal View History

2024-03-05 10:53:32 +01:00
(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)
)
)
)