Escape the command. DISPLAY=:0.0 i3-msg '[class="Emacs23"] kill'
On 08.09.2014 19:37, Sargrad, Dave wrote: > I think the following should kill all windows having class Emacs23. The error > message is very confusing: > > > ubuntu@example:~/.i3$ DISPLAY=:0.0 i3-msg [class="Emacs23"] kill > ERROR: Your command: a kill > ERROR: ^^^^^^ > ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', > 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', > 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'split', > 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', > 'mode', 'bar' > [{"success":false,"parse_error":true,"error":"Expected one of these tokens: > <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', > 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', > 'kill', 'open', 'fullscreen', 'split', 'floating', 'mark', 'unmark', > 'resize', 'rename', 'nop', 'scratchpad', 'mode', 'bar'","input":"a > kill","errorposition":"^^^^^^"}] > - > This message is intended only for the addressee and may contain information > that is company confidential or privileged. Any technical data in this > message may be exported only in accordance with the U.S. International > Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export > Administration Regulations (15 CFR Parts 730-774). Unauthorized use is > strictly prohibited and may be unlawful. If you are not the intended > recipient, or the person responsible for delivering to the intended > recipient, you should not read, copy, disclose or otherwise use this message. > If you have received this email in error, please delete it, and advise the > sender immediately. > - >