diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2012-03-05 07:51:11 +0100 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2012-03-05 07:51:11 +0100 |
commit | c5e912c86c94addd9bdc97d6b954396648ae1a0d (patch) | |
tree | f6595cc390b74ede6253430532a1194d04f13b6e /scripts/9icon | |
parent | b59c146f9c282c2a3cbcd7d6378d89de38e41811 (diff) | |
download | mcwm-c5e912c86c94addd9bdc97d6b954396648ae1a0d.zip |
Quote the window name. It might contain spaces or shell glob symbols.
Diffstat (limited to 'scripts/9icon')
-rwxr-xr-x | scripts/9icon | 2 |
1 files changed, 1 insertions, 1 deletions
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 |