FVWM: Re: multiple sessions

From: Michelle Konzack <linux4michelle_at_freenet.de>
Date: Mon, 21 Mar 2005 10:28:35 +0100

Hello Tim,

> if [ -e /etc/NETlock ] ;then
> FVWM_USERDIR=/home/timh/.fvwm
> export FVWM_USERDIR
> startx fvwm2
> else
> FVWM_USERDIR=/home/timh/.fvwmundocked
> export FVWM_USERDIR
> startx fvwm2 -c ~/.fvwmundocked/.fvwm2rc
> fi
>
> It seems like that should take care of it, but all
> my Read statements fail because they are in ~/.fvwmundocked.
> Do I need to set something else?

I have in my

  __( '/home/michelle.konzack/.xsession' )______________________________
 /
| HOSTNAME=`cat /etc/hostname`
|
| if [ $HOSTNAME = "multimedia" ] ; then
| fvwm -f $HOME/.fvwm-multimedia/config
| else
| fvwm -f $HOME/.fvwm/config
| fi
 \______________________________________________________________________

and in my rcfiles

  __( '/home/michelle.konzack/.fvwm/config' )___________________________
 /
| read global
|
| read styles-decorations
| read styles-icons
| read styles-apps
|
| read /etc/X11/fvwm/menudefs.hook
| read menus/TaskBarStartMenu
| read menus/TaskBarWindowOps
| read menus/IconWindowOps
| read menus/Programs
| read menus/Shells
| read menus/RootMenu
| read menus/Fvwm2help
| read menus/Fvwm2module
| read menus/Fvwm2form
| read menus/Fvwm2script
| read menus/Settings
| read menus/Mount
| read menus/AudioVol
| read menus/CDVol
| read menus/FTPSites
| read menus/WebSites
| read menus/Documents
| read menus/StrasbourgRencontres
| read menus/MailCheck
|
| read mouse
| read keys

<snip>

 \______________________________________________________________________

and it read from the directory where the "config" is stored.

  __( '/home/michelle.konzack/.fvwm-multimedia/config' )________________
 /
| read $HOME/.fvwm-multimedia/global
|
| read $HOME/.fvwm-multimedia/styles-decorations
| read $HOME/.fvwm-multimedia/styles-apps
| read $HOME/.fvwm-multimedia/styles-icons
|
| read /etc/X11/fvwm/menudefs.hook
| read $HOME/.fvwm-multimedia/menus/TaskBarStartMenu
| read $HOME/.fvwm-multimedia/menus/TaskBarWindowOps
| read $HOME/.fvwm-multimedia/menus/IconWindowOps
| read $HOME/.fvwm-multimedia/menus/Programs
| read $HOME/.fvwm-multimedia/menus/Shells
| read $HOME/.fvwm-multimedia/menus/RootMenu
| read $HOME/.fvwm-multimedia/menus/Fvwm2help
| read $HOME/.fvwm-multimedia/menus/Fvwm2module
| read $HOME/.fvwm-multimedia/menus/Fvwm2form
| read $HOME/.fvwm-multimedia/menus/Fvwm2script
| read $HOME/.fvwm-multimedia/menus/Settings
| read $HOME/.fvwm-multimedia/menus/Mount
| read $HOME/.fvwm-multimedia/menus/AudioVol
| read $HOME/.fvwm-multimedia/menus/CDVol
| read $HOME/.fvwm-multimedia/menus/FTPSites
| read $HOME/.fvwm-multimedia/menus/WebSites
| read $HOME/.fvwm-multimedia/menus/Documents
|
| read $HOME/.fvwm-multimedia/mouse
| read $HOME/.fvwm-multimedia/keys

<snip>

 \______________________________________________________________________

which works finte too. But you can do:

  __( '~/.xsession' )___________________________________________________
 /
| HOSTNAME=`cat /etc/hostname`
|
| if [ $HOSTNAME = "multimedia" ] ; then
| fvwm -f $HOME/.fvwm/config.multimedia
| else
| fvwm -f $HOME/.fvwm/config.default
| fi
 \______________________________________________________________________

and then put the specific configs in Subdirectories

like:
  _____________________________________________________________________
 /
| ~/.fvwm/config.default
| ~/.fvwm/config.multimedia
| ~/.fvwm/config.default
| ~/.fvwm/key.default
| ~/.fvwm/icons
|
| ~/.fvwm/default/keys
| ~/.fvwm/default/global
| ~/.fvwm/default/FvwmButton
| ~/.fvwm/default/FvwmTaskbar
|
| ~/.fvwm/multimedia/keys
| ~/.fvwm/multimedia/global
| ~/.fvwm/multimedia/FvwmButton
| ~/.fvwm/multimedia/FvwmTaskbar
 \______________________________________________________________________


Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


--
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 Mon Mar 21 2005 - 03:29:27 GMT

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