Why is 'for_window' not accessible from i3-msg?
asked 2013-06-12 17:53:44 +0000
Anonymous
I'd like to have a configuration line like
i3-msg 'for_window [class="URxvt" instance="scratch"] move scratchpad; exec urxvtc -name scratch'
in my .i3/config, but trying it interactively with i3-msg, it didn't like for_window at all
ERROR: Your command: for_window [instance="scratch"] move scratchpad
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'split', 'floating', 'mark', 'resize', 'rename', 'nop', 'scratchpad', 'mode'
[{"success":false,"parse_error":true,"error":"Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'split', 'floating', 'mark', 'resize', 'rename', 'nop', 'scratchpad', 'mode'","input":"for_window [instance=\"scratch\"] move scratchpad","errorposition":"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"}]