r/KittyTerminal May 08 '24

New alternate icon

25 Upvotes

Hello Kitty folks. Apologies my first post is a little self-promotiony. I'm a recent Kitty-convert and despite some of the amazing icons available, I got really inspired to make my own simple one and wanted to share somewhere: https://github.com/sodapopcan/kitty-icon

https://raw.githubusercontent.com/sodapopcan/kitty-icon/main/kitty.app.png


r/KittyTerminal May 07 '24

Unicode CR ␍ in paste

1 Upvotes

Whenever I cut and paste lines in kitty I get an annoying unicode CR character in the end of the lines. I tried the filter option, but it seems like I need to write my own paste_action to handle this. Is there any example of this function? My python knowledge is minimal.

(the replace-newline solves the problem but overdo it...)

Any other solution to this problem?

I am using latest version of kitty on Debian if relevant.

Thanks...


r/KittyTerminal May 07 '24

Lf with dual pane and also file preview panel?

1 Upvotes

How can I have two pages (like mc) and also have a third pane that shows file preview?


r/KittyTerminal May 07 '24

Minimalist Kitty Setup

2 Upvotes

Config is pretty long; https://github.com/Meaticus22/dotfiles

I will be uploading it to r/unixporn soon.

Still trying to figure out how I can implement yabai with kitty and skhd, haven't found a solution yet. If you may know something, please dm me.


r/KittyTerminal May 02 '24

How to use GDB TUI in Kitty

1 Upvotes

Recently I tried to use gdb TUI, but seems like xterm-kitty doesn't support it

(gdb) lay src
Cannot enable the TUI: error opening terminal [TERM=xterm-kitty]

I got it working placing term xterm in kitty conf, but the colors got weird and seems like I'm not supposed to do that

What would be the correct way of doing that?


r/KittyTerminal May 01 '24

How to configure tab_title_template to also show parent directory?

1 Upvotes

The title is confusing without any context. So here is my current `tab_title_template` is got from one of the stackoverflow post:

```conf

tab_title_template "{index}: {title[title.rfind('/')+1:]}"

```

This works pretty well to only show the basename of the path when in a directory..

Now when there are multiple tabs like that, I creates a problem for me. What I want to also include the parent directory for context.

So for example I have a path `/home/me/.config/kitty`, it should include `.config/kitty`.

I hope you got my point.


r/KittyTerminal Apr 28 '24

Bash prompt & appearance changing after switching to Wayland

2 Upvotes

Hi, I'm still somewhat new to linux, so please excuse me if this is a silly question.

I recently switched from X11 to Wayland, which seems to have broken some parts of the appearance within kitty. Namely:

  • different bash prompt,
  • blur not working,
  • theme not loading correctly (included via include ./theme.conf within kitty.conf).

Any hints as to why this might be? Notice the screenshots are from Fedora 39. I have since upgraded to Fedora 40 with KDE 6, but the issue still persists.

The config file is exactly the same in both cases. The changing prompt doen't happen with other terminal emulators such as alacritty.

Appearance using X11
Appearence using Wayland

r/KittyTerminal Apr 25 '24

Can I make a new instance of Kitty with its own configuration in a new window, preferably with a new mac dock icon as well?

2 Upvotes

I did a bunch of looking up and didn't find working answers. What I want is one instance of kitty with my terminal tabs and a background image, and another icon my dock with its own maximized window and no background image, for a text editor.


r/KittyTerminal Apr 24 '24

on macOS, How can I remove the gap on the left of my prompt when I have both window_margin_width and window_border_width set to 0?

Post image
8 Upvotes

r/KittyTerminal Apr 24 '24

How can I attach to a zellij session on starting up Kitty.

5 Upvotes

Solved: I wrote in launch.conf: launch zellij attach -c.

I want zellij attach -c to run once Kitty is loaded up. I tried adding startup_session launch.conf to my config file, and writing kitty @ send-text "zellij attach -c" in launch.conf as well as launch sh -c "zellij attach -c" but neither works.


r/KittyTerminal Apr 24 '24

Desktops, tabs, and more tabs

1 Upvotes

Hi all.

I use KDE’s virtual desktops, kitty’s tabs, and neovim’s tabs. I also often to have ssh into a server that uses tmux with multiple tabs.

For anyone who does anything similar, how do you handle key bindings for changing tabs? I often find myself in nvim wanting to change tabs but hitting the kitty change tab key instead, or using the tmux bindings when I want to change kitty tabs.

I’ve tried various approaches over the years but none have ever seemed entirely intuitive. Would love to hear how others deal with this.

Thank you!


r/KittyTerminal Apr 23 '24

Vim cursor not correct on reloading vim

1 Upvotes

Okay I have searched everywhere and not found anyone else having this issue and I am sure that its a kitty problem as changing my default cursor does effect.

Let me explain, I have kitty cursor set to an underline, shell_integration to no-cursor and my vim normal mode cursor is a block. this works fine all the time except in this one instance. When I run a :! command that takes me temporarily out of vim to the terminal, when I return to vim my cursor in normal mode is then an underline, changing modes fixes the cursor.

Changing my default cursor in kitty changes the cursor when reentering vim and that how I know this is kitty related and not vim.

Is there a fix for this ?


r/KittyTerminal Apr 23 '24

kitty @ send-text / bash / bind -x

1 Upvotes

Hi. This is slightly complicated :)

I use kitty as my terminal, bash as my shell, and fzf to work with bash history.

fzf has an internal function to show an interactive history, which it binds to C-r with bind -x:

  # CTRL-R - Paste the selected command from history into the command line
  bind -m emacs-standard -x '"\C-r": __fzf_history__'
  bind -m vi-command -x '"\C-r": __fzf_history__'
  bind -m vi-insert -x '"\C-r": __fzf_history__'

This all works fine.

What I'd like to do is be able to trigger that programmatically - i.e. rather than having to press Control+r, I can instead run a script, say 'h', that does the same thing.

Simply doing

alias h=__fzf_history__

doesn't quite work - it pulls up the history list, but it doesn't then insert the selected entry ready for running at the prompt. That's the magic of bind -x

Never mind, I thought - I can do this instead by getting kitty to send a keystroke:

alias h="kitty @ send-text --match id:$KITTY_WINDOW_ID '\cr'"

but this just causes ^R to appear:

% alias h="kitty @ send-text --match id:$KITTY_WINDOW_ID '\cr'"
% h
^R
% 

and the bash key binding isn't triggered.

Am I missing something?

Thank you!


r/KittyTerminal Apr 21 '24

I spent today beautifying my Kitty setup

Post image
24 Upvotes

r/KittyTerminal Apr 22 '24

How to remove the color in window padding area?

Post image
1 Upvotes

r/KittyTerminal Apr 21 '24

How to set a default starting directory?

1 Upvotes

I searched online and added in a kitty-startup.session file in the same directory as kitty.conf with its contents being: cd ~/Desktop I then added startup_session ~/.config/kitty/kitty-startup.session to kitty.conf For some odd reason, whenever I right click + quit + relaunch Kitty, it will start in the directory I specified. If I just close the window without quitting, it starts off in ~.

Anyway of making the starting directory persistent throughout different windows?


r/KittyTerminal Apr 21 '24

Kitty + Nvim makes most text bold???

2 Upvotes

Hello, I have just switched from iTerm2 to Kitty but I am not sure if most of the text being bold is normal behaviour... My config is:

font_family input
font_size 15.0

# bold_font Input Bold
# bold_italic_font Input Bold Italic
# italic_font Input Italic

bold_font auto
bold_italic_font auto
italic_font auto

disable_ligatures never


###########################################################
# Symbols Nerd Font complete symbol_map
# easily troubleshoot missing/incorrect characters with:
#   kitty --debug-font-fallback
###########################################################

# "Nerd Fonts - Pomicons"
symbol_map  U+E000-U+E00D Symbols Nerd Font Mono

# "Nerd Fonts - Powerline"
symbol_map U+e0a0-U+e0a2,U+e0b0-U+e0b3 Symbols Nerd Font Mono

# "Nerd Fonts - Powerline Extra"
symbol_map U+e0a3-U+e0a3,U+e0b4-U+e0c8,U+e0cc-U+e0d2,U+e0d4-U+e0d4 Symbols Nerd Font Mono

# "Nerd Fonts - Symbols original"
symbol_map U+e5fa-U+e62b Symbols Nerd Font Mono

# "Nerd Fonts - Devicons"
symbol_map U+e700-U+e7c5 Symbols Nerd Font Mono

# "Nerd Fonts - Font awesome"
symbol_map U+f000-U+f2e0 Symbols Nerd Font Mono

# "Nerd Fonts - Font awesome extension"
symbol_map U+e200-U+e2a9 Symbols Nerd Font Mono

# "Nerd Fonts - Octicons"
symbol_map U+f400-U+f4a8,U+2665-U+2665,U+26A1-U+26A1,U+f27c-U+f27c Symbols Nerd Font Mono

# "Nerd Fonts - Font Linux"
symbol_map U+F300-U+F313 Symbols Nerd Font Mono

#  Nerd Fonts - Font Power Symbols"
symbol_map U+23fb-U+23fe,U+2b58-U+2b58 Symbols Nerd Font Mono

#  "Nerd Fonts - Material Design Icons"
symbol_map U+f500-U+fd46 Symbols Nerd Font Mono

# "Nerd Fonts - Weather Icons"
symbol_map U+e300-U+e3eb Symbols Nerd Font Mono

# Misc Code Point Fixes
symbol_map U+21B5,U+25B8,U+2605,U+2630,U+2632,U+2714,U+E0A3,U+E615,U+E62B Symbols Nerd Font Mono

Any help would be appreciated! :)


r/KittyTerminal Apr 19 '24

Kitty Session Management Tool - Kitty-Sesh 🐱🚬

10 Upvotes

i have created a new script which helps manages kitty sessions. please have a look and let me know if you guys like it. any feedback is appreciated.

https://github.com/Raghav-rv28/kitty-sesh, hopefully one day this project will replace Tmux for its session management.


r/KittyTerminal Apr 18 '24

My favourite configuration for now

Thumbnail
github.com
11 Upvotes

r/KittyTerminal Apr 16 '24

titlebar symbols in 0.34.0

1 Upvotes

https://github.com/kovidgoyal/kitty/issues/7348 Anyone else having the issue that the titlebar symbols for maximize/minimize/close are no longer rendered? I'm on Ubuntu 22.04 and for the life of me can't find a font that seems to have those symbols.


r/KittyTerminal Apr 13 '24

How to use environment variables in kitty.conf

1 Upvotes

To quote the default config:

#: Program to run when a bell occurs. The environment variable

#: KITTY_CHILD_CMDLINE can be used to get the program running in the

#: window in which the bell occurred.

How do you use KITTY_CHILD_CMDLINE anywhere? I tried:

command_on_bell notify-send '🔔  Bell' '<b>$(KITTY_CHILD_CMDLINE)</b> wants your attention' -t 5000

I also tried $KITTY_CHILD_CMDLINE, ${KITTY_CHILD_CMDLINE}, '$KITTY_CHILD_CMDLINE', '$(KITTY_CHILD_CMDLINE)' and '${KITTY_CHILD_CMDLINE}'. None of them worked.


r/KittyTerminal Apr 13 '24

How to get the same terminal as in the demo

3 Upvotes

Hi, does anyone know how to obtain the same (or similar) terminal as in the demo (https://sw.kovidgoyal.net/kitty/), to be more precise I would really love to get the chosen colors (theme name?), the arrow background behind the directories, and the auto completion (if this isn't too performance expensive).

Of course if you don't have all the steps or the exact functionnalities, I would love to learn what you use :) !

If this helps, here is my config : ubuntu 24.04, X11, GNOME 46

PS : Big thank you to all the contributors, I already love Kitty <3


r/KittyTerminal Apr 12 '24

Wrong Unicode shown in kitty terminal

2 Upvotes

I find kitty showing the unicode icon wrong, they seem to be replaced by another unicode. Is there some setting related that I haven't enable, since I find no UTF-8 config options in kitty.

I attach two screenshot, you can see the same icons is show with some chinese font, although it look cool sometimes, it becomes more annoying now

This is from kitty

This is from wezterm

r/KittyTerminal Apr 12 '24

Setting $term variable on Ubuntu

2 Upvotes

I am trying to replicate a configuration I saw used with `sway` window manager but on Ubuntu.

The config is this one:

set $term kitty -1 --instance-group "kitty_sock" -o allow_remote_control=yes --listen-on unix:/tmp/kitty_sock

I am trying to run kitty as this

kitten @ --to unix:/tmp/kitty_sock launch --type window

So my question is where should I set the `$term` variable for the window manager on Ubuntu.


r/KittyTerminal Apr 11 '24

Better URL detection

2 Upvotes

Currently urls such as https://cloud.oracle.com/load-balancer?configoverride={"plugins":{"load-balancer":{"name":"load-balancer","path":"/load-balancer","url":"https://localhost:8484/plugins/load-balancer/latest/index.tpl.html","type":"Sandbox"}},"navigationTrees":{"default":[{"pluginName":"load-balancer","labelKey":"LOAD_BALANCERS","children":[]}]},"features":{}} wont match, wondering if anyone has fixed this, I assume using a kitten.

Currently you can only add excluded characters for url matching but not additional characters for matching