(include "widgets/hardware_stats/hardware-tab/hardware_tab.yuck")
(include "widgets/hardware_stats/battery/battery.yuck")
(include "widgets/bar/bar.yuck")
(include "widgets/active_window/active_window.yuck")
(include "widgets/player/player.yuck")
(include "widgets/player/metadata/metadata.yuck")

(defwindow bar
  :monitor 0
  :geometry (geometry :x "0%"
              :y "0px"
              :width "100%"
              :height "30px"
              :anchor "top center")
  :stacking "fg"
  :windowtype "dock"
  :wm-ignore false
  :exclusive true
  (box
    (player)
    (active_window)
      (bar :desktop desktop)))

(defwindow hardware_stats
  :monitor 0
  :geometry (geometry :x "0%"
              :y "0px"
              :width "0px"
              :height "100px"
              :anchor "right top")
  :stacking "fg"
  :focusable false
  :wm-ignore false
  (box
    (literal :content {desktop ? "(hardware_tab :desktop desktop)" : "(hardware_tab_laptop)"})))

(defwindow player_stats
  :monitor 0
  :geometry (geometry :x "0%"
              :y "0px"
              :width "0px"
              :height "100px"
              :anchor "left top")
  :stacking "fg"
  :focusable false
  :wm-ignore false
  (box
    (player_metadata)))

(defvar desktop true)
