r/KittyTerminal

The crt shader is really nice

Love how it makes my logo look with the subtle scanlines :3 and yes i spent alot of time fixing that logo. I cant stop ricing, pls help.

Too bad reddit compressed the video to potatoe quality so you cant really see

u/bonsaiiiiiiiii — 7 days ago

Question in the body about "close_on_child_death" setting

I use kitty terminal with fish shell. I have a fish function that will run a command on a file and be detached. For instance, I want to start kwrite (or libreoffice) with a certain text file detached and disowned so I can close the terminal and still keep kwrite open. below is the function I called detfun (for detach-function in my mind):

function detfun --description 'Run a command on a file in the background natively' if test (count $argv) -lt 2 echo "Usage: detfun <COMMAND> <FILE>" return 1 end

# Native Fish background syntax replaces nohup
$argv[1] $argv[2] &gt;/dev/null 2&gt;&amp;1 &amp;

# Detach the job completely so closing the terminal won't kill it
disown

end

When I run this in other terminal, it behaves as I want it. To run with kitty I had to change the setting to yes as shown below:

close_on_child_death yes

And now "detfun" works correctly. It mentions there may be some error as "their stdout/stderr/stdin no longer work."

It seems to work fine. Is there a better way to do what I am trying to do with fish/kitty?

reddit.com
u/JaKrispy72 — 7 days ago

how to make kitty make more empty spaces behind an image so i dont need to press enter a lot of times?

ok so um when i make kitty render an image in the terminal i need to press enter a lot of times just to see what im typing, is there any fix to this?

reddit.com
u/a_game_dev4 — 9 days ago

resize_window with increment in a keybind

I have a series of keybinds that resize my windows:

map `&gt;ctrl+left resize_window narrower
map `&gt;ctrl+right resize_window wider
map `&gt;ctrl+up resize_window taller
map `&gt;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?

reddit.com
u/yonside — 10 days ago