X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=efd7255a281c935fc698834c595e03b584b569af;hb=bd74707b46ada50095b544c02ad313efeb80b922;hp=7ace8e0d20ab164b95be773f1bf567566454d90a;hpb=462f355f79fa930d54a4dbe6a45efca894bb32bb;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 7ace8e0..efd7255 100755 --- a/setup.sh +++ b/setup.sh @@ -8,19 +8,44 @@ if installed stumpwm; then link stumpwmrc ~/.stumpwmrc fi +if installed xmonad; then + link xmonad ~/.xmonad +fi if installed X; then - # Use settings for XTerm also for UXTerm. This prevents code duplication. - generate awk Xdefaults \ - '{ print ; if ( /^XTerm/ ) { print "U" $0 } }' + # Prevent code duplication. Term* rules are for all terminals; XTerm rules + # are for XTerm and UXTerm. At the moment XTerm, UXTerm and Rxvt are + # supported. + generate perl Xdefaults -ne \ + 'if (/^Term/) { + s/^Term//; + print "XTerm", $_; + print "UXTerm", $_; + print "Rxvt", $_; + } elsif (/^XTerm/) { + print $_; + s/^XTerm//; + print "UXTerm", $_; + } else { + print $_; + }' # 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 + if [ x`os` != xdarwin ]; then link xinitrc ~/.xinitrc fi link xmodmaprc ~/.xmodmaprc link Xdefaults ~/.Xdefaults + link XCompose ~/.XCompose +fi + +if installed xpdf; then + link xpdfrc ~/.xpdfrc +fi +if installed zathura; then + mkdir -p ~/.config/zathura + link zathurarc ~/.config/zathura/zathurarc fi