Commit cb2ebbf6 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #775 from mstraube/general

General: Get rid of a call to awk
parents 4c9e720c 61a95906
...@@ -662,7 +662,8 @@ get_wm() { ...@@ -662,7 +662,8 @@ get_wm() {
((wm_run == 1)) && return ((wm_run == 1)) && return
if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then
id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')" id="$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)"
id="${id##* }"
wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)" wm="$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t)"
wm="${wm/*_NET_WM_NAME = }" wm="${wm/*_NET_WM_NAME = }"
wm="${wm/\"}" wm="${wm/\"}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment