Convert bar0 and bar1 for second monitor support

This commit is contained in:
ItsDrike 2022-11-07 23:01:30 +01:00
parent 49afc714f6
commit ca8c1ee6fb
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -7,7 +7,7 @@
(include "./modules/memory.yuck") (include "./modules/memory.yuck")
(include "./modules/uptime.yuck") (include "./modules/uptime.yuck")
; (include "./modules/kernel.yuck") ; (include "./modules/kernel.yuck")
(include "./modules/battery.yuck") ; (include "./modules/battery.yuck")
(include "./modules/window_name.yuck") (include "./modules/window_name.yuck")
(include "./modules/workspaces.yuck") (include "./modules/workspaces.yuck")
@ -31,8 +31,8 @@
; (sep) ; (sep)
(volume_module) (volume_module)
(sep) (sep)
(battery_module) ; (battery_module)
(sep) ; (sep)
(bitcoin_module) (bitcoin_module)
(sep) (sep)
(cpu_module) (cpu_module)
@ -61,7 +61,7 @@
(center) (center)
(right))) (right)))
(defwindow bar (defwindow bar0
:monitor 0 :monitor 0
:geometry (geometry :x "0%" :geometry (geometry :x "0%"
:y "0%" :y "0%"
@ -71,3 +71,15 @@
:stacking "fg" :stacking "fg"
:exclusive true :exclusive true
(bar)) (bar))
(defwindow bar1
:monitor 1
:geometry (geometry :x "0%"
:y "0%"
:width: "100%"
:height "32px"
:anchor "top center")
:stacking "fg"
:exclusive true
(bar))