Window Manager: Add support for Wayland (Hardcoded)
This commit is contained in:
parent
607199d5f3
commit
57297b3adf
1 changed files with 8 additions and 1 deletions
9
fetch
9
fetch
|
@ -712,11 +712,18 @@ getwm () {
|
|||
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
|
||||
case "$os" in
|
||||
"Mac OS X") wm="Quartz Compositor" ;;
|
||||
"Windows") wm="Explorer" ;;
|
||||
"Linux" | *"BSD") return ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue