From 57297b3adfa85f656fa73e5707bfca28c8d1f108 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 25 Feb 2016 11:59:38 +1100 Subject: [PATCH] Window Manager: Add support for Wayland (Hardcoded) --- fetch | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index 1f832483..7ceab699 100755 --- a/fetch +++ b/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 }