slop - minimalistic display manager written in C

2 weeks ago 24

Hi everyone,

Recently, I decided to ditch the GUI display manager in favor of the TTY login. However, I was unable to configure the login program the way I wanted so I've decided to build my own.

Introducing slop - Simple Login Program.
It is a replacement for getty and login designed to be minimalistic and simple.

Unlike login, which prints a bunch of extra info (date, issue, hostname, motd, etc.), it only displays what is needed for authentication (i.e. prompts from the PAM modules).
Also, it doesn't print an empty line before the prompt like agetty does.

Features:

  • Focus the TTY
  • Set command to run on successful login, e.g. startx, or a wayland compositor.
  • Clear screen after failed attempt
  • Set title above the prompt
  • Predefine a username

Hope this helps someone who wants a simple TTY login.

submitted by /u/NaiveProcedure755 to r/C_Programming
[link] [comments]
Read Entire Article