From 9a7a213746832c73c31114b5d153da03b74801ee Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 17 Feb 2016 16:55:12 +1100 Subject: [PATCH] Remove wmctrl stuff --- fetch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fetch b/fetch index 7d90dc7d..070e31e2 100755 --- a/fetch +++ b/fetch @@ -746,11 +746,7 @@ getde () { # Window Manager {{{ getwm () { - if type -p wmctrl >/dev/null 2>&1; then - wm="$(wmctrl -m | head -n1)" - wm=${wm/Name: } - - elif [ -n "$DISPLAY" ]; then + if [ -n "$DISPLAY" ]; then id="$(xprop -root -notype | \awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')" wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)" wm=${wm/*_NET_WM_NAME = }