From 790abf26da2f1c5203eea9da7298f7a725e00faa Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 5 May 2016 09:53:49 -0700 Subject: prevent rendering escapes in window titles escape \ chars in window titles to prevent things like \n from being interpreted as escapes --- .config/herbstluftwm/panel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 78f7d7b..e8ae8c6 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -82,7 +82,7 @@ update_winlist() { focus_id=0 fi - lines=$(wmctrl -l | sed 's/^0x0*//') + lines=$(wmctrl -l | sed -e 's/^0x0*//' -e 's/\\/\\\\/g') # kind of messy. use hc dump's ordering but wmctrl -l for pairing # ids with titles -- cgit v1.2.3