diff options
author | Derek Taylor <derek@distrotube.com> | 2022-02-22 21:12:50 +0000 |
---|---|---|
committer | Derek Taylor <derek@distrotube.com> | 2022-02-22 21:12:50 +0000 |
commit | 1309cefbc1d31cb671d6073d3fe286af51d25f93 (patch) | |
tree | 4ef8d2475f8783eb49be910a6e5eed8f688ec761 | |
parent | Merge branch 'master' into 'master' (diff) | |
parent | fix $ sign in hex script (diff) |
Merge branch 'alexcoder04-master-patch-26729' into 'master'
Let the user control location of the .Xresources file in hex script
See merge request dwt1/shell-color-scripts!16
-rwxr-xr-x | colorscripts/hex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/colorscripts/hex b/colorscripts/hex index d7aa408..411196a 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 |