JezerM / web-greeter

A modern, visually appealing greeter for LightDM.
https://web-greeter-page.vercel.app
GNU General Public License v3.0
211 stars 12 forks source link

Layout selector #6

Closed JezerM closed 3 years ago

JezerM commented 3 years ago

Description of feature

If you set the layout to one you're not used to and then you lock the screen with programs like light-locker, or when you're starting a session, there may not be any easy way to start/unlock the session.

A way to change the layout from themes would be great.

Web Greeter has this feature, but there is no theme that take advantage of this, perhaps because there is no facility to do this, due to these problems:

Possible solutions

A great solution would be to add a layouts section inside /etc/lightdm/web-greeter.yml, so themes could get these values from greeter_config.layouts and apply them with lightdm.layout, such as:

let layout = greeter_config.layouts[0]
lightdm.layout = layout
/* or */
lightdm.layout = {name: "latam", description: "Español (latinoamericano)", short_description: "es"}
JezerM commented 3 years ago

Seems LightDM offers a way to access every user layouts with lightdm.users[0].layouts, but I think it only works on GNOME based DEs; it doesn't help a lot with other kind of DE or WM, so not using it.