Visit the LQ Articles and Editorials section
Go Back > Blogs > Whaling the FOSS
User Name


The experiences of an Australian student who uses Linux.

Cover all topics from shell scripts to monopolies and reviews to political comments.
Rate this Entry

How hard could it be? A login manager in BASH

Posted 07-11-2011 at 09:34 PM by William (Dthdealer)

As I have previously elaborated, I hat the Gnome Login Manager. To summarise: it is bulky and slow.

I am currently using SLim as my login manager, for it is fast and very customisable. It however lacks a few features I want:
  1. Render of the date and time
  2. An easy way to receive a list of configured commands to for example, turn the computer off ( from now written as 'power commands' )
  3. UI elements to allow the user to turn the computer off without having to first login

I am out of luck however - I know of no other X login manager that does these things. So I am now taking the GNU approach to things: writing my own.

A login manager should be a simple affair. I plan to write mine using nothing but shell scripts, for a login manager really does nothing but ask for credentials and accept/execute power related commands.

Basically it will comprise of the following things:
  • An one line high aterm running a getty that executes the user's .xinitrc
  • Xclock to show the time
  • A named pipe to accept power commands
  • Several screensavers in borderless windows ( nameley 'molecule' and 'substrate' ) to make it look cool
  • Some way of providing power options on screen ( yet to decide on how to do this ).

Expect to see it soon!

Regards, William
Views 2303 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 08:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration