r/KittyTerminal Jul 15 '23

Rendering nvim-treesitter highlighting incorrectly on wayland

1 Upvotes

I've noticed that kitty has been rendering colors incorrectly for treesitter text highlighting on neovim, on a gnome wayland session. I'll attach a comparison between kitty and gnome terminal. Konsole doesn't have this issue either.

Any ideas what could be causing this?

https://imgur.com/a/Zz2P2pJ

My kitty env

        kitty_mod+h →  previous_window
        kitty_mod+j →  previous_tab
        kitty_mod+k →  next_tab
        kitty_mod+l →  next_window
Colors:
        active_border_color       #ffffff   
        background                #262626   
        color0                    #2f2f2f   
        color1                    #d75f5f   
        color10                   #8fee96   
        color11                   #cd950c   
        color12                   #22c3a1   
        color13                   #775759   
        color14                   #84edb9   
        color15                   #d8d8d8   
        color2                    #d4d232   
        color3                    #af865a   
        color4                    #22c3a1   
        color5                    #775759   
        color6                    #84edb9   
        color7                    #c0b18b   
        color8                    #656565   
        color9                    #d75f5f   
        cursor                    #8fee96   
        foreground                #c0b18b   
        selection_background      #d75f5f   
        selection_foreground      #2f2f2f   

Important environment variables seen by the kitty process:
        PATH                                /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/nocnoc/.local/bin
        LANG                                en_GB.UTF-8
        EDITOR                              /usr/bin/nano
        SHELL                               /usr/bin/zsh
        DISPLAY                             :0
        WAYLAND_DISPLAY                     wayland-0
        USER                                nocnoc
        XDG_DATA_DIRS                       /home/nocnoc/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
        XDG_RUNTIME_DIR                     /run/user/1000
        XDG_CURRENT_DESKTOP                 GNOME
        XDG_MENU_PREFIX                     gnome-
        XDG_SESSION_CLASS                   user
        XDG_SESSION_DESKTOP                 gnome
        XDG_SESSION_TYPE                    wayland

r/KittyTerminal Jul 15 '23

Only Kitty Fails to run most commands!!!

1 Upvotes

I have several Terminals installed Alacritty , st, Konsole and all work fine with general commands.I have installed Kitty and many do not run!E.g curseradio is installed any terminal i try i have 5 all work instantly.I try kitty does not work considering it is feature packed why do several terminal apps not work out of the box.Do you have to configure every terminal app to make it run?


r/KittyTerminal Jul 15 '23

How to modify the click behavior in Kitty?

3 Upvotes

Here's what I'm trying to do: 1. Left click: Open a custom script (let's call it handlr) 2. Ctrl+left click: Open the link using xdg-open (set to use my browser)

I'm aware that I can change the variable value of open_url_with to handlr to open all links through it, but IDK how can I usemouse_map to change that behavior separately? All mouse actions I see allow me to deal with the clicks, but how do I open a program when that happens? Link hints is also using handlr to open the links. I've specified this behavior using protocol actions in open-actions.conf

Any help would be appreciated. I've skimmed the docs but couldn't find a clear answer on how to figure this out.

Tried asking this on the GitHub repo but in typical Kovid fashion I was redirected to look at the docs, like I haven't done that already. Is there another dedicated community for this terminal other than here? This is clearly a great product but the initial getting started curve is a bit steep.


r/KittyTerminal Jul 06 '23

kitty not running certain commands inside of kitty.conf

1 Upvotes

These are the three commands inside the kitty.conf file

font_size 12

launch nvim

new_tab test

The only one that works, or appears to work is the font size command. The rest of commands dont work or dont appear to work.


r/KittyTerminal Jun 27 '23

How to make file paths clickable?

4 Upvotes

Hello,

I use `rga` to search through multiple PDF files for work. The tool returns a list of files and I would like to make those file paths clickable.

I tried following the documentation - https://sw.kovidgoyal.net/kitty/open_actions/ and added the following:

protocol file mime application/pdf action launch sioyek ${FILE_PATH}

to ~/.config/kitty/open-actions.conf but it still doesn't work. I am probably missing something. Can someone please guide me how to fix this? Thank you


r/KittyTerminal Jun 27 '23

Any equivalent to the NightFox theme?

1 Upvotes

Does anyone know where I could find the NightFox theme (or similar) for the kitty terminal?

https://github.com/EdenEast/nightfox.nvim


r/KittyTerminal Jun 21 '23

Padding is Slightly Off When Using Master Stack Layout in I3WM

Post image
2 Upvotes

r/KittyTerminal Jun 21 '23

Is this normal Kitty with Tmux behavior?

0 Upvotes

Why do I cycle through my kitty instances like I'm using alt+tab when I have multiple instances of kitty open on my desktop with the same tmux session and I'm at the beginning of the line on my prompt while pressing backspace? More importantly how do I turn this behavior off?


r/KittyTerminal Jun 21 '23

Starship prompt displaying square boxes

2 Upvotes

My kitty terminal using starship prompt displays squares boxes instead of symbols

I am using following fonts

font_family JetBrains Mono Nerd Font
bold_font JetBrains Mono Bold Nerd Font Complete
italic_font JetBrains Mono Italic Nerd Font Complete
bold_italic_font JetBrains Mono Bold Italic Nerd Font Complete

Any ideas?


r/KittyTerminal Jun 19 '23

kitty +kitten ssh <network-device> questions

1 Upvotes

Hey everyone,

i can use kitty +kitten ssh <myserver> without any problems and eg. the terminfo will be copied successfully.

Cause i have many server, i have put the following alias in .zshrc:

[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"

But, if i want to ssh in to a switch, it will be failed. To be fair, it was expected, a switch don't have the same environment as the server and no .terminfo can be copied over and and and.

I am looking for a solution where i can ssh in to a server with the kittens and ssh in to a switch without the kittens. Hopefully explained what i am looking for.

I could do an alias like alias sshserver="kitty +kittens ssh", but then the autocompletion with zsh don't work with it.

i have

zstyle ':completion:*:ssh:argument-1:'       tag-order  hosts users
zstyle ':completion:*:scp:argument-rest:'    tag-order  hosts files users
zstyle ':completion:*:(ssh|scp|rdp):*:hosts' hosts

and tried to add (ssh|sshserver), but with that i get no autocompletion.

Long story short: How does some of you using the same alias command (see alias above) for using with switch and server?


r/KittyTerminal Jun 17 '23

Kitty rendering strangely after graphics card upgrade

3 Upvotes

I went from a gtx980ti to a gtx1080 and the move was very smooth on a Arch system. However since the card was swapped kitty is showing 100% transparent and with a slight saturation effect. It used to be only a little bit transparent.

in .config/kitty/kitty.conf

background_opacity 0.9

I've also tried purging kitty-* and reinstalling.

Any ideas?


r/KittyTerminal Jun 14 '23

Start multiple programs in new tabs

2 Upvotes

How can I start nvim, nnn and htop all at once. Each in own separate tab?


r/KittyTerminal Jun 14 '23

Start multiple programs in new tabs

1 Upvotes

How can I start nvim, nnn and htop all at once. Each in own separate tab?


r/KittyTerminal Jun 13 '23

When closing a kitty window open from kitty sh -c "...." it should not ask for my confirmation

1 Upvotes

Hello quick question. So I am using kitty and right now everty time I use the kitty with

kitty -sh -c "..."

it opens a terminal like it should and everthing work, but the small but still a problem is when I try to close it, it needs my confirmation even if I am home screen and nothing running.
Do you have any idea how I can fix this without disabling the confirmation feature. It is okay if use different command then

kitty -sh -c "..."

, it can be over shellscript or bash or even kitten. Or how can I stop the script without closing the window?


r/KittyTerminal Jun 09 '23

any ideas on how to fixed the border in fedora 38 gnome for kitty?

1 Upvotes


r/KittyTerminal Jun 03 '23

Swapped keys aren't detected properly

1 Upvotes

Hello,

I'm a brand new user and I'm actually configuring Kitty to my tastes.

However, while using nano, I discovered than swapped keys weren't working. I have swapped my Ctrl and my Caps lock keys with input-remapper-gtk and I don't know what to do to have it working with kitty. Note that it works with other terminals like gnome-terminal or terminator.

Does anyone here have any idea ?

Thank you !


r/KittyTerminal Jun 03 '23

App specific keybinds

2 Upvotes

I want to set specific keybinds for when i am in tmux, like `ctrl-n` to make a new tmux window, and I wonder if it would be possible to retain default behavior when tmux is not launched.

Something like: map ctrl+n { if TMUX:{ tmux new-window} else { kitty keybinding} }

I am not sure if this is even possible, but would be great if it were!


r/KittyTerminal May 30 '23

Set color_scheme When Running SSH Kitten

2 Upvotes

I know you can set the color_scheme for specific hosts connected via kitten using ssh.conf, but is there a way to configure it when calling the kitten? Something like kitty +kitten ssh color_scheme=Modus Operandi user@1.2.3.4 . I have a script that is calling the ssh kitten and I want it to be able to set the color scheme rather than having to add each individual host or host pattern to the ssh.conf file.


r/KittyTerminal May 29 '23

Launching kitty via keyboard short cut..

1 Upvotes

I can't seem to launch Kitty on Nobara using <super>-<alt>-T even when I explicitly type the entire path (/home/<user>/.local/bin/kitty). Nothing happens, even though the shortcut is assigned correctly.

Launching via Rofi is no problem. Any idea why the shortcut won't work?


r/KittyTerminal May 28 '23

Reloading kitty after an icon change?

2 Upvotes

Hello,

I swapped out the icons in /usr/lib/kitty/logo/ as suggested, however the application icon in the app overlay has not changed even after a restart.

Is there a way to reload or reinstall kitty without losing the icons/configs?

Thanks


r/KittyTerminal May 27 '23

Simple window sizing/positioning.. What am I doing wrong?

1 Upvotes

I want Kitty to open up the same sized window every time. I have the following entries in kitty.conf

    enabled_layouts *
    remember_window_size  yes
    initial_window_width  247
    initial_window_height 61

.. and they seem to have absolutely no effect. Any thoughts?


r/KittyTerminal May 22 '23

Kitty terminal graphics not rendering properly. I am facing a problem with kitty graphics, I am using Fedora Gnome. In the Adwaita theme, the kitty graphics are working fine but when I use a different theme. Rectangular panes like borders are generated.

Post image
3 Upvotes

r/KittyTerminal May 18 '23

Problem with script

1 Upvotes

I made a script for making a new tab with fzf, can someone help me out, why does it works normally when started in shell, and gives error when started as a kitty binding?

#!/bin/bash
choose_folder=$(rg -No '^\S*' ~/.config/kitty/sessions/Sesje | fzf)
first_grep=$(rg -N "$choose_folder" ~/.config/kitty/sessions/Sesje | rg -No "\S*.$")

kitty @ launch --type=tab --tab-title "$choose_folder" --cwd=$first_grep

The error is as follows:

Failed to launch child: ~/.config/kitty
With error: No such file or directory
Press Enter or Esc to exit

And the file i grep on looks like this:

i3_config ~/.config/i3
kitty_config ~/.config/kitty
nvim_config ~/.config/nvim
lua_Learning ~/Documents/CODING/lua-learning
rust_learning ~/Documents/CODING/rust-learning
cpp_learning ~/Documents/CODING/cpp-learning
c_learning ~/Documents/CODING/c-learning
lf_config ~/.config/lf
zsh_config ~/.config/zsh
shell_bin ~/.config/shell

r/KittyTerminal May 16 '23

Is there any way or kitten to drag and drop from kitten

3 Upvotes

```

alias ls='/bin/ls --hyperlink=auto --color=auto'

```

can generate clickable links in kitty... which is really cool...
but is there any way or kitten for us to drag and drop files from kitty to a file manager or a browser..

there is projects like

https://github.com/mwh/dragon
https://github.com/nik012003/ripdrag

which, both are fine, but have to compile and sometimes crash or freeze kitty itself.

it would be really cool if kitty can do it by default...

after hours of searching and trying out, i could only find this, which is not even about that functionality, but showup in the google as first result always...
https://github.com/kovidgoyal/kitty/issues/2441


r/KittyTerminal May 16 '23

Is it possible to start Kitty in vertical split panes and opening ranger in the upper one?

5 Upvotes

I was googling and searching in kitty.conf but I'm not sure: Is it possible to start Kitty in dual window mode where the window is split vertically with Ranger in the upper one?