X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=1feb7ad68dad1fe19aa7a8dfe408f5e125396ac4;hb=713e0e2cca6028102b10fe4f05ae1dfba59d6c64;hp=a5a97df49e2ce64f0eaaf22bb25efd2671e3aad0;hpb=2041cd28cf60c58185add3a89894132ae7539854;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index a5a97df..1feb7ad 100755 --- a/setup.sh +++ b/setup.sh @@ -1,13 +1,29 @@ +#!/bin/sh + # Setup script for X11 configuration files. . ../lib.sh -# Link setup. if installed stumpwm; then link stumpwmrc ~/.stumpwmrc fi +if installed xmonad; then + link . ~/.xmonad +fi + if installed X; then - link xinitrc ~/.xinitrc + # Use settings for XTerm also for UXTerm. This prevents code duplication. + generate awk Xdefaults \ + '{ print ; if ( /^XTerm/ ) { print "U" $0 } }' + # Xdefaults uses ! as comment instead of #. tmp file necessary because of + # different implementations of `sed -i`. + sed 's/^#/!/' Xdefaults > Xdefaults.tmp + mv Xdefaults.tmp Xdefaults + + if [ `os` != darwin ]; then + link xinitrc ~/.xinitrc + fi + link xmodmaprc ~/.xmodmaprc link Xdefaults ~/.Xdefaults fi