rharish101 / ReGreet

Clean and customizable greeter for greetd
GNU General Public License v3.0
348 stars 16 forks source link

Set window size option #50

Open Vosjedev opened 7 months ago

Vosjedev commented 7 months ago

Hi! I would like to have an option to set the window size either in the config or as commandline argument. Being able to set the window location when that wayland protocol arrives would be nice as well.

This is because I am using tinywl as compositor for regreet. It opens regreet as window on my laptop, which is smaller, but regreet is sized to the size of my external monitor. So I tried without any background image. That made the window small, but smaller than the 'popup' for user and session. I had to resize it to see the total thing.

I will try to make some screenshots and attach those in a moment.

tinywl didn't support screenshots, but I took 2 photos with my phone. Here they are: 20231117_152250 (No background: window to small) 20231117_152508 (with background: window to big)

rharish101 commented 6 months ago

That is weird, since ReGreet should be full-screened on a single monitor. Are there any gotchas for tinywl regarding full-screen or multi-monitor support?

Vosjedev commented 5 months ago

Tinywl is a very basic implementation usil wl-roots, maybe it does not support fullscreen hints? The reason I am using tinywl is because it is tiny, and it puts regreet in a window. I like to drag my loginscreen around :D .

rharish101 commented 5 months ago

Could you try gtkgreet and see if it goes into full-screen?

Vosjedev commented 5 months ago

Yes I will do so later, but I currently have a lot of stuff open so I need to organise that first before being able to play with greeters again.

YaroKasear commented 5 months ago

Unless I'm mistaken, tinywl was never meant for serious usage but just to teach people how to program a compositor.

Vosjedev commented 5 months ago

I know, but I want my login screen to be as small as possible, and as cage and regreet doesn't work nicely with multimonitor, I thought a small compositor with floating windows was better.