]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
xmonad: Add configuration file.
[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 if installed xmonad; then
12     link . ~/.xmonad
13 fi
14
15 if installed X; then
16     # Use settings for XTerm also for UXTerm. This prevents code duplication.
17     generate awk Xdefaults \
18         '{ print ; if ( /^XTerm/ ) { print "U" $0 } }'
19     # Xdefaults uses ! as comment instead of #. tmp file necessary because of
20     # different implementations of `sed -i`.
21     sed 's/^#/!/' Xdefaults > Xdefaults.tmp
22     mv Xdefaults.tmp Xdefaults
23
24     if [ `os` != darwin ]; then
25         link xinitrc ~/.xinitrc
26     fi
27     link xmodmaprc ~/.xmodmaprc
28     link Xdefaults ~/.Xdefaults
29 fi