(include "widgets/date_time.yuck")
(include "widgets/nowplaying.yuck")
(include "widgets/divider.yuck")
(include "widgets/quick_power.yuck")
(include "widgets/workspaces.yuck")
(include "widgets/system_info.yuck")
(include "widgets/desktop_button.yuck")
(include "widgets/weather.yuck")

(defwidget bar []
    (box :orientation "h" :class "bar" :spacing "10" :space-evenly false
            (centerbox :orientation "h" :hexpand true :class "center bar_section"
                (box :class "left" :halign "start"
                    (workspaces)
                )
                (box :class "center" :halign "end"
                )
                (box :halign "end" :space-evenly "false"
                    (weather)
                    (systeminfo)
                    (date_time)
                )
            )
            (box :class "right bar_section" :halign "end" :space-evenly false
                (quickpower)
            )
    )
)
