From cb02687091d8be1eeed80e4ffd57f0a0c737fdf1 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 23 Apr 2009 18:36:33 +0200 Subject: [PATCH] Xdefaults: Automatically create settings for UXTerm. --- .gitignore | 2 ++ Xdefaults => Xdefaults.in | 0 setup.sh | 8 +++++++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .gitignore rename Xdefaults => Xdefaults.in (100%) 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 -- 2.45.2