Added test for wm variable

This commit is contained in:
Amelia Carter committed 2015-11-14 21:01:30 -08:00
1 parent cfc5b5e0b7
commit a2318c2e49
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -12,7 +12,9 @@ KERNEL="$(uname -sr)"
UPTIME="$(uptime -p | sed s:"up "::)"
PACKAGES="$(pacman -Q | wc -l)"
# shell is already defined
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)"
if [[ -z "$WM" ]]; then
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)"
fi
## DEFINE COLORS