]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Minor doc fix.
[config/dotfiles.git] / setup.sh
index 7ace8e0d20ab164b95be773f1bf567566454d90a..2a9185517fe253f51607e5107e1aea057b6c4bf0 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -8,11 +8,27 @@
 if installed stumpwm; then
     link stumpwmrc ~/.stumpwmrc
 fi
+if installed xmonad; then
+    link . ~/.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