2010-07-30 12:17:53 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
|
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Start i3
|
2010-12-21 11:26:34 +08:00
|
|
|
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
|
2012-08-19 11:44:59 +08:00
|
|
|
exec ck-launch-session dbus-launch --exit-with-session /usr/bin/i3
|
2010-07-30 12:17:53 +08:00
|
|
|
else
|
2013-11-12 03:29:22 +08:00
|
|
|
exec /usr/bin/i3
|
2010-07-30 12:17:53 +08:00
|
|
|
fi
|
|
|
|
|