(include "./modules/bluetooth.yuck")
(include "./modules/bright.yuck")
(include "./modules/clock.yuck")
(include "./modules/music.yuck")
(include "./modules/net.yuck")
(include "./modules/sys.yuck")
(include "./modules/variables.yuck")
(include "./modules/volume.yuck")
(include "./modules/workspaces.yuck")

(include "./windows/calendar.yuck")
(include "./windows/music.yuck")
(include "./windows/osd.yuck")
(include "./windows/system-menu.yuck")

(defwidget left []
  (box
    :space-evenly false
    :halign "start"
    (workspaces :o "h")))

(defwidget right []
  (box
    :space-evenly false
    :halign "end"
    (net)
    (sys)
    (clock_module)))

(defwidget center []
  (box
    :space-evenly false
    :halign "center"
    ))

(defwidget bar_1 []
  (centerbox
    :class "bar"
    :orientation "v"
    (box :valign "start" (workspaces :o "v"))
    (box)
    (box)))

(defwidget bar_2 []
  (centerbox
    :class "bar"
    (left)
    (center)
    (right)))

(defwindow bar_1
  :monitor 0
  :geometry (geometry
    :x "0%"
    :y "0%"
    :width "32px"
    :height "100%"
    :anchor "center left")
  :stacking "fg"
  :exclusive true
  (bar_1))

(defwindow bar_2
    :monitor 1
    :geometry (geometry :x "0%"
      :y "0%"
      :width "100%"
      :height "32px"
      :anchor "top center")
    :stacking "fg"
    :exclusive true
  (bar_2))