Re: FVWM: Display Manager for FVWM

From: jpkotta <sqrt_-1_at_ezrs.com>
Date: Sat, 12 Feb 2005 15:33:10 -0600

I have a bash function that will start X on a new display (it uses the
lowest display number that's not currently being used) every time you run
"startwm". If you want an easy way to start several X sessions, without
the need to install a display manager, this will do it. If you want the
fast user switching, this is not quite it.

I have this in my .bashrc:

# starts a new X server with a given windowmanager
# passes args to .xinitrc
function startwm()
{ # find next available display
     disp=0
     while [[ -e /tmp/.X${disp}-lock && $disp -lt 5 ]] ; do
         disp=$(( $disp + 1 ))
     done
     # backup previous log file
     mv -f $HOME/.X-log-$disp $HOME/.X-log-$disp.old
     startx $_at_ -- :$disp >& $HOME/.X-log-$disp &
}


And this in my .xinitrc:

# setup xmodmap, because certain programs (e.g. Mathematica and fvwm)
require certain settings
if [ -r "$HOME/.xmodmaprc" ] ; then
     xmodmap $HOME/.xmodmaprc
fi

if [ "$1" == "fvwm" ] ; then
     fvwm
elif [ "$1" == "icewm" ] ; then
     starticewm
elif [ "$1" == "enlightenment" ] ; then
     enlightenment
elif [ "$1" == "other" ] ; then
     # shifts off parameter $1
     # and executes the remaining parameters
     shift 1
     "$_at_"
fi

jpkotta


On Wed, 09 Feb 2005 13:28:49 -0500 (EST), Richard Lister
<ric+fvwm_at_cns.georgetown.edu> wrote:

>
> Thomas Adam <thomas_at_edulinux.homeunix.org> wrote
> on Wed, 9 Feb 2005 17:08:18 +0000:
>>
>> Subject: Re: FVWM: Display Manager for FVWM
>>
>> Right. Then you are referring to the concept of "fast user switching".
>> Something that Linux doesn't have (but you can emulate it).
>> Essentially, you can start a known display manager on display(s) :0, :1,
>> :2, etc, and then have a locking mechanism available so that users can
>> switch between their displays. In that instance, the VTs will most
>> likely be tty7 for :0, tty8 for :1, tty9 for :2, etc., and whenever the
>> user wants to access theirs, they switch to it, and if there is a
>> screensaver running, they can enter a password to resume their work.
>> Although I do have to stress the importance of resource usgae here. It
>> may well be that you run out of system resources fast, if any one of you
>> is doing anything particularly intensive.
>>
>> > the logged in user and then back again without disrupting any running
>> > programs. At least the newest version of kdm has this feature.
>
>
> If you're using gdm, run gdmflexiserver to start a new gdm instance
> on the next free vt, normally 8. You can then switch back and forth
> with ctrl-alt-f7 and ctrl-alt-f8.
>
> This works on linux. I don't know how the vts are handled on other OS.
>
> Cheers
> Ric
>
> --
> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.
>


--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Feb 12 2005 - 15:37:30 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST