diff --git a/config/eww-ahrc--laptop/eww.scss b/config/eww-ahrc--laptop/eww.scss new file mode 100644 index 0000000..ec6ea84 --- /dev/null +++ b/config/eww-ahrc--laptop/eww.scss @@ -0,0 +1,9 @@ +window { + background-color: rgba(0, 0, 0, 0); + color: #ffffff; + font-weight: bold; +} + +window > box { + margin: 0px 15px; +} diff --git a/config/eww-ahrc--laptop/eww.yuck b/config/eww-ahrc--laptop/eww.yuck new file mode 100644 index 0000000..9371272 --- /dev/null +++ b/config/eww-ahrc--laptop/eww.yuck @@ -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) + ) + ) +)