From c5e912c86c94addd9bdc97d6b954396648ae1a0d Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Mon, 5 Mar 2012 07:51:11 +0100 Subject: Quote the window name. It might contain spaces or shell glob symbols. --- scripts/9icon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/9icon b/scripts/9icon index dded416..73edc6e 100755 --- a/scripts/9icon +++ b/scripts/9icon @@ -12,7 +12,7 @@ for win in $(xwininfo -root -children | awk '$1~/0x/ && $2~/"/ {print $1}'); do awk -F'"' -v win=$win ' /^WM_NAME/ { name=$2 } /window state: Iconic/ { - print name "'\''" ":xdotool windowmap " win " windowraise " win "'\''" + print "'\''" name "'\''" "'\''" ":xdotool windowmap " win " windowraise " win "'\''" } ' done | xargs 9menu -popup -label 9icon -bg grey20 -fg grey80 -font fixed -- cgit v1.2.3