From: Simon Ruderich Date: Thu, 23 Apr 2009 16:36:33 +0000 (+0200) Subject: Xdefaults: Automatically create settings for UXTerm. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=cb02687091d8be1eeed80e4ffd57f0a0c737fdf1;p=config%2Fdotfiles.git Xdefaults: Automatically create settings for UXTerm. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..760f605 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Generated with m4 or awk. +Xdefaults diff --git a/Xdefaults b/Xdefaults.in similarity index 100% rename from Xdefaults rename to Xdefaults.in diff --git a/setup.sh b/setup.sh index bb7f192..9e161bd 100755 --- a/setup.sh +++ b/setup.sh @@ -5,11 +5,17 @@ . ../lib.sh -# Link setup. if installed stumpwm; then link stumpwmrc ~/.stumpwmrc 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 } }' + # Xdefaults uses ! as comment instead of #. + sed -i 's/^#/!/' Xdefaults + link xinitrc ~/.xinitrc link xmodmaprc ~/.xmodmaprc link Xdefaults ~/.Xdefaults