Look for a literal ., not any character

This commit is contained in:
Tom Willemse 2015-07-05 22:29:19 +02:00
parent d8a6c9640c
commit 0fa2c21ec8

View file

@ -7,7 +7,7 @@
#
# This script depends on both herbstluftwm and wmctrl.
WINID=$(wmctrl -lx | grep ".$1" | awk '{ print $1 }')
WINID=$(wmctrl -lx | grep "\.$1" | awk '{ print $1 }')
if [ -n "${WINID}" ]; then
herbstclient jumpto "${WINID}"