Skip to content

Instantly share code, notes, and snippets.

@laiso
Created August 14, 2009 19:46
Show Gist options
  • Save laiso/168057 to your computer and use it in GitHub Desktop.
Save laiso/168057 to your computer and use it in GitHub Desktop.
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
source ~/.profile
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
if [ -x /usr/bin/cpp ] ; then
xrdb -merge $sysresources
else
xrdb -nocpp -merge $sysresources
fi
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
if [ -x /usr/bin/cpp ] ; then
xrdb -merge "$userresources"
else
xrdb -nocpp -merge "$userresources"
fi
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
#if [ -d /usr/X11/lib/X11/xinit/xinitrc.d ] ; then
# for f in /usr/X11/lib/X11/xinit/xinitrc.d/*.sh ; do
# [ -x "$f" ] && . "$f"
# done
# unset f
#fi
exec quartz-wm --only-proxy
exec $HOME/.cabal/bin/xmonad
exec /usr/local/bin/dmenu -g 22
exec /usr/local/bin/urxvt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment