|
Today I was super happy when I discovered that smart-splits does not only have tmux integration but also works with kitty. Most of the time I am totally fine with kitty's more limited multiplexing features. My question now is: can I somehow have both kitty and tmux integration at the same time (So that kitty does not automatically steal all keybinds from tmux)? I would need some way to make the kitty keybinds conditional based on whether tmux is running or not. I am not really sure how or if this can be done? Is someone using smart-splits like that? Any help would be much appreciated! |
Replies: 2 comments 2 replies
|
Does kitty support multiple configuration profiles? That would be one way if so |
|
I don't know tmux, but if is there a way to identify that tmux is running (by tittle, command_line, var or state) you can ask Kitty to unmap that keybind, e.g:
Same approach as this extension uses. |
Awesome, that works 😍️
Thank you for the simple but good idea. I was thinking about doing it with the env var 'TMUX' which tmux sets but as kitty is the parent and tmux the child process kitty wouldn't retroactively know about that variable, but the title works fine! Here's how I've done it now:
This goes to '.tmux.conf'
And this to 'kitty.conf'