Kitty: Difference between revisions

From Bitpost wiki
Line 27: Line 27:
  -rw-rw-r-- 1 m m 357 Feb 26 15:45 Ubuntu.conf
  -rw-rw-r-- 1 m m 357 Feb 26 15:45 Ubuntu.conf
  -rw-rw-r-- 1 m m 629 Feb 26 15:46 WarmNeon.conf
  -rw-rw-r-- 1 m m 629 Feb 26 15:46 WarmNeon.conf
Easy to apply, now that I allowed remote control:
kitty @ set-colors -a /home/m/.config/kitty/kitty-themes/themes/Solarized_Darcula.conf


To vet that they look good you can use:
To vet that they look good you can use:

Revision as of 22:43, 26 February 2025

OpenGL hardware accelerated terminal that is SIGNIFICANTLY, IMPORTANTLY much faster than gnome-terminal on abtdev1 via SPICE.

Config

All config (colors, keyboard, much more...) is here, "self-documented":

development/config/common/home/m/.config/kitty/kitty.conf

ssh terminfo

When ssh'ing to a new machine, it will not "know" kitty by default.

When you can use ssh directly, use a kitten:

kitty +kitten ssh newplace

Or, to teach an ubuntu machine about it:

sudo apt install kitty-terminfo

Or, go manual by following this.

infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin

Now LOG OUT, log back in, and enjoy the speed of kitty.

Colors

I grabbed a couple nice themes from [ here], and put them here:

 💉 m@cast  [~/.config/kitty/kitty-themes/themes] ls
total 28K
-rw-rw-r-- 1 m m 629 Feb 26 15:41 3024_Day.conf
-rw-rw-r-- 1 m m 357 Feb 26 15:42 Solarized_Darcula.conf
-rw-rw-r-- 1 m m 357 Feb 26 15:42 Solarized_Dark.conf
-rw-rw-r-- 1 m m 629 Feb 26 15:44 Solarized_Dark_-_Patched.conf
-rw-rw-r-- 1 m m 395 Feb 26 15:43 Solarized_Light.conf
-rw-rw-r-- 1 m m 357 Feb 26 15:45 Ubuntu.conf
-rw-rw-r-- 1 m m 629 Feb 26 15:46 WarmNeon.conf

Easy to apply, now that I allowed remote control:

kitty @ set-colors -a /home/m/.config/kitty/kitty-themes/themes/Solarized_Darcula.conf

To vet that they look good you can use:

colortest-16

Emacs seems to blow out its own shitty colors, eg for ruby comments in RED and quit-without-save warnings in BLUE. Switching to ne, dammit.

Auto-switch theme

This cron work is on cast, but not working yet, sigh... have to wait MORE...

# MDM TODO Kitty is not applying themes to all, as expected; i don't have kitten theme support in old kitty of Ubuntu; kill -SIGUSR1 $KITTY_PID doesn't work either
# MDM Shift to light terminal at 7am
0 7 * * * /usr/bin/kitty @ set-colors -a /home/m/.config/kitty/kitty-themes/themes/Solarized_Light.conf

# MDM Shift to dark terminal at 5:30pm
30 17 * * * /usr/bin/kitty @ set-colors -a /home/m/.config/kitty/kitty-themes/themes/Solarized_Darcula.conf

Install

  • For now, I just install via ubuntu apt
sudo apt install kitty

It's an older version, and that sucks, as it is missing things like `kitty +kittens theme`. But latest is baked into Ubuntu 24.04 so maybe I go with that soon...

  • Add ctrl-shift-t shortcut in i3 config, starting it with correct path and using -1 (so one daemon is used for all shells, nice and fast).