Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Created October 8, 2012 02:45
Show Gist options
  • Save Ivoz/3850457 to your computer and use it in GitHub Desktop.
Save Ivoz/3850457 to your computer and use it in GitHub Desktop.
~/.xinitrc
#!/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
[ -e ~/.Xresources ] && xrdb -merge ~/.Xresources
# URxvt daemon
urxvtd -q -o -f
# Music-Playing Daemon
mpd
# Disable mouse acceleration
xset m 1 1
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
case $1 in
xfce4)
export DE="xfce"
exec startxfce4
;;
openbox)
exec openbox-session
;;
i3)
feh --bg-scale ~/pics/walls/snowy.jpg
exec i3
;;
*)
export DE="xfce"
exec startxfce4
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment