On further investigation I found that you can set the WM_CLASS in kitty. So
adding the line

kitty --class="vim" -e vim

Allows me to match vim for my group.

Hope this helps someone else too.


On Sun, 3 Jan 2021, 12:14 Justine Smithies, <[email protected]> wrote:

> Thanks for your help I'll give that a try.
>
> On Sun, 3 Jan 2021, 06:43 tcld, <[email protected]> wrote:
>
>> It depends on the purpose. It is really easy to do if you want to open
>> vim *automatically*, e.g. like "kitty -e vim" (I'm assuming the standard
>> parameters, since most terminals share the basic ones). So instead of
>> "kitty -e vim" you could do 'kitty -T "my autovim" -e vim', which will
>> overwrite the window title for that terminal (if it doesn't work, you
>> should check what the parameters are actually called for kitty). From now
>> on you can just set up your match to target "my autovim".
>>
>> If you want to move an already opened kitty-terminal after you opened vim
>> *manually*, this won't help you. I would assume it is still possible,
>> but likely much more difficult.
>>
>> On Saturday, 2 January 2021 at 23:37:06 UTC+1 Justine Smithies wrote:
>>
>>> I'm not sure that this is even possible and you'll probably wonder why
>>> I'm even asking ? But is there a way to use matches to recognise that vim
>>> is opened ? I'm mean xprop just shows I'm using kitty but is it possible so
>>> I could have vim sessions open in a specific group but kitty terminal in
>>> another ?
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "qtile-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/qtile-dev/84aad40e-cbcf-4102-bd69-f9cd20aa97d3n%40googlegroups.com
>> <https://groups.google.com/d/msgid/qtile-dev/84aad40e-cbcf-4102-bd69-f9cd20aa97d3n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/CADrRWNbLRdn2Sepnt%3D3%3DNK_NkVbajbBcUrBsk%3DJ18bvBSnuOkw%40mail.gmail.com.

Reply via email to