[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: replacing GDM with a script

On 08/02/2012 12:33 PM, Darac Marjal wrote:
On Thu, Aug 02, 2012 at 12:22:27PM -0400, Frank McCormick wrote:

   I am running 3 Linux distros with Sid as my main one. I am curious
to know if it's possible to replace GDM with a BASH script. The
issue is complicated because I run 3 window managers with Sid and a
similar situation with the other 2 distros. Googling the problem
hasn't turned up much of interest. I am in Sid most of the time, so
the script could only apply here. Does anyone have any suggestions?

With all the same functionality? Unlikely.

As a simple "mystartx<session>"? Probably. Try looking at how the
simpler display-managers work (lightdm, slim, nodm etc).

I have been using this in my .bashrc file for years. Maybe it could help you? I have never used GDM.

for i in `seq 0 4`; do if [ ! -f /tmp/.X${i}-lock ]; then D=$i; break; fi; done
    if [ -z $D ]; then
        echo "No free virtual terminal"
/usr/bin/startx -- :${D} -depth 24 -dpi 96 2> ~/.X.err > ~/.X.out &

Reply to: