Window Managers

26-Mar-99
Stefan Jeglinski


stopping kde


creating .xinitrc (applies to either LinuxPPC or MkLinux)

	#!/bin/sh
	
	########################################################################
	# .xinitrc                                                             #
	# based on one written by hollis+@andrew.cmu.edu                       #
	# 1/15/99                                                              #
	#                                                                      #
	# To use:                                                              #
	# * if you have a ~/.Xclients, remove it. The system copy is in        #
	#   /etc/X11/xinitrc/Xclients if you ever want it back.                #
	#                                                                      #
	# * place this file in your home (~) directory. For root, home is      #
	#   /root. Be sure to also put .fvwmrc etc in your home directory.     #
	#                                                                      #
	# * modify this script:                                                #
	#   -add your window managers                                          #
	#   -remove clocks, change background colors, etc.                     #
	#                                                                      #
	# * Type 'startx fvwm', 'startx kde', etc.                             #
	#   'startx' alone will run the default wm.                            #
	#                                                                      #
	########################################################################
	
	# to fix backspace and delete in X:
	xmodmap -e "keycode 59 = BackSpace"
	xmodmap -e "keycode 125 = Delete"
	
	# accelerate the mouse:
	xset m 8 3
	
	## NOTES: ##############################################################
	#                                                                      #
	#                                                                      #
	# * $1 represents the first argument to startx.                        #
	#                                                                      #
	# * WM is the name of the program to execute. This is normally the     #
	#   window manager itself, but in the case of kde it needs to be the   #
	#   startkde script.                                                   #
	#                                                                      #
	########################################################################
	
	ARG=$1
	
	# specify the default wm argument here:
	DEFAULTWM="fvwm2"
	
	if [ ! $ARG ]; then
	    ARG=$DEFAULTWM
	fi
	
	# to add another wm here, just copy, paste, and edit the 'elif' line.
	if [ $ARG = "fvwm2" ]; then
	    WM=fvwm2
	    xsetroot -solid MidnightBlue
	elif [ $ARG = "fvwm" ]; then
	    xclock -digital -bg black -fg gray -update 1 -geometry -0+0 &
	    WM=fvwm
	    xsetroot -solid MidnightBlue
	elif [ $ARG = "after" ]; then         # Delete for MkLinux DR3!!!
	    WM=afterstep                      # Delete for MkLinux DR3!!!
	    xsetroot -solid MidnightBlue      # Delete for MkLinux DR3!!!
	elif [ $ARG = "twm" ]; then
	    xterm &
	    xclock -digital -bg black -fg gray -update 1 -geometry -0+0 &
	    xsetroot -solid MidnightBlue
	    WM=twm
	elif [ $ARG = "kde" ]; then
	    WM=startkde
	else
	    WM=$DEFAULTWM
	    xmessage "'$ARG' is not a valid window manager; defaulting to $WM.
	Modify ~/.xinitrc if '$ARG' is actually installed." &
	fi
	
	#  The next line actually runs the selected window manager and logs the
	#  output (stdout AND stderr) to the file ~/console. If you run a
	#
	#    tail -f ~/console
	#
	#  in an xterm, it will display the (constantly updated) contents of that
	#  file. This can be usful for talk requests, wm errors, etc.
	
	exec $WM >& ~/console


window manager example - installing precompiled AfterStep


compiling and installing AfterStep applets


some AfterStep links to peruse



more windowmanager links


rapierbit