init workspace widg, fixed typo

This commit is contained in:
Candifloss 2024-12-12 12:16:41 +05:30
parent 5ba780343e
commit c2cd0e7636
3 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,5 @@
(include "yuck/panel/panel_widgs/panel_workspaces.yuck")
(defwidget panel_cen [h]
(box
:class "panel_side panel_cen"
@ -6,6 +8,6 @@
:width 300
:active true
"--panel_cen--"
(panel_workspaces :h "${h}")
)
)

View File

@ -0,0 +1,11 @@
(defwidget panel_workspaces [h]
(box
:class "panel_workspaces_widg"
:halign "center"
:valign "center"
:height "${h}"
:active true
"--panel___cen--"
)
)

View File

@ -42,7 +42,7 @@
;WIndow managers
(defpoll leftwm_state
:insterval "300ms"
:interval "300ms"
:initial "{\"window_title\":\"None\",\"workspaces\":[{\"id\":1,\"output\":\"VGA-1\",\"h\":0,\"w\":0,\"x\":0,\"y\":0,\"layout\":\"Default\",\"index\":0,\"tags\":[{\"name\":\"1\",\"index\":0,\"mine\":false,\"visible\":false,\"focused\":false,\"urgent\":false,\"busy\":false}]}]}"
`leftwm state`
)