Window Manager: Add support for Wayland (Hardcoded)

This commit is contained in:
Dylan 2016-02-25 11:59:38 +11:00
parent 607199d5f3
commit 57297b3adf

9
fetch
View file

@ -712,11 +712,18 @@ getwm () {
wm=${wm/\"} wm=${wm/\"}
wm=${wm/\"*} wm=${wm/\"*}
# Fallback for Wayland wms
case "$wm" in
"xwlc")
wm="$(ps -e | grep -m 1 -oE "sway|orbment|velox|orbital")"
[ "$version" -ge 4 ] && wm=${wm^}
;;
esac
else else
case "$os" in case "$os" in
"Mac OS X") wm="Quartz Compositor" ;; "Mac OS X") wm="Quartz Compositor" ;;
"Windows") wm="Explorer" ;; "Windows") wm="Explorer" ;;
"Linux" | *"BSD") return ;;
esac esac
fi fi
} }