I am trying to get a new wm (scrotwm) and added it to .xinitrc but
it's not working. Every time I press ALT-CRTL-Backspace and log back
again, I get landed on fvwm. Not sure what I'm doing wrong.
The same .xinitrc works on another box running bash shell for a normal user.
My shell is ksh, user chris is a normal user (user's group is "user").
The .xinitrc file is owned by chris:user
and has permission: -rw-r--r--
Here's my .xinitrc file:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
/usr/X11R6/bin/xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
/usr/X11R6/bin/xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
/usr/X11R6/bin/xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
/usr/X11R6/bin/xmodmap $usermodmap
fi
if [ -f $HOME/.bashrc ]
then
. $HOME/.bashrc
fi
if [ -f $HOME/.muttrc ]
then
. $HOME/.muttrc
fi
id1=$HOME/.ssh/identity
id2=$HOME/.ssh/id_dsa
id3=$HOME/.ssh/id_rsa
if [ -x /usr/bin/ssh-agent ] && [ -f $id1 -o -f $id2 -o -f $id3 ];
then
eval `ssh-agent -s`
ssh-add < /dev/null
fi
/usr/local/bin/scrotwm
if [ "$SSH_AGENT_PID" ]; then
ssh-add -D < /dev/null
eval `ssh-agent -s -k`
fi
xidle -delay 3 -sw -program "/usr/X11R6/bin/xlock -mode bat" -timeout 5
--
I have also tried /usr/local/bin/scrotwm & and exec
/usr/local/bin/scrotwm & but no luck.
Thanks.