From 71ba0ad4ef60e5299ab7dd37f2f39efc43f883b0 Mon Sep 17 00:00:00 2001 From: alexcoder04 Date: Sun, 30 Jan 2022 12:46:42 +0000 Subject: Let the user control location of the .Xresources file --- colorscripts/hex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorscripts/hex b/colorscripts/hex index d7aa408..a4e5f26 100755 --- a/colorscripts/hex +++ b/colorscripts/hex @@ -3,7 +3,7 @@ # Author: SuNjACk # Source: http://crunchbang.org/forums/viewtopic.php?pid=135226#p135226 -xdef="$HOME/.Xresources" +xdef="${XRESOURCES:-HOME/.Xresources}" colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep -E 'color[0-9]+:' | sort | sed 's/^.*: *//g' ) ) echo -e "\e[1;97m -- cgit v1.2.3-54-g00ecf