fix panel width

This commit is contained in:
Candifloss 2024-12-08 19:06:47 +05:30
parent 25a5a4e65f
commit 4b92f0bc13
3 changed files with 11 additions and 6 deletions

View File

@ -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)
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).

View File

@ -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}")

View File

@ -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}")
)