tvrzna / emptty

Dead simple CLI Display Manager on TTY
MIT License
696 stars 26 forks source link

Feature request: Last user as default #115

Closed Vladimir-csp closed 4 months ago

Vladimir-csp commented 4 months ago

Save last logged in user in /var/cache/emptty/user or /var/cache/emptty/user-$tty, preselect it next time. Potential config options: SELECT_LAST_USER=false|per-tty|global

There also needs to be a shortcut to re-select user.

tvrzna commented 4 months ago

Seems like nice idea. Emptty is CLI, shortcut would require some TUI or fiddling with echo off and text buffer. However I can imagine following prompt:

localhost login [LAST_USED_USER]: 

If no character is there, last user will be used, otherwise new user is selected. Also I think it would be better, if only successfully logged in users are saved. DEFAULT_USER will still have higher priority.