(include "./widgets.yuck")

(defwindow dp-2
  :monitor "DP-2"
  :geometry (geometry 
    :x 0
    :y 0
    :width "100%"
    :height "20px"
    :anchor "top center")
  :stacking "bg"
  :exclusive true
  :focusable "ondemand"
  :namespace "dp-2"
  (top)
)

(defwindow dp-1
  :monitor "DP-1"
  :geometry (geometry
    :x 0
    :y 0
    :width "100%"
    :height "20px"
    :anchor "top center")
  :stacking "bg"
  :exclusive true
  :focusable "ondemand"
  :namespace "dp-1"
  (top)
)

(defwidget top []
  (centerbox 
    :orientation "h"
    (left)
    (center)
    (right)
  )
)

(defwidget left []
  (box
    :orientation 'h'
    :class 'left'
    :space-evenly false
    :spacing 5
    :halign 'start'
    (hypr_workspaces)
    (hypr_active_window)
  )
)

(defwidget center []
  (box
    :orientation 'h'
    :class 'center'
    :space-evenly false
    :spacing 5
    (media)
    (sysmon)
  )
)

(defwidget right []
  (box
    :orientation 'h'
    :class 'right'
    :space-evenly false
    :spacing 5
    :halign 'end'
    (alhp)
    (hyprsunset)
    (volume)
    (datetime)
    (stray)
    (swaync)
  )
)

