fairyglade / ly

display manager with console UI
Do What The F*ck You Want To Public License
5.48k stars 307 forks source link

Login prompt not being centered on boot #486

Open wwsmiff opened 1 year ago

wwsmiff commented 1 year ago

Im using arch and sway and whenever i boot/reboot the login prompt is not centered and only once i start typing in the details it gets centered. Is there a way to fix this? Also is there a way to set one WM/Desktop as the first preference?

IlliaHalchun commented 1 year ago

Have the same problem..

AnErrupTion commented 1 year ago

and only once i start typing in the details it gets centered.

For now, I can only guess this is a termbox problem (the library Ly uses for making a TUI interface).

Also is there a way to set one WM/Desktop as the first preference?

Ly should use the last-used entry as the default.

Pheon-Dev commented 1 year ago

Me too. But it only does so when multiple monitors are connected, say two. Just as the default unpatched dwm cursor positions itself when the desktop is loaded. It defaults to center of the two monitors, so does ly. The login prompt would position itself right where the cursor would have been

RikiReal commented 1 year ago

This issue only started appearing for me after the last update to ly in the arch repo. That was on 2023-06-15 and the version is 0.6.0-1 https://archlinux.org/packages/?name=ly

RoccoRakete commented 1 year ago

Same issue here

katekyy commented 1 year ago

Same. Started appearing in 0.6.0.

Rider3268 commented 1 year ago

Same

sanj0 commented 1 year ago

I have the same issue on arch with a build of the current state on master. Any updates on this issue? I don't have a second monitor nor have I every connected one to this laptop so that's not the source of the issue for me @Pheon-Dev

Pheon-Dev commented 1 year ago

At least now the bug can be zeroed down further. For now I'm using lemurs which is also a minimal login manager that has worked great for me so far

sanj0 commented 1 year ago

In trying (and succeeding) to change the colors of ly, I've stumbled upon a workaround fix for this issue. As the box centers as soon as I type the first character of my password, the following ExecStartPre not only changes the colors of ly (first hex is bg, second hex is fg) but also "simulates user input" I guess and therefore automatically centers the box:

# in /etc/systemd/system/display-manager.service
# ...
[Service]
# ...
ExecStartPre=/usr/bin/printf '%%b' '\e]P0DED8C9\e]P70E313A\ec'
ExecStart=/usr/bin/ly
# ...
ghost commented 1 year ago

I had the same issue with qtile on arch and nvidia graphics card, I noticed that after installing CUDA nvidia package from the repo fixed the problem. I don't know why tho.

StuSerious commented 1 year ago

Same issue here with Arch master. As others stated above, user input centers it back to normal.

rudolflovrencic commented 10 months ago

Same issue - user input centers it.

cprin21 commented 9 months ago

Also getting same issue. It's rather frustrating because of the expectation of a clean TUI environment something like ly should have. Unsure why it doesn't centre until user input is given.

StuSerious commented 9 months ago

@cprin21 a bit late but I have since moved to greetd using tuigreet and it has been a flawless (if not better) substitute ever since. I recommend you give it a try if you fancy that ly aesthetic.

cprin21 commented 9 months ago

Thanks! Not late at all. Checked it out and haven't had any top-left greeter moments.

marcocamilo commented 3 months ago

Any updates on this? I have the same problem, but even when typing the login pane isn't centered. I'm using Arch, as display managers I have dwm and Gnome

AnErrupTion commented 3 months ago

@marcocamilo Do you have 2 monitors with different resolutions, by any chance?

marcocamilo commented 3 months ago

No, not at all. Im using it on my macbook. Do I have to set the definition somehow by default inside the tty?

Marco-Andrés Camilo-Pietri On Aug 7, 2024 at 01:05 +0200, ShiningLea @.***>, wrote:

@marcocamilo Do you have 2 monitors with different resolutions, by any chance? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

AnErrupTion commented 3 months ago

Hm, then that's an odd one. You shouldn't have to set the resolution in the TTY yourself since it should just pick the highest one available.