(defwindow bar :monitor 1 :geometry (geometry :x "0px" :y "0px" :width "100%" :height "0" :anchor "top center" ) :stacking "fg" :exclusive true :focusable false (bar) ) (defwidget bar [] (box :class "bar" :orientation "h" :hexpand true :space-evenly true (left) (center) (right) ) ) (defwidget left [] (box :class "panel" :orientation "h" :halign "start" :valign "fill" :space-evenly false (workspaces_indicator :hexpand true :valign "center") ) ) (defwidget center [] (box :class "panel" :halign "center" :valign "fill" :space-evenly false (label :text "Hareworks" :class "center") ) ) (defwidget right [] (box :class "panel" :orientation "h" :halign "end" :valign "fill" :space-evenly false (system-tray) (label :text time) ) ) (defwidget workspaces_indicator [] (literal :content workspaces_indicator :hexpand true :valign "center" ) ) (deflisten workspaces_indicator `sh ~/.config/eww/bar/workspace.sh 1`) (defpoll time :interval "10s" "date '+%H:%M %b %d, %Y'") (defwidget system-tray [] (systray :halign "center" :icon-size 24 :height 32 ) ) (defwindow roundedEdge :monitor 1 :geometry (geometry :x "0px" :y "0px" :width "100%" :height "15px" :anchor "top center") :stacking "bg" :exclusive false :focusable false (box :class "roundededge" :orientation "h" :space-evenly false (label :text "" :class "left" :width 15) (label :text "" :class "center" :hexpand true) (label :text "" :class "right" :width 15) ) )