Skip to content

[feat] launch kitty window with relative size #7634

@k4lizen

Description

@k4lizen

Is your feature request related to a problem? Please describe.
When running a pwntools script that launches gdb, it can be set to open the output/gdb pane next to each other with tmux like this:

context.terminal = "tmux splitw -h -l 65% -b".split()

This makes it so that the window is split vertically, where the left one is 65% of the width of the unsplit window. This is really convenient for me as changing the width each time manually is tiresome, and I rerun the script quite often. For kitty I have this:

context.terminal = "kitty @ launch --location=vsplit --cwd=current".split()

but as far as I know there is no way to make it so the split is at 65%

Describe the solution you'd like
A cmd argument that allows the split to be at a % location.

Describe alternatives you've considered
I've looked at this but I don't think it solves my problem, or if it does I don't know how.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions