summaryrefslogtreecommitdiff
path: root/scripts/9icon
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2012-03-05 07:51:11 +0100
committerMichael Cardell Widerkrantz <mc@hack.org>2012-03-05 07:51:11 +0100
commitc5e912c86c94addd9bdc97d6b954396648ae1a0d (patch)
treef6595cc390b74ede6253430532a1194d04f13b6e /scripts/9icon
parentb59c146f9c282c2a3cbcd7d6378d89de38e41811 (diff)
downloadmcwm-c5e912c86c94addd9bdc97d6b954396648ae1a0d.zip
Quote the window name. It might contain spaces or shell glob symbols.
Diffstat (limited to 'scripts/9icon')
-rwxr-xr-xscripts/9icon2
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