Skip to content

Instantly share code, notes, and snippets.

@jaapz
Created December 1, 2014 23:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jaapz/a23b63c1e8d488dfe973 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrdb -merge .Xresources &
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
case $1 in
openbox-session)
exec openbox-session
;;
i3 | *)
nm-applet &
exec ck-launch-session i3
# exec i3
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment