I switched to i3 recently (from pekwm), to see if I could persuade myself to start to use tiling WM. So far, so good, I find i3 very configurable and maleable. If not directly, then by simple scripting and a bit of hacking.
However, one thing is bothering me ... let me explain: I regularly use VirtualBox; very often I want to close certain window inside particular virtual machine, and instinctively press the i3 'kill' keyboard shortcut $mod+Shift+q. Of course, it closes entire virtual machine ... which makes me cry and mad :)
What I need is to disable 'kill' action on windows with [instance="VirtualBox"]. I tried:
bindsym $mod+Shift+q [instance="(?!VirtualBox)"] kill
However, it doesn't do what I need ... instead, to my horror, it closes all other windows!
Is there a simple solution to this, or I must resort to the IPC (this would be overkill for such a simple operation, wouldn't it)?
Unfortunately, programming in C/C++ is over my head, but if there is a chance, I would vouch for adding such config option: 'do something to focused widow, unless window satisfies such-and-such criteria".
(Note: my question is connected to this one [How do I use an exclude regex in i3 config] here in this FAQ, so I'm not the only one in a need for such thing.)
Thanks a lot for all your answers.