r/KittyTerminal • • 22h ago

Live stock and crypto charts in Neovim, drawn with the Kitty graphics protocol

23 Upvotes

I built a market board for Neovim that draws its charts as images through the Kitty graphics protocol.

How it uses the protocol:

- Charts are drawn in Lua (anti-aliased line, gradient fill) at the pixel size of their cells, then sent as zlib-compressed RGBA (f=32, o=z).

- They're shown through Unicode placeholders (U=1). To Neovim they're ordinary text cells, so the images move, hide and redraw with their window, with no placement bookkeeping or cleanup.

- Moving the crosshair resends only a few columns of the chart as a separate strip image, so it stays responsive.

- Each image alternates between two ids, so the new picture is on screen before the old one is deleted.

It works in Kitty and Ghostty; other terminals get text-block charts.

Repo: https://github.com/fimkap/ticker.nvim

4K version on YouTube: https://youtu.be/ZcgIyTk2ug4

Built with Volt: https://github.com/nvzone/volt

Feedback welcome.

AI disclosure: most of the code was written with Claude Code, under my close supervision. I set the idea and the design direction, tested every change the way a user would, and sent it back through many iterations until it behaved the way I wanted.


r/KittyTerminal • • 1d ago

kess: 3D multiplayer terminal chess game in your terminal

46 Upvotes

https://github.com/h4ks-com/kess

This is another one of my kitty graphics protocol experiments I wanted to share. This is a full local (vs CPU) or multiplayer (using MQTT) chess game using my lib katui. You can rotate the camera around, make movements with click or using arrows or vim bindings (hjkl). You can also have a 2D top view.

There are a 3 types of board/pieces combinations. The local AI is a small engine using shakmaty

Online games go through two free public MQTT brokers, broker.hivemq.com (HiveMQ) and broker.emqx.io (EMQX), over TLS. The room code is the shared encryption secret using ChaCha20-Poly1305. It may be not the cleanest setup but I don't know how much you guys care about the privacy of your multiplayer chess games hehehe.

The pieces were created in blender and pre-rendered from multiple angles. At render time scaled and positioned in the board. The board is generated from a ray-cast board texture through the orbiting camera. Basically, Doom or wolfenstein 3D DOS-era games.


r/KittyTerminal • • 2d ago Bravo

Kitty now has floating windows support and its really cool (master branch)

Thumbnail
gallery
318 Upvotes

https://github.com/kovidgoyal/kitty/issues/10965

There is also smooth scrolling but i think this one is by far my favorite, been really waiting for this one.


r/KittyTerminal • • 3d ago

Trouble setting opacity with control sequences

1 Upvotes

I'm trying to understand kitty's documentation about control sequences.

The documentation says:

If a color should have an alpha component, it must be suffixed to the color specification in the form @number between zero and one. For example:

red@0.5 rgb:ff0000@0.1 #ff0000@0.3

Since I can set the background colour with printf "\x1b]21;background=#011030\x1b\\", I would think that all I'd need to do to also modify the background opacity is printf "\x1b]21;background=#011030@0.8\x1b\\", but this doesn't do anything.

I couldn't find any better write-ups or examples of this feature, so I'm resorted to asking here: does this work for anyone else? Am I misunderstanding the documentation? Is there some fine print on page 83 that I skimmed over?

(yes, I've dynamic_background_opacity yes in my config)


r/KittyTerminal • • 6d ago

how do i make the background a random jpg from a folder?

1 Upvotes

the title basicly says it al, i have a folder with jpeg images and i want it each time i start the terminal it makes the background a random jpeg that is in there, is there a way to do that?


r/KittyTerminal • • 8d ago

File previews on mouse hover

73 Upvotes

The kitty part of this - on_mouse_move event subscribable via python hook - lives in my fork of kitty, and the actual preview that's using it (along with "open on click" and hints kitten all sharing the same file path resolution code) is part of my session manager called hop.

You can obviously use the fork without hop (it's kept up-to-date automatically with the upstream including releases) and write your own preview code, or (and that's my secret agenda here), go vote on the pr to hopefully convince Kovid to merge it.


r/KittyTerminal • • 7d ago

Para hacer esto necesito una regla de ventana o que necesito ?

Post image
0 Upvotes

r/KittyTerminal • • 9d ago

Using kitty's remote control to answer AI coding agents from a notch app

Thumbnail
gallery
7 Upvotes

I posted Openbar here a while back. It lists coding agent sessions (Claude Code, Codex and others) running in kitty. With allow_remote_control and listen_on set, it finds the agent's window through kitten @ by matching the session's pid and pastes your reply there as a bracketed paste plus Enter. It also reads is_focused, so the waiting sound stays quiet when you're already looking at that window.

It runs on Linux now too. One catch I hit: kitty 0.32, the version Ubuntu 24.04 ships, answers the window lookup with whichever window is active, so Openbar checks the pid itself.

Code (GPL): https://github.com/MF-DEEV/Openbar


r/KittyTerminal • • 9d ago

Comparing keypress-to-photon latency of 12 macOS terminals (incl. Kitty)

Thumbnail reddit.com
3 Upvotes

r/KittyTerminal • • 9d ago

Kitty won’t let me type in terminal

Thumbnail reddit.com
0 Upvotes

r/KittyTerminal • • 10d ago

How to remove "xxx by xx cells" in kitty when resizing window

2 Upvotes

I know this is a really minor thing but I couldn't find anywhere that had an answer, Does kitty have an option to remove this? If its not clear In the video i'm referring to the popup in the middle of the window. So far I've tried resize_draw_window_borders with the options static, none etc. None of those worked, I also tried to remove window decorations but that didn't work either, I'm pretty sure this is kitty's fault because it does this on both Mangowm and Hyprland.


r/KittyTerminal • • 11d ago

Shader help please

Post image
14 Upvotes

Real wanted to add a little bit more flavor to my terminal and finally sat down to tweak it. Upgraded, updated, and a slight brick wall. Do I need to build them from to repo or something. figured I'd ask the people before the AIs.


r/KittyTerminal • • 11d ago

How to restore files from trash?

0 Upvotes

When I delete some file, and try to navigate to trash by pressing `"g", "t"` and then try to yank it to other folder, it generates an empty file instead of the original file.

How can I properly restore a file to its original location?


r/KittyTerminal • • 13d ago

Terminal for widgets

10 Upvotes

I want to make as many things on my desktop ether a terminal, rofi menu or last resort quickshell menu. So for example if i click the time on my bar, i would like for a small terminal with a calendar program running in it. Is there a way to do this with kitty? This example is probably not the best, but it would be a starting point. Any tips?


r/KittyTerminal • • 13d ago

Retro Terminals with Neovim + Kitty

Thumbnail
youtube.com
53 Upvotes

r/KittyTerminal • • 13d ago

[Tool] Fluffy Maker – Interactive WebGL2 squishy physics overlay for Hyprland (slurp + grim + webkit2gtk)

8 Upvotes

r/KittyTerminal • • 13d ago

None of my config changes are seeming to apply

1 Upvotes

Hello! I'm super new to linux and am running into issues with Kitty.

I open the config in vim like normal (ctrl+shift+f2), and then make changes and save. I reopen kitty and nothing has changed. Shell integration is enabled, would that be the cause?

distro: EndeavourOS


r/KittyTerminal • • 15d ago

Kitty 0.51 adds a dock that stays visible in every tab

61 Upvotes

Kitty 0.51.0 was released on November 18, two weeks after 0.50.

The main change is a new dock type. launch --type=os-window-dock attaches a window to an edge of the OS window, below the tab bar. The dock is shown in every tab of the OS window. You can resize it by dragging its inner border or with the resize_window action and kitten @ resize-window. It suits a status display or a monitoring tool you want to keep in view.

Custom shaders get screen-shake effects that shake a window on bell. They also get new events and uniforms for command start and finish and for alternate screen enter and exit. A new launch_wrapper.py file in the kitty config directory lets you run programs in new windows through a wrapper command. One use is opening new windows inside the same container as the window they came from.

Some fixes matter for daily use. The display no longer fails to update while idle after timers or mouse actions. The scrolled back view no longer jumps when new output arrives. Tabs and windows moved with detach_tab, detach_window or drag and drop no longer lose their session.

There are also security fixes. A program in the terminal could hang kitty by using edit-in-kitty to set a window logo to a special file such as /dev/zero. Logos and background images must now be regular files.

Changelog: https://sw.kovidgoyal.net/kitty/changelog/#detailed-list-of-changes

Linuxiac: https://linuxiac.com/kitty-0-51-terminal-emulator-adds-docked-windows-new-shaders/


r/KittyTerminal • • 17d ago

Frosted Glass in Kitty hyprland

Thumbnail github.com
8 Upvotes
Frosted Glass in Kitty hyprland

Frosted glass setup for Kitty + Hyprland on Arch Linux. Includes an installer.

https://github.com/Spacehat123/Kitty-Frosted-Glass.git


r/KittyTerminal • • 18d ago

Kitty terminal & fish shell.

Thumbnail
reddit.com
5 Upvotes

r/KittyTerminal • • 18d ago

GT San Andreas in a terminal emulator

117 Upvotes

Just testing the limits of what is possible here using the kitty graphics protoccol on ghostty. This is actually just the original ps2 game decompiled to C++ and recompiled into wasm using the ps2 runtime from https://github.com/snuri00/ps2-web-recomp...

But that is not what we care about here!

katnav is a experimental webbrowser using CEF (because nothing else would run gta on terminal so well so I just used chromium) and kitty graphics protccol: https://github.com/h4ks-com/katnav

I did this as a way of testing a graphics/game-engine/ui lib I am working on: https://github.com/h4ks-com/katui

Chrome renders WebGL normally and katui will convert it into rectangular tiles that we dynamically downscale in resolution, diff trying to update only what changed (which makes some sense for UIs but not as much for a game stream like that), compresses and base64 it in parallel. Most of the heavy lifting is done by the library itself.

According to my benchmarks I can get 36MB/s on kitty allowing 32 fps, while for ghostty 85 MB/s allowing 61 fps when 100% of the tiles change. Of course this varies between harware.

And yes you can use katnav for browsing the normal web, it is an actual browser, check the github ;)

I am making this experiment mostly for fun, so it is pretty much fully vibecoded, but I tried to keep the maximum architetrual overview and coverage with static analysis checks. Feel free to reach me out if you find this interesting and would like to bring it further. In theory now I could put any graphical application in the terminal. Not sure if someone has already done that?


r/KittyTerminal • • 18d ago

Bouncing balls Inside Neovim (Kitty graphics protocol)

3 Upvotes

r/KittyTerminal • • 19d ago

ytk: browse and watch YouTube from the terminal, with thumbnails in kitty (Python + yt-dlp + mpv)

Post image
9 Upvotes

I wanted to search and watch YouTube without leaving the terminal, but most TUI clients show only text. ytk uses kitty's graphics protocol to draw a 3×3 grid of thumbnails, then plays the video with mpv.

What it does

- Search videos, playlists, or both mixed in (like the website)

- Open a video's channel and switch between its videos and playlists

- Info panel: channel and subscribers, views, likes, date, resolution, description

- Play whole playlists and YouTube Mixes; jump to any song while one is playing

- Resume where you left off, plus a history

- Download audio or video in the background, and play the local file afterwards

- English and Spanish interface (follows your system language, space L toggles it)

- It also works inside zellij

How it works

It's a single small Python package with no dependencies besides what you probably already have: yt-dlp for search and metadata, mpv for playback, and kitty for the images. It's driven by a LazyVim-style leader key: press space and a menu shows the available actions, so you don't have to memorize anything.

git clone https://github.com/anton-arck/ytk.git ~/.local/share/ytk

ln -sf ~/.local/share/ytk/bin/ytk ~/.local/bin/ytk

ytk arch linux

Caveats

- You need kitty (or a terminal that supports its graphics protocol).

- It relies on yt-dlp, which reads YouTube without an official API. When YouTube changes something it can break until yt-dlp is updated, so update yt-dlp first if something fails.

- Linux only so far; I've only tested it on Arch (sway).

It's MIT licensed. Feedback, bug reports and ideas are very welcome, especially from people on other distros or terminals.

Repo: https://github.com/anton-arck/ytk


r/KittyTerminal • • 20d ago

Kitty graphics protocol in Neovim (Basics with examples)

Thumbnail
youtube.com
45 Upvotes

The Kitty Graphics Protocol has been adopted by many terminal applications. Neovim 0.13 also uses it to display images.

In this video, I'll explain the basics of the Kitty Graphics Protocol and how to use it with Neovim and Lua.

I'll cover:

  • How communication between Neovim and Kitty works.
  • The structure of Kitty escape sequences.
  • How to send escape sequences using the Neovim API.

Examples:

  • Draw a pixel.
  • Draw basic shapes.
  • Change the cursor position.
  • Clear the screen.
  • Create basic animations.
  • Create a basic sprite animation.

Even though I'll be using Lua and Neovim, I'll explain the protocol itself so you can transfer this knowledge to your favorite programming language.

Source code:
https://github.com/FractalCodeRicardo/dev-config/tree/master/nvim/lua/my/kitty-protocol