mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Merge pull request #77 from dylanaraps/wmctrl
Make 'wmctrl' a required dependency. See #75 for more info.
This commit is contained in:
7
fetch
7
fetch
@@ -749,13 +749,6 @@ getwm () {
|
||||
if type -p wmctrl >/dev/null 2>&1; then
|
||||
wm="$(wmctrl -m | head -n1)"
|
||||
wm=${wm/Name: }
|
||||
|
||||
elif [ "$XINITRC" ]; then
|
||||
wm=$(grep "^[^#]*exec" "$XINITRC" | tail -n 1)
|
||||
|
||||
elif [ -e "$HOME/.xinitrc" ]; then
|
||||
wm=$(grep "^[^#]*exec" "${HOME}/.xinitrc" | tail -n 1)
|
||||
|
||||
else
|
||||
case "$os" in
|
||||
"Mac OS X") wm="Quartz Compositor" ;;
|
||||
|
||||
Reference in New Issue
Block a user