Using for_window in shell script [closed]
i3 version 4.6 (2013-08-07, branch "tags/4.6")
I am trying the following command in a shell script, but it is giving me an error:
$ i3 for_window [class="Gvim"] floating enable
=> [{"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":"for_window [class=Gvim] floating enable","errorposition":"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"}]"]'"}]
Please help me find out what is wrong here.
Duplicate of https://faq.i3wm.org/question/2761/why-doesnt-for_window-work-in-i3-msg/