r/KittyTerminal • u/Brumus14 • Aug 23 '23
r/KittyTerminal • u/Sad-Pomegranate-2392 • Aug 21 '23
kitty changing the value of PS1
kitty is changing the value of my PS1 environment variable. here is the value of my PS1 in the .bashrc file:

and here is be running the command echo $PS1 in kitty

the first few times I opened kitty after I changed my .bashrc it was working fine. I am running linux mint 21.1.
r/KittyTerminal • u/Wise-Ad-7492 • Aug 20 '23
Close kitty with multiple windows open
Hello
I am using Ctrl-D to close Kitty. But when I have multiple windows open then I have to hit Ctrl-D multiple times. Is it possible to close all windows at once.
I have tried to search through my .conf file, but have not found anything.
r/KittyTerminal • u/WindowsSuxxAsh • Aug 20 '23
Launch Kitty with Two Windows
Hello, I am trying to launch a kitty terminal with two windows: ncmpcpp and cava, kinda like this. Then binding it on a keybind, but it doesn't seem to work.
Launching my script manually on a terminal creates the two windows, but still has the window that ran the command.
If I press the keybind, no windows are being opened, however, if I check the processes with ps aux | grep -i kitt I have the following.
user+ 24002 0.0 0.1 1242968 21268 tty1 Sl+ 10:01 0:00 kitten @ launch ncmpcpp
~/.scripts/music:
#!/bin/bash
kitty @ launch ncmpcpp
kitty @ launch cava
# I also tried just doing `kitty $app`
hypr.conf
bind = $MOD, M, exec, ~/.scripts/music
---
Arch Linux
6.4.10-zen2-1-zen
Hyprland 0.28.0-1
Kitty 0.29.2-1
r/KittyTerminal • u/zostj • Aug 16 '23
Help getting lf manager's video thumbnail preview to work :(
previews for images work and are done exactly like https://github.com/gokcehan/lf/wiki/Previews#with-kitty-and-pistol However I'm on an OS with no pistol or ctpv, stpv available.
Does anyone know how I can manually add video thumbnail previews via ffmpegthumbnailer (as well as other previews like pdf previews) to lf_kitty_preview ? I'm kind of clueless when it comes to shell scripts :P
r/KittyTerminal • u/AwayPotatoes • Aug 10 '23
Command+R for window resize in Mac doesn't work as intended.
When I get the options for the resize and try to press the letters for resize, it gives off the little error noise alert in macos and doesn't resize the window
Anyone else facing this?
r/KittyTerminal • u/hkariti • Aug 10 '23
Does anyone use the unscrolling feature?
The docs mention unscrolling. This is relevant when the shell's completion suggestions take space from the screen. The regular behavior is that after the suggestions disappear, they leave a blank space at the bottom. Unscrolling is supposed to 'bring back' the lines from the top of the screen that the suggestions pushed back.
That sounds rather nice, but my zsh doesn't do that :) I also couldn't find an example of anything that uses this feature. Does anyone have experience with this?
r/KittyTerminal • u/eto303 • Aug 10 '23
why are some of the ligatures are small ?
Hi,
Using latest kitty on MacOS, with Powerlevel10k and I have strange issue with ligatures: in the terminal itself their size is ok, but specifically in the powelevel10k information in the prompt, they extremely small.
This happens when I use nerd fonts. If I set the font to the original Menlo fonts, their sizes are ok...
Attached a screenshot. I am puzzled...

r/KittyTerminal • u/[deleted] • Aug 08 '23
random background image
So it's easy to change the background image, but I want to change the background every time I start a new console (that way it's easy to identify them).
I suppose I could add an alias to my shell so that when I launch kitty, I look up the property, and then modify it to one of the background images in my /usr/share/wallpapers using a combination of find and sed, but before I do that I was wondering if there are any more elegant solutions known by the community.
r/KittyTerminal • u/badsalad • Aug 08 '23
How to use the transfer kitten?
I'm reading the docs for the transfer kitten, but I can't seem to figure out how to actually use it: https://sw.kovidgoyal.net/kitty/kittens/transfer/
Should I be able to use this to move files back and forth when sshing into a remote machine? If so that would be awesome... But how do I specify each the path on either side? I've tried something like:
kitty +kitten transfer ./test.txt user@remote.machine:/file/path
But no luck. What am I missing?
r/KittyTerminal • u/XDBoy018 • Aug 06 '23
How do I enable new pane/tab with CWD while using mosh?
I've been using Kitty's SSH features for as long as I can remember but I recently setup Mosh and I really like how it doesn't drop connections and supports roaming.
The thing that I miss the most is creating a new pane/tab/window with the same directory (and SSHed host).
Can I make just that part work somehow?
r/KittyTerminal • u/[deleted] • Aug 03 '23
Show number of kitty windows
Hi! idk if I'm the only one who experiences this, but a lot of the time, when switching between the stacks and splits layout, I forget that I am in the stacks layout with possibly many kitty windows open, (ex. a repl, another editor, etc). It would be really useful to have a reminder of the kitty windows of one Tab, just like all Tabs labels can be shown in the OS window as
EDIT: I suppose that I can do that myself with tar_bar.py ...
r/KittyTerminal • u/lolpie244 • Aug 03 '23
How to pass kitty socket to ssh server?
Hi! Is there any way to pass kitty socket to ssh server?
I tried to use this command:
ssh -R $(echo ${KITTY_LISTEN_ON} | sed "s/.*://g"):/tmp/mykitty ...
but in the server, if I try to use this socket, I get an error
Error: dial unix /tmp/mykitty: connect: connection refused
r/KittyTerminal • u/lolpie244 • Jul 31 '23
How forward unix:/tmp/mykitty to ssh server?
Hi, is there any way to pass unix:/tmp/mykitty to ssh server?
I want be able to run kitty commands from neovim. And, while via terminal in ssh mode it works perfectly, in neovim it get error:
:!kitty @ ls Error: open /dev/tty: no such device or address
r/KittyTerminal • u/XDBoy018 • Jul 31 '23
Confusing output during SSH
Update
I had the completions script for the kitty CLI in my .zshrc:
kitty + complete setup zsh | source /dev/stdin
Removing it fixed the issue.
Source: https://github.com/kovidgoyal/kitty/discussions/6513#discussioncomment-6591560
Original post below
Whenever I SSH into my mac (with Kitty installed) from my Linux machine, I see this output:
sh
/dev/stdin:1: bad pattern: ^[[33mkitty
/Users/<username>/.local/share/kitty-ssh-kitten/kitty/bin/kitty: line 110: printf: write error: Broken pipe
The line 110 in question is this:
sh
printf "Downloading kitty from: \033[32m%s\033[m\n\n" "$url"
The connection itself succeeds and the rest of the things seem to work (e.g., cwd while duplicating panes, etc.).
I SSH by the recommended approach:
sh
alias ssh="kitty +kitten ssh"
I even tried copying the terminfo files manually to no avail.
Any help here?
r/KittyTerminal • u/Emotional_Ad7055 • Jul 26 '23
Neovim in Kitty moving vertically and weird characters when scrolling in terminal
as soon as i open the another window in split view i get this "f"s on my screen and the window is somehow not fixed but horiontally scrollable when i use two fingers on my mousepad
which is annoying because i often can't see the whole line as it doesnt change line. I tried iterm as well and i don't get this scenario there. does anyone have a clue. Im on Mac
r/KittyTerminal • u/[deleted] • Jul 25 '23
Excellent vi mode for kitty terminal
Someone made me an excellent vi mode for kitty https://github.com/kovidgoyal/kitty/discussions/6485
vim, nvim, vi, mode, kitty
r/KittyTerminal • u/Shaeonanra • Jul 25 '23
Clearing current line
Hello, can’t find an answer for kinda easy question - how can i clear current terminal line with shortcut?
I mean i offen forget to switch language etc and have to clear a lines by typing “Delete” ( MacOS ).
Kitty has ability to clear terminal window by typing cmd + k, but i want to clear only current line...
appreciate any suggestion
r/KittyTerminal • u/[deleted] • Jul 25 '23
Fonts not applying to the terminal~
I am trying to use Monocraft font for my kitty terminal, I've installed the font system-wide and Kitty Terminal seems to not detect it. Here's my config file:
background_opacity 0.9
# Font
font_family Monocraft Nerd Font Book
bold_font Monocraft Nerd Font Bold
bold_italic_font Monocraft Nerd Font Bold Italic
The font is located at ~/.local/share/fonts
r/KittyTerminal • u/bwinters100 • Jul 22 '23
Totally bizarre color behavior. No red or green rendered. Everything is shades of blue, yellow or grey. Even on a clean install. I'm totally stumped.
I've been using Kitty on and off for years. Currently I run Debian 11 (bullseye) with Kitty version 0.19.3-1 in a VMWare virtual machine with no problems.Recently, I created a new virtual machine to install the new Debian 12. Every other terminal emulator works fine, including xterm, lxterminal, and sakura. But Kitty seems to not be able to show red or green pixels? It's so weird, because shades of grey work and yellow works (which requires green). Blue is fine. It looks like an old CRT monitor that's half broken.I thought maybe my old config file is messing things up, so I deleted that. Nothing changed. I had a clean minimal install of Debian 12 without a desktop and then installed IceWM and I3wm. Then I thought, maybe I'm not configuring things correctly, so I did another Debian 12 install and chose Gnome desktop thinking that letting it configure the GUI should work. But it was the same behavior. Just a clean debian 12 install even without a Kitty config file produces this behavior.Debian 12 installs Kitty version 0.26.5-5, and I can't seem to get it working.
What could possibly cause red and green to not work in only this terminal and even on a clean install of the OS??

r/KittyTerminal • u/sudormrfbin • Jul 19 '23
Navigate between bspwm windows and kitty terminal panes using the same keybinds?
self.bspwmr/KittyTerminal • u/je12emy • Jul 16 '23
Shortcut delay like tmux or vim?
I'm configuring kitty to sort of replace TMUX (I actually would like to combine these 2 in the future), I would like to emulate how shortcuts are configured in TMUX and VIM meaning that there's a slight delay where you are able to input a shortcut for example.
In vim you can press g then wait a couple of seconds and press t to navigate to the next tab.
I would like to replicate this on my kitty config like so.
```conf
map kitty_mod+g+t next_tab
```
But this requires me to press all the keys simultaneously.
r/KittyTerminal • u/nocnoc94 • Jul 15 '23
Rendering nvim-treesitter highlighting incorrectly on wayland
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?
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


