Created
October 8, 2012 02:45
-
-
Save Ivoz/3850457 to your computer and use it in GitHub Desktop.
~/.xinitrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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