JezerM / nody-greeter

LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js
https://web-greeter-page.vercel.app
GNU General Public License v3.0
125 stars 8 forks source link

Multi-Monitor Support #10

Closed s0 closed 2 years ago

s0 commented 2 years ago

Environment

Description of feature

I would like it to be possible for nody-greeter to open an electron BrowserWindow for each monitor / display that a user may have. I have a multi-monitor setup, and would like to create a theme that displays different information on each monitor, one of which will allow the user to log-in.

This would also allow for multi-monitor backgrounds to be displayed if themes could be configured to display different parts of a multi-monitor background on different displays. (I have plans for an animated SVG multi-monitor background to display behind my login screens, probably not too dissimilar to my website wallpaper here: https://samlanning.com/

Possible solutions

I have already got a quick hacky solution working locally, but it wouldn't need too much cleanup before being PR-able I would say.

(I also have to say @JezerM, it was very quick to figure out how to start playing round with the code, thanks for keeping it clean and simple! I've wanted to play around with an electron and node based greeter for a while, and it's great to see it happening!)

It would roughly work by:

Then the default themes could be updated to only display the UI elements on the primary monitor, and display wallpaper only on other monitors.

If you're not opposed, I'd love to have a crack at this?

Cheers, and thanks again for the wonderful work!

JezerM commented 2 years ago

Greetings! I always thought about a multi-monitor support and how I could implement it, but it seemed impossible to me as I don't have a multi-monitor setup. I couldn't test this (I guess), but sure it would be interesting and useful to have~

I see two problems that seem important to have a proper multi-monitor support:

I'm glad that someone put interest on this! So, if you're going to put your effort on this feature, I'm here to help~

s0 commented 2 years ago

@JezerM awesome, i'll get started on it today! :smile: