mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-01 05:52:34 +07:00
Add test for $WM for the CRUX version
This commit is contained in:
@@ -12,7 +12,9 @@ KERNEL="$(uname -sr)"
|
||||
UPTIME="$(uptime -p | sed s:"up "::)"
|
||||
PACKAGES="$(pkginfo -i | wc -l)"
|
||||
# shell is already defined
|
||||
WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d " " -f2)"
|
||||
if [[ -z "$WM" ]]; then
|
||||
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)"
|
||||
fi
|
||||
|
||||
## DEFINE COLORS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user