Yes, and i discovered what's happening. The dtach command simply runs
whatever i give it and exits. So, doing  *kitty dtach -A
~/.cache/dtach_vim_session ls *gives me a dir listing and terminates
immediately.

I tried this originally with tmux but i couldn't figure out how to nest the
quotes:
 *Key([mod], "Return", lazy.spawn("kitty tmux -c "vim -c ':ter
++curwin'"")),*
The above does not work.  It gives me a qtile error and i have to
cntrl-alt-backspace to get out, because you can't fix and refresh qtile.

tmux -c "vim -c ':ter ++curwin'"  works at the command line but the command
following the *tmux -c* must be in double quotes, and the vim command must
be in single quotes.

How do I nest that in qtile?

Thanks,

On Mon, May 4, 2020 at 2:32 PM Guillaume Gelin <[email protected]> wrote:

> Did you try with another terminal?
>
> Le lun. 4 mai 2020 à 22:29, Bearcat M. Şándor <[email protected]> a
> écrit :
>
>> Oh, well I guess that would be helpful.  Kitty launches, and dies
>> immediately, so that's different than it was yesterday. Odd. I'll poke the
>> kitty, as it were and play with it some more.  Closing this for now, and I
>> apologies for the noise.
>>
>> On Mon, May 4, 2020 at 2:17 PM Tycho Andersen <[email protected]> wrote:
>>
>>> On Mon, May 04, 2020 at 01:50:17PM -0600, Bearcat M. Şándor wrote:
>>> > Hey folks,
>>> >
>>> > First off, thank you for this awesomely hackable wm.
>>> >
>>> > I'm trying to set up a hotkey combination to launch my terminal with a
>>> > detachable vim terminal session in it.  In my config.py I have:
>>> >
>>> > *Key([mod], "Return", lazy.spawn("kitty dtach -c
>>> ~/.cache/dtach_vim_session
>>> > vim -c ':ter ++curwin'")),*
>>> >
>>> > Yeah, that's a lot to unpack.  It's 3 parts:
>>> > *vim -c ':ter ++curwin'*  -- this fires up vim and opens up a vim
>>> terminal
>>> > in it
>>> > *dtach -c ~/.cache/dtach_vim_session*  -- starts up dtach and creates a
>>> > session file called dtach_vim_session in my ~/.cache directory
>>> > *kitty* -- fires up my kitty terminal and runs the above in it
>>> >
>>> > Now, if I open up kitty and enter *dtach -c ~/.cache/dtach_vim_session
>>> vim
>>> > -c ':ter ++curwin'* in it, it runs just fine.
>>> >
>>> > Note that also if I have *Key([mod], "Return", lazy.spawn("kitty tmux
>>> -c
>>> > 'vim +term'")),*   that works just fine, so I don't think it's a kitty
>>> > issue.
>>> >
>>> > Any ideas?
>>>
>>> You didn't mention what doesn't work exactly, but my guess is that
>>> kitty is installed somewhere that isn't in the default $PATH,
>>> ~/.local/bin maybe.
>>>
>>> Tycho
>>>
>>> --
>>> 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/20200504201747.GL683427%40cisco
>>> .
>>>
>>
>>
>> --
>> Bearcat M. Şándor
>> Feline Soul Systems LLC
>> Voice: 872.CAT.SOUL (872.228.7685)
>> Fax: 406.235.7070
>>
>> --
>> 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/CAMPo9soPx7uDAw7V64piNk%3DgSG_rEM0Yzsbod-SaQNmy0wx6OQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/qtile-dev/CAMPo9soPx7uDAw7V64piNk%3DgSG_rEM0Yzsbod-SaQNmy0wx6OQ%40mail.gmail.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/CAPn4x%2Bo20e%2BNQPh%2BGaS%2BspZEyZQN-F_NjDFGdy-U7h-hYK79yQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/qtile-dev/CAPn4x%2Bo20e%2BNQPh%2BGaS%2BspZEyZQN-F_NjDFGdy-U7h-hYK79yQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Bearcat M. Şándor
Feline Soul Systems LLC
Voice: 872.CAT.SOUL (872.228.7685)
Fax: 406.235.7070

-- 
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/CAMPo9sqXmOgmvGte3UQ8GCnEOyKXYy32KPknjde6%3DmMy1aWBaA%40mail.gmail.com.

Reply via email to