From c2cd0e76365bb2ff38d91de698c0effaa5ad23ac Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 12 Dec 2024 12:16:41 +0530 Subject: [PATCH] init workspace widg, fixed typo --- yuck/panel/panel_sections/panel_widg_cen.yuck | 4 +++- yuck/panel/panel_widgs/panel_workspaces.yuck | 11 +++++++++++ yuck/vars/vars.yuck | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/yuck/panel/panel_sections/panel_widg_cen.yuck b/yuck/panel/panel_sections/panel_widg_cen.yuck index 29a696c..8c795dc 100644 --- a/yuck/panel/panel_sections/panel_widg_cen.yuck +++ b/yuck/panel/panel_sections/panel_widg_cen.yuck @@ -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}") ) ) \ No newline at end of file diff --git a/yuck/panel/panel_widgs/panel_workspaces.yuck b/yuck/panel/panel_widgs/panel_workspaces.yuck index e69de29..6c07c4a 100644 --- a/yuck/panel/panel_widgs/panel_workspaces.yuck +++ b/yuck/panel/panel_widgs/panel_workspaces.yuck @@ -0,0 +1,11 @@ +(defwidget panel_workspaces [h] + (box + :class "panel_workspaces_widg" + :halign "center" + :valign "center" + :height "${h}" + :active true + + "--panel___cen--" + ) +) \ No newline at end of file diff --git a/yuck/vars/vars.yuck b/yuck/vars/vars.yuck index 3987b40..87a7310 100644 --- a/yuck/vars/vars.yuck +++ b/yuck/vars/vars.yuck @@ -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` ) \ No newline at end of file