slackbuilds_ponce/desktop/openbox/xinitrc.openbox

28 lines
855 B
Text
Raw Normal View History

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
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
2010-05-11 14:03:47 +02:00
# merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
2010-05-11 14:03:47 +02:00
# Create default user directory & populate it if not already existent
if [ ! -d $HOME/.config/openbox ]; then
mkdir -p $HOME/.config/openbox
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
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session openbox
else
exec openbox
fi