Ajout : config eww ahrc-laptop

This commit is contained in:
Ahurac 2024-03-05 10:53:32 +01:00
parent cad9fea16b
commit 1ccd4132f4
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,9 @@
window {
background-color: rgba(0, 0, 0, 0);
color: #ffffff;
font-weight: bold;
}
window > box {
margin: 0px 15px;
}

View file

@ -0,0 +1,40 @@
(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)
)
)
)