tobiohlala / lightdm-tiny-greeter

:wave: A Tiny GTK3 LightDM Greeter
Other
90 stars 10 forks source link

Default User Patch #6

Open boogie666 opened 4 years ago

boogie666 commented 4 years ago

This isn't really an issue, but not sure where else to add this :P

I've created a patch for this (since it is the suckless way :P) to enable a default user... (i.e prefilling the username box on login)

there's a new prop in config.h called default_user, just set that to a username and presto, no need to type a username anymore as it will be prefilled, just hit enter and type the password :P

If anybody is interested here it is https://gist.github.com/boogie666/0d56f23642343f4223a3c884ef590447

tobiohlala commented 4 years ago

Thank you for your contribution. Nice little patch :) maybe we could make a default-user branch out if it so people can just checkout and compile the branch they like?

tobiohlala commented 4 years ago

or, even better, prompt if the default_user variable does not exist or is empty and fill in the user name by default if it isn’t ? I would welcome a PR! :)