129 lines
2.9 KiB
Plaintext
129 lines
2.9 KiB
Plaintext
;; Include modules
|
|
(include "./modules/workspaces/workspaces.yuck")
|
|
(include "./modules/clock/clock.yuck")
|
|
(include "./modules/system/system.yuck")
|
|
(include "./modules/network/network.yuck")
|
|
(include "./modules/volume/volume.yuck")
|
|
|
|
;; Windows
|
|
(defwidget leftbar--left []
|
|
(box :orientation "h"
|
|
:halign "start"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "leftbox"
|
|
(clock)
|
|
(network)
|
|
(vpn-network)))
|
|
|
|
|
|
(defwidget leftbar--center []
|
|
(box :orientation "h"
|
|
:halign "center"
|
|
:space-evenly false
|
|
:spacing 0
|
|
:class "centerbox"
|
|
))
|
|
|
|
(defwidget leftbar--right []
|
|
(box :orientation "h"
|
|
:halign "end"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "rightbox"
|
|
(sway-workspace :group "left")
|
|
(sway-workspaces :group "left")))
|
|
|
|
(defwidget rightbar--left []
|
|
(box :orientation "h"
|
|
:halign "start"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "leftbox"
|
|
(sway-workspaces :group "right")
|
|
(sway-workspace :group "right")))
|
|
|
|
(defwidget rightbar--hypr-left []
|
|
(box :orientation "h"
|
|
:halign "start"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "leftbox"
|
|
(hypr-workspaces :group "main")
|
|
(hypr-workspace :group "main")))
|
|
|
|
(defwidget rightbar--center []
|
|
(box :orientation "h"
|
|
:halign "center"
|
|
:space-evenly false
|
|
:spacing 0
|
|
:class "centerbox"
|
|
))
|
|
|
|
(defwidget rightbar--right []
|
|
(box :orientation "h"
|
|
:halign "end"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "leftbox"
|
|
(system-memory)
|
|
(system-cpu-avg)
|
|
(clock)))
|
|
|
|
(defwidget sidebar []
|
|
(box :orientation "v"
|
|
:valign "start"
|
|
:space-evenly false
|
|
:spacing 0
|
|
:class "bar root"
|
|
(clock)))
|
|
|
|
(defwindow leftbar
|
|
:monitor 1
|
|
:geometry (geometry :width "100%"
|
|
:height "36px"
|
|
:anchor "top center")
|
|
:exclusive true
|
|
:focusable false
|
|
:stacking "fg"
|
|
(centerbox :orientation "h" :class "bar root"
|
|
(leftbar--left)
|
|
(leftbar--center)
|
|
(leftbar--right)))
|
|
|
|
(defwindow rightbar
|
|
:monitor 0
|
|
:geometry (geometry :width "100%"
|
|
:height "26px"
|
|
:anchor "top center")
|
|
:exclusive true
|
|
:focusable false
|
|
:stacking "fg"
|
|
(centerbox :orientation "h" :class "bar root"
|
|
(rightbar--left)
|
|
(rightbar--center)
|
|
(rightbar--right)))
|
|
|
|
(defwindow hypr-mainbar
|
|
:monitor 0
|
|
:geometry (geometry :width "100%"
|
|
:height "36px"
|
|
:anchor "top center")
|
|
:exclusive true
|
|
:focusable false
|
|
:stacking "overlay"
|
|
(centerbox :orientation "h" :class "bar root"
|
|
(rightbar--hypr-left)
|
|
(rightbar--center)
|
|
(rightbar--right)))
|
|
|
|
(defwindow sidebar
|
|
:monitor 1
|
|
:geometry (geometry :width "210px"
|
|
:height "1044px"
|
|
:anchor "left bottom")
|
|
:exclusive true
|
|
:focusable false
|
|
:stacking "fg"
|
|
(sidebar))
|