Remove wmctrl stuff
This commit is contained in:
parent
7a36f2fef0
commit
9a7a213746
6
fetch
6
fetch
|
@ -746,11 +746,7 @@ getde () {
|
||||||
# Window Manager {{{
|
# Window Manager {{{
|
||||||
|
|
||||||
getwm () {
|
getwm () {
|
||||||
if type -p wmctrl >/dev/null 2>&1; then
|
if [ -n "$DISPLAY" ]; then
|
||||||
wm="$(wmctrl -m | head -n1)"
|
|
||||||
wm=${wm/Name: }
|
|
||||||
|
|
||||||
elif [ -n "$DISPLAY" ]; then
|
|
||||||
id="$(xprop -root -notype | \awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')"
|
id="$(xprop -root -notype | \awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')"
|
||||||
wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)"
|
wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)"
|
||||||
wm=${wm/*_NET_WM_NAME = }
|
wm=${wm/*_NET_WM_NAME = }
|
||||||
|
|
Reference in New Issue