From 9631c5c4462aae4691fc596b5014eb80b906f383 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 22 Feb 2013 11:15:04 +0100 Subject: set_xressources: Optimize for speed We're faster when concatenating first and executing xrdb only once. --- .scripts/set_xressources.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.scripts') 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 -- cgit