Added test for wm variable

This commit is contained in:
Amelia Carter committed 2015-11-14 21:01:30 -08:00
1 parent 773747100a
commit ed81b69dcc
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="$(ls -d /var/db/pkg/*/* | wc -l)"
# shell is already defined
WM=$(tail -n 1 "$HOME/.xinitrc" | cut -d ' ' -f3)
if [[ -z "$WM" ]]; then
WM=$(tail -n 1 "$HOME/.xinitrc" | cut -d ' ' -f3)
fi
## DEFINE COLORS