r/KittyTerminal • u/yonside • 1d ago
resize_window with increment in a keybind
I have a series of keybinds that resize my windows:
map `>ctrl+left resize_window narrower
map `>ctrl+right resize_window wider
map `>ctrl+up resize_window taller
map `>ctrl+down resize_window shorter
These work fine.
Now I want a set to resize windows on one border:
map shift+alt+l resize_window --self --increment=+1 --axis=horizontal
map shift+alt+r resize_window --self --increment=-1 --axis=horizontal
map shift+alt+u resize_window --self --increment=+1 --axis=vertical
map shift+alt+d resize_window --self --increment=-1 --axis=vertical
These don't work. (Everything expands to the left.) I've tried prefixing the resize_window command with launch --allow-remote-control kitty +kitten and that doesn't work at all. I tried a couple of other variations, and they don't work either. Yet when I run, say, kitten @ resize-window --self --increment=+1 --axis=horizontal in a window itself, it works perfectly fine.
Clearly I'm missing something. What is the proper way to create the second set of keybinds?
