gh0stzk / dotfiles

BSPWM environment with 18 themes. With a theme selector to change on the fly.
GNU General Public License v3.0
2.77k stars 207 forks source link

eww widgets windows not displaying in the right spot #45

Closed b92u closed 1 year ago

b92u commented 1 year ago

I already used this rice before without any problem but, for some reason, my last attempt to ./RiceInstall made the eww widgets like powermenu, calendar and launchermenu not show in the right place. They always open tiled but, if I press the keybind for making the window float they have the right size, just aren't in the right place on the screen. I could make every widget show in the same place with the same geometries editing the /.config/bspwm/scripts/ExternalRules file and adding Eww) eval "$consequences" [ "$state" ] || echo "state=floating rectangle=249x334+435+60" ;; to the first main function in the file. Is there a way to modify this entry: Eww) in order to specify the widget window I'm trying to change?

gh0stzk commented 1 year ago

In what theme is ? is in pamela?

b92u commented 1 year ago

Yes, sorry, it is in pamela,

gh0stzk commented 1 year ago

Holly.. thats a weird question.. mmm Eww widgets are not managed by bspwm, widgets are not nodes "windows" like open a terminal or browser or any other app.

well.. first open a terminal and write "eww -V" must be eww 0.4.0 then if u can take a screenshot with for example, calendar open, to see how is open. just pulse the Impr key in your keyboard. finally u can edit the size and place of the widget, in file ~/.config/bspwm/rices/pamela/widgets/eww.yuck file.

for example, to change the size and position of calendar widget you must go to line 165 to 170 and edit values x and y are position and width and height are the size.

Whats your screen resolution?

gh0stzk commented 1 year ago

And remove the eww entry in external rules.

b92u commented 1 year ago

Here is how they are opening Untitled All widgets windows opens in same place with same size (except for the calendar size, but also same postion as I chose in external rules). I already tried to change commands in ~/.config/bspwm/rices/pamela/widgets/eww.yuck but weirdly changing x and y parameters doesn't take any effects, changing the size of the windows works btw. My screen resolution is 1920x1080. Ah, "eww -V" is eww 0.4.0. Thanks for your time!

gh0stzk commented 1 year ago

despite the fact that the eww widwets are not "nodes" (windows) managed by bspwm, they still have a "class" for example the calendar is "Eww - Calendar" when you define it in the file external rules Eww) ... Everything you open with eww will have the position and size you specified.

Delete that line from the external rules file, and restart bspwm with the keys "super + alt + r" then just edit the size and position in the eww.yuck file mentioned above. Remember that I did the configuration in a resolution of 1600x900, in lower or higher resolutions the way it looks will vary. You always have to get your hands on whoever's dotfiles, given that problem that not all of us have the same resolution,