ReGreet icon indicating copy to clipboard operation
ReGreet copied to clipboard

Set window size option

Open Vosjedev opened this issue 1 year ago • 12 comments

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)

Vosjedev avatar Nov 17 '23 14:11 Vosjedev

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?

rharish101 avatar Dec 31 '23 11:12 rharish101

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 .

Vosjedev avatar Jan 08 '24 13:01 Vosjedev

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

rharish101 avatar Jan 08 '24 16:01 rharish101

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.

Vosjedev avatar Jan 12 '24 14:01 Vosjedev

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

YaroKasear avatar Jan 20 '24 04:01 YaroKasear

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.

Vosjedev avatar Jan 20 '24 07:01 Vosjedev

https://man.archlinux.org/man/extra/cage/cage.1.en#ENVIRONMENT

There's WAYLAND_DISPLAY that you can use to tell cage what display to use. Idk how consistent the value is and where it comes from tho...

Have you tried it?

max-ishere avatar Aug 21 '24 13:08 max-ishere

And also there's cage -mlast but imo it's pretty annoying

max-ishere avatar Aug 21 '24 13:08 max-ishere

Oh, I'll try it. Maybe that can bring back a login screen for me... regreet was broken for me recently (using the tinywl-git AUR package gave problems, as expected :D), so I tried qtgreet which wouldn't even start, so now I'm manually starting my WM from the tty.

Vosjedev avatar Aug 22 '24 19:08 Vosjedev

Cool. I use these cage args: -dsmlast, the -s is for VT switching, I think VT are the tty1,2,3... And I dont feel like getting locked out if cage or regreet does something stupid.

max-ishere avatar Aug 23 '24 09:08 max-ishere

getting locked out

Me neither :D

It at least provided a login screen, thanks! Although I'd still like to do stuff some other way, but I guess having the login screen how I imagined it when setting this system up is going to be harder.

Vosjedev avatar Aug 25 '24 10:08 Vosjedev

Can you describe what you expect a bit more?

I know, but I want my login screen to be as small as possible

Is this referring to window size or amount of code? If security is a concern, cage is a good option because it's purpose is to be used as a kiosk, like on a self-checkout machine. Its minimal and secure.

As for widow size, you can use a black image to mimic the small window look. I haven't tested it yet, but I think if you don't use an image the background will probably be gtk background color. A custom color as a background can be PR'd in if you want.

max-ishere avatar Aug 27 '24 11:08 max-ishere