From 4b92f0bc135528b2398c142c66054770109b832a Mon Sep 17 00:00:00 2001 From: candifloss Date: Sun, 8 Dec 2024 19:06:47 +0530 Subject: [PATCH] fix panel width --- yuck/panel/README.md | 7 ++++++- yuck/panel/panel_widg.yuck | 4 ++-- yuck/panel/panel_window.yuck | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/yuck/panel/README.md b/yuck/panel/README.md index 945c4c7..b973ed5 100644 --- a/yuck/panel/README.md +++ b/yuck/panel/README.md @@ -1,3 +1,8 @@ # Panel -This can be used as a topbar(or a bottom or side bar, as per preferences, with minimal modifications in the config) \ No newline at end of file +This can be used as a topbar(or a bottom or side bar, as per preferences, with minimal modifications in the config). +To open the bar, run: +```bash +eww open panel --arg "h=27" --arg "w=1366" +``` +Adjust height and width for your monitor. Place it in the scripts which execute when you login, like `xinitrc` or leftwm's `up` script(after starting the `eww daemon`, of course). \ No newline at end of file diff --git a/yuck/panel/panel_widg.yuck b/yuck/panel/panel_widg.yuck index d469236..abd2bd9 100644 --- a/yuck/panel/panel_widg.yuck +++ b/yuck/panel/panel_widg.yuck @@ -2,12 +2,12 @@ (include "yuck/panel/panel_sections/panel_widg_cen.yuck") (include "yuck/panel/panel_sections/panel_widg_left.yuck") -(defwidget panel_widg [h] +(defwidget panel_widg [h w] (centerbox :class "panel_widg" :halign "end" :height "${h}" - :width 1366 + :width "${w}" :active true (panel_left :h "${h}") diff --git a/yuck/panel/panel_window.yuck b/yuck/panel/panel_window.yuck index b8ef537..6a26a9e 100644 --- a/yuck/panel/panel_window.yuck +++ b/yuck/panel/panel_window.yuck @@ -1,9 +1,9 @@ (include "yuck/panel/panel_widg.yuck") -(defwindow panel [h] +(defwindow panel [h w] :monitor 0 :windowtype "dock" - :wm-ignore true + :wm-ignore false :stacking "fg" :halign "center" :valign "center" @@ -20,5 +20,5 @@ :distance "${h}px" :side "top" ) - (panel_widg :h "${h}") + (panel_widg :h "${h}" :w "${w}") ) \ No newline at end of file