summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-22 11:15:04 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-22 11:15:14 +0100
commit9631c5c4462aae4691fc596b5014eb80b906f383 (patch)
treeffe5c4fc340fbcf6091963799bdf8209db6f7551 /.scripts
parent08bb88b4b5a8cd7282d4ab2561a793887ea7f4d9 (diff)
downloaddotfiles-9631c5c4462aae4691fc596b5014eb80b906f383.tar.gz
dotfiles-9631c5c4462aae4691fc596b5014eb80b906f383.tar.bz2
dotfiles-9631c5c4462aae4691fc596b5014eb80b906f383.zip
set_xressources: Optimize for speed
We're faster when concatenating first and executing xrdb only once.
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/set_xressources.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/.scripts/set_xressources.sh b/.scripts/set_xressources.sh
index a24f8ef..a51650b 100755
--- a/.scripts/set_xressources.sh
+++ b/.scripts/set_xressources.sh
@@ -1,6 +1,12 @@
#!/bin/sh
+#find ~/.config/ \
+# -mindepth 2 -maxdepth 2 \
+# -type f -iname "*.xdefaults" \
+# -exec xrdb -merge {} \;
+
+# It is faster to concat first and execute xrdb only once.
find ~/.config/ \
-mindepth 2 -maxdepth 2 \
-type f -iname "*.xdefaults" \
- -exec xrdb -merge {} \;
+ -exec cat {} + | xrdb -merge