diff options
author | katherine <shmibs@shmibbles.me> | 2016-05-05 09:53:49 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2016-05-05 09:53:49 -0700 |
commit | 790abf26da2f1c5203eea9da7298f7a725e00faa (patch) | |
tree | 1cd0419e40d36c543fa59fc2491bd3412811dd5d | |
parent | 0f8944cc477048035cc77a6d0274df12c5fcb5ba (diff) | |
download | dotfiles-790abf26da2f1c5203eea9da7298f7a725e00faa.tar.gz |
prevent rendering escapes in window titles
escape \ chars in window titles to prevent things like \n from being
interpreted as escapes
-rwxr-xr-x | .config/herbstluftwm/panel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |