2010-05-11 14:03:47 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
|
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
2010-05-11 19:43:58 +02:00
|
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
2010-05-11 14:03:47 +02:00
|
|
|
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
|
|
|
if [ -f $sysresources ]; then
|
2010-05-11 19:43:58 +02:00
|
|
|
/usr/bin/xrdb -merge $sysresources
|
2010-05-11 14:03:47 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $sysmodmap ]; then
|
2010-05-11 19:43:58 +02:00
|
|
|
/usr/bin/xmodmap $sysmodmap
|
2010-05-11 14:03:47 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $userresources ]; then
|
2010-05-11 19:43:58 +02:00
|
|
|
/usr/bin/xrdb -merge $userresources
|
2010-05-11 14:03:47 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $usermodmap ]; then
|
2010-05-11 19:43:58 +02:00
|
|
|
/usr/bin/xmodmap $usermodmap
|
2010-05-11 14:03:47 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Create default user directory & populate it if not already existent
|
|
|
|
if [ ! -d $HOME/.config/openbox ]; then
|
|
|
|
mkdir -p $HOME/.config/openbox
|
2010-05-11 19:43:58 +02:00
|
|
|
cat /etc/xdg/openbox/menu.xml > $HOME/.config/openbox/menu.xml
|
|
|
|
cat /etc/xdg/openbox/rc.xml > $HOME/.config/openbox/rc.xml
|
2010-05-11 14:03:47 +02:00
|
|
|
fi
|
|
|
|
|
2010-05-11 22:22:01 +02:00
|
|
|
exec openbox
|