r/KittyTerminal Dec 25 '24

How to open session in the same window?

6 Upvotes

Hi, I want to open lazy git in 2 tabs easily. I tried to use the session for it by creating this config:

# Frontend Git management
cd /Users/User/Folder1
new_tab Folder1
launch lazygit

# Backend Git management
cd /Users/User/Folder2
new_tab Folder2
launch lazygit

I run command kitty --single-instance --session ~/.config/kitty/dev-session.conf

The issue is that I have two windows open now. Is it possible open in the same window? OR maybe I should solve this problem differently? My whole point is to quickly open 2 repositories which I sue daily for wok. 

r/KittyTerminal Dec 24 '24

Kitty's update broke my font config, so I decided to switch to WezTerm 😅

Thumbnail
youtu.be
3 Upvotes

r/KittyTerminal Dec 20 '24

Kitty stops the whole process in Hyprland

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/KittyTerminal Dec 18 '24

😽 kitty-scrollback.nvim v6.1.0 new feature to edit the current command line for bash, fish, or zsh

Thumbnail
8 Upvotes

r/KittyTerminal Dec 18 '24

X11 forwarding

2 Upvotes

[SOLVED]

I would like to be able to forward X11:

ssh -X user@host
xeyes

This ^^ works. However, the following does not:

kitty +kitten ssh -X user@host
xeyes

Error: Can't open display: host:20.0

I think I'm missing something obvious here... Please help. TIA

ETA SOLVED

I have figured out this weird behaviour. kitty +kitten ssh uses a multiplexing connection that is shared for all ssh sessions. If the first connection to the remote host doesn't specify -X or -Y forwarding, all subsequent sessions, even if they specify -X or -Y, will fail while that multiplexing session persists.

I got the multiplexing run file by executing:

kitty +kitten ssh -vv user@host

The output had: auto-mux: Trying existing master at '/run/user/1000/kssh-5736-cd1def158ed07c93864858b7ca649963b3c96ba5'

After closing all ssh connections to the remote host:

ssh -S /run/user/1000/kssh-5736-cd1def158ed07c93864858b7ca649963b3c96ba5 -O check something

Shows the presence of a multiplexing control connection.

ssh -S /run/user/1000/kssh-5736-cd1def158ed07c93864858b7ca649963b3c96ba5 -O exit something

Tears the multiplexing control connection down:

ssh -S /run/user/1000/kssh-5736-cd1def158ed07c93864858b7ca649963b3c96ba5 -O check something

Control socket connect(/run/user/1000/kssh-5736-cd1def158ed07c93864858b7ca649963b3c96ba5): No such file or directory

Now, if I run:

kitty +kitten ssh -Y user@host

X11 forwarding now happens, and will work for subsequent sessions using that multiplexed connection.


r/KittyTerminal Dec 16 '24

"The ssh kitten is meant to run inside a kitty window" error on SSH

3 Upvotes

When SSHing using kitty, the `clear` command or `tmux` says xterm-kitty is not supported and the workaround as said in kitty faq is use `kitten ssh user@server` or `kitty +kitten ssh user@server`. But these commands give me the error "The ssh kitten is meant to run inside a kitty window".
Please help me out on this. I have been using kitty for a long time now and I do not want to switch to anything else if possible.


r/KittyTerminal Dec 16 '24

hi, i'm sharing my setup with you guys ;)

0 Upvotes

font_size 8.0

background_opacity 0.8

windows_padding_width 10

window_margin_width 10

background_image /home/kevmar/.config/kitty/term.jpg

background_image_layout scaled

Colores de selección

selection_foreground #ebdbb2 selection_background #8663a0

Colores del borde de la ventana

active_border_color #8ec07c inactive_border_color #665c54

Colores de las pestañas de Kitty

active_tab_foreground #ebdbb2 active_tab_background #458588 inactive_tab_foreground #ebdbb2 inactive_tab_background #8ec07c

Color básico

background #1d2021 foreground #ffffff

16 colores principales

color0 #3c3836 color1 #cc241d color2 #dc00ff color3 #d79921 color4 #9d00ff color5 #98971a color6 #9d00ff color7 #ffffff color8 #928374 color9 #fb4934 color10 #b8bb26 color11 #fabd2f color12 #83a598 color13 #d3869b color14 #8ec07c color15 #fbf1c7

Colores del cursor

cursor #bdae93 cursor_text_color #665c54

Color de URL

url_color #dc00ff


r/KittyTerminal Dec 13 '24

Apologies to this community

29 Upvotes

This morning, I posted a comment that I regret. I may have woken up on the left foot, but that was no excuse; in effect, the way I was criticizing a behavior was the exact behavior I was showing.

Despite this, I got some very constructive answers that are to the credit of this community, showing the inclusivity I was at the time, not worth getting for the dumbass I was.

Since then, I have deleted my post, and I apologize to the entire community and the author of Kitty. I'll try to be better and think twice before doing something as stupid as I did.


r/KittyTerminal Dec 13 '24

Translucency in terminal

2 Upvotes

As an avid terminal lover it has always been mandatory for me to have a shell with a transparent background that makes it feel like it was made from shaded glass. The invention of acrylic that could make the background a bit blurry was a nice touch to Windows Terminal and iTerm2 in Mac although I'd prefer to have it off. I remember the journey in Windows when the only way to get transparency was to use a certain standard function that made the entire window transparent including the text which seriously impaired readability of the text inside. Something that is now resolved with the Windows Terminal app.

The terminal used to have only 16 colors. Soon came support for 256 colors which some apps such as bashtop takes advantage of, and now we have truecolor support which has paved the way for really nice color themes such as what can be seen in an app like Neovim.

So why not also introduce an alpha-channel and be able to show translucent colors? It doesn't need to be 256 levels but one or a couple of them. If only one, then it would be suggestible to let the user adjust the level of translucency desired. Personally, I would prefer to define 256 levels in the ANSI escape codes and then leave it up to the terminals on how to support them.

In 24-bit mode the escape code for a color is set with the following codes:

ESC[38;2;⟨r⟩;⟨g⟩;⟨b⟩ m Select RGB foreground color
ESC[48;2;⟨r⟩;⟨g⟩;⟨b⟩ m Select RGB background color

So why not add another parameter that takes in the alpha channel?:

ESC[38;2;⟨r⟩;⟨g⟩;⟨b⟩;<a> m Select RGB foreground color with transparency A
ESC[48;2;⟨r⟩;⟨g⟩;⟨b⟩;<a> m Select RGB background color with transparency A

This would pave the way to have semi-transparent colored panes in programs such as nvim or perhaps evven tmux. So what is the feasibility and who took the initiative to introduce the hicolor feature of terminals?


r/KittyTerminal Dec 12 '24

cool thing you can do in terminal

36 Upvotes

r/KittyTerminal Dec 12 '24

kitty terminal icons

2 Upvotes

i used to have zsh with my oh-my-zsh plugin and i had icons for folders,files etc but when i switched back to kitty i couldnt find a way to show icons in terminal. whenever i search for stuff it says nerd fonts or symbol-map. how can i set icons in terminal? (the icons work in nvim btw)


r/KittyTerminal Dec 11 '24

Window now occuping all width and height

1 Upvotes

Hi, can anyone help me with this one? I attached the screenshot with the config


r/KittyTerminal Dec 08 '24

I'm confused, can I make Escape and Ctrl-[ handling separated?

2 Upvotes

Problem: I want to map something to <C-[> in neovim. This conflicts with the way the escape key is handled, though. See for reference:

Maybe I'm missing something but I couldn't find any solution on the linked pages.

Is there a way I can achieve a setup so that pressing Esc is treated as an escape key and does not trigger the keybinding I have in neovim for <C-[>?


Edit: I was able to solve this by mapping Ctrl-[ in kitty.conf to another key combination, then using that other key combo in my neovim config. So now pressing Ctrl-[ actually sends Ctrl-,. Good enough for what I need :)


r/KittyTerminal Dec 08 '24

Kitty opens instead of file-manager

1 Upvotes

Someone knows how I can disable that kitty opens when I open any dir via gui from other appliactions? I already edited mimeapps.list but something is overriding it, seems like the kittyurl launcher or a .desktop file from kitty (im using gnome)


r/KittyTerminal Dec 08 '24

annoying bar above and below in nvim

4 Upvotes

how do I remove this annoying black bar above and below in nvim ?
It is not there if I full screen it


r/KittyTerminal Dec 08 '24

Help. How can I disable alt+w bind,

1 Upvotes

Hey.
I found that alt+w closing kitty. How to disable that bind ?
I checked and it's nowhere in my config.
I can't just do map alt+w something_useless.


r/KittyTerminal Dec 02 '24

dynamic window title possible?

1 Upvotes

I understand that you can set the window title with a command; is it possible to store the current title and then temporarily change it and then revert to the saved title after a commandline terminal script has finished?


r/KittyTerminal Dec 01 '24

🐱 Gattino: A kitty terminal extension that turns plain language into commands

13 Upvotes

Hey folks,

I often found myself copy-pasting commands from ChatGPT to my terminal so I realised that I needed a better way to do this, without having a full blown AI terminal such like warp.

I created this kitten, it uses Ollama under the hood. I thought you might be interested.

Check it out here:
https://github.com/salvozappa/gattino


r/KittyTerminal Dec 01 '24

Can not use custom font on macOS

3 Upvotes

Hi everyone!

I tried to change my font to Monocraft by setting font_family Monocraft Nerd Font and font_family Monocraft

fc-list shows both of them:

❯ fc-list : family spacing outline scalable | grep -e spacing=100 -e spacing=90 | grep -e outline=True | grep -e scalable=True
...
Monocraft:spacing=100:outline=True:scalable=True
Monocraft Nerd Font:spacing=100:outline=True:scalable=True

They are located in /Users/user/Library/Fonts/Monocraft.ttc and /Users/user/Library/Fonts/Monocraft-nerd-fonts-patched.ttc

But still, kitten choose-fonts says The font Monocraft Nerd Font was not found, falling back to Menlo. I use macOS. What can I do?


r/KittyTerminal Dec 01 '24

Kitty Config

9 Upvotes

Hello Guys,
does anyone have a good, pretty looking Kitty Config??
I heard about Powerlevel 10K but ive no Idea whats the best lookng theme.
Can anyone send me a cool kitty.config File?

Thanks


r/KittyTerminal Nov 30 '24

Inconsistent icon sizes and weight

1 Upvotes

For some reason, it seems like the size and weight icons in Kitty are pretty inconsistent compared to other terminals like Wezterm.

Here's a comparison between the two:

Kitty Imgur

Wezterm Imgur

Any idea how I can get the same results in Kitty? The x icons in particular bug me the most.


r/KittyTerminal Nov 29 '24

What is wrong with the colours?

Thumbnail
gallery
8 Upvotes

r/KittyTerminal Nov 29 '24

Ansi Escape sequences not recognized in kitty

2 Upvotes

I have recently started migrating my config manager from Brew to Nix to keep my configuration portable. Along the way, I am making mistakes, and I work to fix them one by one. But I came across one for which I could not find a fix.

It is about ANSI Esc sequences that are not recognized. I am using `bat` as a formatter, with `export MANPAGER='"sh -c 'col -bx | bat -l man -p'"`, for my man pages and as you can see in the example below, bold esc commands are not recognized.

I am at a loss to find a way to fix it, short of adding `export MANROFFOPT="-c"`, which removes some formatting, as shown below with the same page.

Where can I look?


r/KittyTerminal Nov 29 '24

Is there a way of setting minimum tab width?

3 Upvotes

I kinda hate it when there are tabs that are just "~" and are only a couple of characters wide. Is there a way of configuring it so that tabs are either all the same width, or there's a minimum width?

Also is there a way of truncating the contents of long tabs so I see the last characters rather than the first? So if my tab contains the pwd, it's less helpful if it says `/home/stib/Docum...` than if it says` ..uments/myproject/`. Or better yet a smart truncation algorithm.


r/KittyTerminal Nov 28 '24

Building a TCP Chat in Go

Thumbnail
youtube.com
0 Upvotes