Re: [i3] using i3-msg to close entire workspace

2014-09-08 Thread Michael Stapelberg
On Mon, Sep 8, 2014 at 6:11 PM, Sargrad, Dave
 wrote:
> I am looking for a way to use i3-msg to close an entire workspace.
Use “focus parent” until you arrive at the workspace level, then use “kill”.

>
> So far I've not found the way to do this. Can someone please let me know if 
> this is easy to do.
>
>
> -
> 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.
> -



-- 
Best regards,
Michael


Re: [i3] Confusing error message

2014-09-08 Thread Marian Beermann
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: , '[', '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: 
> , '[', '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. 
> -  
> 



[i3] Confusing error message

2014-09-08 Thread Sargrad, Dave
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: , '[', '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: 
, '[', '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. 
-  

Re: [i3] using i3-msg to close entire workspace

2014-09-08 Thread Sargrad, Dave
I am looking for a way to use i3-msg to close an entire workspace. 

So far I've not found the way to do this. Can someone please let me know if 
this is easy to do.


-
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. 
-