ReGreet
ReGreet copied to clipboard
Set window size option
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:
(No background: window to small)
(with background: window to big)
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?
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 .
Could you try gtkgreet and see if it goes into full-screen?
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.
Unless I'm mistaken, tinywl was never meant for serious usage but just to teach people how to program a compositor.
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.
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?
And also there's cage -mlast
but imo it's pretty annoying
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.
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.
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.
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.