]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
setup.sh: Don't install xinitrc on Mac OS X.
[config/dotfiles.git] / setup.sh
1 #!/bin/sh
2
3 # Setup script for X11 configuration files.
4
5
6 . ../lib.sh
7
8 if installed stumpwm; then
9     link stumpwmrc ~/.stumpwmrc
10 fi
11
12 if installed X; then
13     # Use settings for XTerm also for UXTerm. This prevents code duplication.
14     generate awk Xdefaults \
15         '{ print ; if ( /^XTerm/ ) { print "U" $0 } }'
16     # Xdefaults uses ! as comment instead of #. tmp file necessary because of
17     # different implementations of `sed -i`.
18     sed 's/^#/!/' Xdefaults > Xdefaults.tmp
19     mv Xdefaults.tmp Xdefaults
20
21     if [ `os` != darwin ]; then
22         link xinitrc ~/.xinitrc
23     fi
24     link xmodmaprc ~/.xmodmaprc
25     link Xdefaults ~/.Xdefaults
26 fi