Merge pull request #77 from dylanaraps/wmctrl

Make 'wmctrl' a required dependency. See #75 for more info.
This commit is contained in:
Dylan Araps 2016-02-17 09:34:22 +11:00
commit ece1f55183
2 changed files with 7 additions and 12 deletions

7
fetch
View file

@ -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" ;;