[UPDATE][SCRIPTS] Fix xprop call

This commit is contained in:
Bruno BELANYI 2020-05-11 13:59:41 +02:00
parent 53c88541e7
commit 9673978b6b

View file

@ -30,7 +30,7 @@ match_qstring='"[^"\\]*(\\.[^"\\]*)*"' # NOTE: Adds 1 backreference
# Run xprop, transform its output into i3 criteria. Handle fallback to
# WM_NAME when _NET_WM_NAME isn't set
xprop 8u -id "$window_id" |
xprop -id "$window_id" |
sed -nr \
-e "s/^WM_CLASS\(STRING\) = ($match_qstring), ($match_qstring)$/instance=\1\nclass=\3/p" \
-e "s/^WM_WINDOW_ROLE\(STRING\) = ($match_qstring)$/window_role=\1/p" \