(include "./widgets/bar/elements/time.yuck")
(include "./widgets/bar/elements/workspaces.yuck")
(include "./widgets/bar/elements/audio.yuck")

(defwidget bar []
  (centerbox 
    :class "bar"
    (box
      (bar-workspaces)
    )
    (box
      (bar-time)
    )
    (box
      :space-evenly false
      :halign "end"
      :spacing 10
      (bar-audio)
      (systray 
        :class "widget default-padding"
        :space-evenly false
        :spacing 10
        :hexpand false
        :halign "end"
      )
    )
  )
)

(defwindow bar [monitor]
  :monitor {monitor}
  :geometry (geometry 
  :x "0px"
  :y "10px"
  :width "100%"
  :height "0px"
  :anchor "top center")
  :stacking "fg"
  (bar)
  )
