171 lines
3.5 KiB
Plaintext
171 lines
3.5 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")
|
|
(include "./modules/aggietime/aggietime.yuck")
|
|
(include "./modules/weather/weather.yuck")
|
|
(include "./modules/timer/timer.yuck")
|
|
(include "./modules/mpris/mpris.yuck")
|
|
|
|
;; Windows
|
|
(defwidget leftbar--left
|
|
[]
|
|
(box :orientation "h"
|
|
:halign "start"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "leftbox"
|
|
(clock)
|
|
(network)
|
|
(vpn-network)
|
|
(aggietime-shift)))
|
|
|
|
|
|
(defwidget leftbar--center
|
|
[]
|
|
(box :orientation "h"
|
|
:halign "center"
|
|
:space-evenly false
|
|
:spacing 0
|
|
:class "centerbox"
|
|
(system-name)))
|
|
|
|
(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"
|
|
(system-name)))
|
|
|
|
(defwidget rightbar--right
|
|
[]
|
|
(box :orientation "h"
|
|
:halign "end"
|
|
:space-evenly false
|
|
:spacing 20
|
|
:class "leftbox"
|
|
(mpris)
|
|
(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 0
|
|
: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 1
|
|
: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 network-status
|
|
:monitor 0
|
|
:geometry (geometry :width "200px"
|
|
:height "0px"
|
|
:x "80px"
|
|
:y "0px"
|
|
:anchor "top left")
|
|
:exclusive false
|
|
:focusable false
|
|
:stacking "overlay"
|
|
(box :orientation "v"
|
|
:class "bar root bg"
|
|
:visible {network--show-details}
|
|
(network-detail)))
|
|
|
|
(defwindow lock-overlay-1
|
|
:monitor 1
|
|
:geometry (geometry :width "50%"
|
|
:height "50%"
|
|
:anchor "center"):exclusive
|
|
false
|
|
:focusable false
|
|
:stacking "overlay"
|
|
"testing")
|
|
|
|
(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 0
|
|
:geometry (geometry :width "210px"
|
|
:height "1044px"
|
|
:anchor "left bottom"):exclusive
|
|
true
|
|
:focusable false
|
|
:stacking "fg"
|
|
(sidebar))
|