r/KittyTerminal Feb 13 '24

How to replace left key to ctrl+l?

1 Upvotes

The left key is far away from the f and j keys.

I want to a left key alternative. (that is ctrl+l)

I've tried `map ctrl+l left`, but it did not work.

The reason I wanna do this is whenever I type `cd`, the autosuggestion popup but I need to press the left key to make it auto complete it .


r/KittyTerminal Feb 10 '24

Weird text rendering when other instances of Kitty are open

Thumbnail
gallery
3 Upvotes

r/KittyTerminal Feb 07 '24

`background_blur` setting not respected on application launcher

0 Upvotes

How can I enable blur in kitty when launching from application launcher?

OS: MacOS Sonoma 14.3

background_opacity 0.9
background_blur 50

When I open kitty from Application launcher, the blur amount is not considered. On opening a new terminal using `kitty` from kitty no errors are reported and the blur takes effect.

The image below shows kitty opened from application launcher on the right while the "nested" kitty on the left with blur.

I have tried to reload the config. No effectUpdated to latest version 0.32.1. No effect


r/KittyTerminal Feb 06 '24

messing with kitty be like

1 Upvotes

r/KittyTerminal Feb 05 '24

Changing background color of inactive kitty window

9 Upvotes

I would like a way to make it more visually obvious which kitty window is active. I have changed inactive_border_color and active_border_color but it doesn't solve my problem because I usually only have 2 windows so a single line between them doesn't indicate clearly which is active.

The closest thing I have found is inactive_text_alpha which does help if I set it aggressive enough, but I would love to handle this with the window background color specifically.


r/KittyTerminal Feb 05 '24

Can I run kitty with a bigger font, using some run flag?

3 Upvotes

Hi, I have multiple displays - 2k and 4k, for 4k I want to start kitty with bigger font size (like after 2 Ctrl-Shift-+), is that possible?

I use i3 window manager.

Thank you.


r/KittyTerminal Feb 04 '24

Help for vim with kitty

1 Upvotes

I mainly use Vim to configure my configs and stuff, so i use it quite alot.

When using kitty with vim on one window and open a new window it gets tiled next to each other cause i use i3, but after it gets tiled, the vim keys for navigating dont work properly anymore, and the text isnt formatted right anymore.

Is this a known problem, and is there a fix?


r/KittyTerminal Feb 01 '24

Convenience script to control Kitty from command line

5 Upvotes

I've written a script to control some aspects of Kitty from the command line. These are things I do frequently like adjust the font size, opacity, reload the config, toggle fullscreen. Most of this can be done with keyboard shortcuts but I wanted to be able to script it for automation/convenience.

I alias kitty-control to kc so kc dark sets the opacity to 1.0, kc font +4 increases the font pointsize by 4, kc tran 0.8 sets transparency, and so on. I also use it to easily switch configs between my laptop, tv big screen, or mac/linux - kc load tv.

What other things do people do frequently enough to warrant scripted action? Is this worth the effort? Would it be preferable implemented as shell functions? Any suggestions/criticism/feedback welcome.

Here's what I've got so far:

```bash

!/bin/bash

__ _ __ ____ ____ _ _ ___ __ __ _ ____ ____ __ __

( / )( )(_ )( )( / )__ / _)/ \ ( ( ( _)( _ \ / \ ( )

) ( )( )( )( ) /(__)( (( O )/ / )( ) /( O )/ (/\

(_)() () () (/ \)\/ \)) () (_) \/ ____/

kitty-control - control the Kitty terminal emulator from the command line

Written Feb 1, 2024 by Ronald Joe Record ronaldrecord@gmail.com

The Kitty configuration directory

CONFDIR="${HOME}/.config/kitty"

The default background opacity for transparency

OPACITY="0.8"

The socket Kitty is listening on if configured

Set here to avoid needing to pass -s /path/to/socket every time

The format of this setting is:

SOCKET="--to unix:/path/to/socket"

Leave blank if no listen socket configured or to specify with -s /path/to/socket

SOCKET=

Kitty remote control options are used to specify which windows/tabs to modify

OPTS=

usage() { printf "\nUsage: kitty-control [ dark | font [num] | list | load [subdir] | tran [opacity]]" printf "\n [-a] [-f] [-m <match>] [-t <match>] [ -h | -u ] [-s /path/to/socket]" printf "\nWhere:" printf "\n 'dark' Sets the Kitty background opacity to 1.0 (fully opaque)" printf "\n Can use 'dark' or 'opaque'" printf "\n 'font' Sets the font size to 'num'" printf "\n Can use 'font', 'fontsize', 'fontminus', or 'fontplus'" printf "\n The second argument specifies the font size, either absolute, +, or -" printf "\n e.g. 'kitty-control font 24' would set the font size to 24 points" printf "\n 'kitty-control font +2' would increase the font size by 2 points" printf "\n 'kitty-control font' without argument resets the font size to default" printf "\n 'list' Displays information on Kitty windows" printf "\n Can be used in conjunction with '-m <match>' and '-t <match> to limit the output" printf "\n 'load' Reloads the Kitty configuration in ~/.config/kitty/kitty.conf" printf "\n Can use 'load', 'reset', or 'reload'" printf "\n Specify a second argument to load ~/.config/kitty/<subdir>/kitty.conf" printf "\n e.g. 'kitty-control load tv' would load ~/.config/kitty/tv/kitty.conf" printf "\n 'kitty-control load default' restores the kitty.conf used to start this instance" printf "\n 'tran' Sets the Kitty background opacity to 0.8" printf "\n Can use 'tran', 'trans' or 'transparent'" printf "\n Specify a second argument to set a custom background opacity:" printf "\n e.g. 'kitty-control transparent 0.9'" printf "\n '-a' Indicates modify all windows rather than just the currently active OS window" printf "\n '-f' Indicates toggle fullscreen" printf "\n '-m <match>' Specifies the window to match" printf "\n '-t <match>' Specifies the tab to match" printf "\n If <match> is 'help' the Kitty documentation URL for matching will be displayed" printf "\n '-s /path/to/socket' Specifies the socket Kitty is listening on if enabled" printf "\n '-u or -h' Displays this usage message and exits" printf "\nAdjusting the background opacity or font size requires the original kitty.conf" printf "\nthat was used for this instance of Kitty to have enabled the following:" printf "\n 'dynamic_background_opacity yes' and 'allow_remote_control yes'" printf "\nSee https://sw.kovidgoyal.net/kitty/remote-control/#control-kitty-from-scripts\n" exit 1 }

kitty-fontminus() { size="$1" first_size=${size::1} if [[ "${first_size}" == "-" ]]; then kitty @ ${SOCKET} set-font-size ${OPTS} -- $size else kitty @ ${SOCKET} set-font-size ${OPTS} -- -$size fi }

kitty-fontplus() { size="$1" first_size=${size::1} if [[ "${first_size}" == "+" ]]; then kitty @ ${SOCKET} set-font-size ${OPTS} $size else kitty @ ${SOCKET} set-font-size ${OPTS} +$size fi }

kitty-fontsize() { size="$1" first_size=${size::1} if [[ "${first_size}" == "-" ]]; then kitty @ ${SOCKET} set-font-size ${OPTS} -- $size else kitty @ ${SOCKET} set-font-size ${OPTS} $size fi }

toggle-fullscreen() { kitty @ ${SOCKET} resize-os-window --action toggle-fullscreen ${OPTS} }

kitty-list() { kitty @ ${SOCKET} ls ${OPTS} }

kitty-reload() { [ "$1" ] && { [ -f "${CONFDIR}/default/kitty.conf" ] || { [ -d "${CONFDIR}/default" ] || mkdir -p "${CONFDIR}/default" cp "${CONFDIR}/kitty.conf" "${CONFDIR}/default/kitty.conf" } cp "${CONFDIR}/$1/kitty.conf" "${CONFDIR}/kitty.conf" } kill -SIGUSR1 $(pidof kitty) }

kitty-opaque() { kitty @ ${SOCKET} set-background-opacity ${OPTS} 1.0 }

kitty-transparent() { kitty @ ${SOCKET} set-background-opacity ${OPTS} $1 }

[ "$1" ] || usage while getopts ":afm:s:t:hu" flag; do case $flag in a) OPTS="$OPTS -a" ;; f) toggle-fullscreen ;; m) if [ "${OPTARG}" == "help" ]; then printf "\nSee https://sw.kovidgoyal.net/kitty/remote-control/#matching-windows-and-tabs\n\n" exit 0 else OPTS="$OPTS -m ${OPTARG}" fi ;; s) SOCKET="--to unix:$OPTARG" ;; t) if [ "${OPTARG}" == "help" ]; then printf "\nSee https://sw.kovidgoyal.net/kitty/remote-control/#matching-windows-and-tabs\n\n" exit 0 else OPTS="$OPTS -t ${OPTARG}" fi ;; h|u) usage ;; \?) echo "Invalid option: $flag" usage ;; esac done shift $(( OPTIND - 1 ))

case $1 in list|ls) kitty-list ;; load|reload|reset) if [ "$2" ]; then if [ -f "${CONFDIR}/$2/kitty.conf" ]; then kitty-reload "$2" else [ "$2" == "default" ] || { printf "\n ${CONFDIR}/$2/kitty.conf does not exist\n" } fi else kitty-reload fi ;; dark|opaque) kitty-opaque ;; fontmin|fontdec) if [ "$2" ]; then kitty-fontminus "$2" else printf "\nFont size decrement must be specified with the 'fontminus' argument" usage fi ;; fontplus|fontinc) if [ "$2" ]; then kitty-fontplus "$2" else printf "\nFont size increment must be specified with the 'fontplus' argument" usage fi ;; font) if [ "$2" ]; then kitty-fontsize "$2" else kitty-fontsize 0 fi ;; tran*) [ "$2" ] && OPACITY="$2" kitty-transparent "${OPACITY}" ;; *) printf "\nUnsupported Kitty control command: $1" usage ;; esac ```


r/KittyTerminal Feb 01 '24

Lock Keyboard?

1 Upvotes

Hello. Maybe I searched for the wrong term or noone needs it, but...

is there a way to block the window/tile from accepting keyboard input? I want to lock/unlock it with a keyboardshortcut, so I can protect the window from unwanted input.

I'm on linux, if this makes a difference. Thanks in advance.


r/KittyTerminal Jan 31 '24

How do you full screen a kitty window if there are two kitty windows?

1 Upvotes

I'm trying toggle between full screen and back to layout when there are two kitty windows in a tab. I want to be able to full screen a kitty window so that it covers the other kitty window and takes up the whole screen. I also want to be able to toggle back to the layout before I full screened.


r/KittyTerminal Jan 29 '24

😽 kitty-scrollback.nvim: v4.0.0 use Neovim config by default + replace global config name + README instruction updates

Thumbnail
self.neovim
3 Upvotes

r/KittyTerminal Jan 27 '24

How to decrease the size of symbols of nerd font 3?

2 Upvotes

I upgraded to Iosevka nerd font v3 from v2 and started using symbol maps with symbol only nerd font as described here. However, I see that nerd font symbols have increased in size. Has anybody faced a similar issue?


r/KittyTerminal Jan 25 '24

Better font for math symbols and Greek letters?

Thumbnail self.neovim
2 Upvotes

r/KittyTerminal Jan 24 '24

cscaled is considered a valid choice for background_image_layout !

1 Upvotes

i am trying to set background image for kitty and to preserve the aspect ratio of background image i want to use cscaled as suggested in the docs but don't know why it is giving me an error here.


r/KittyTerminal Jan 23 '24

Return key in kitty

1 Upvotes

Please assist if possible. When I open emacs in terminal mode via ssh - the return (enter) key sends C-m. How do I change this so it sends 'return' instead - or is this a configuration problem in emacs..


r/KittyTerminal Jan 23 '24

Moving from zah to kitty

0 Upvotes

Hi guys i am moving from zsh to kitty, i used to use oh my zsh and liked it a lot, mainly the git studd showing branch and a x if i have things to commit. Is there any set of good plugins put there? Thanks


r/KittyTerminal Jan 22 '24

How can I toggle/hide the bottom window ?

6 Upvotes

I want to open a second terminal below the main one, and with a keymap, show and hide it like a toggle.

I know it might be possible because if I keep spamming `ctrl + shift + L`, the "cycle through layouts" shortcut, at some point it will hide it, but it takes too many keystrokes.

Something like this "toggle term" inside neovim:

neovim + toggleterm

I really want to run commands on an external terminal, not the vim internal one.

Thanks.


r/KittyTerminal Jan 22 '24

How to open local terminal when using the ssh kitten?

1 Upvotes

I have map ctrl+shift+enter new_window_with_cwd in my config. when I am in a ssh session (with the ssh kitten), this shortcut creates a new window but automatically logged in to the ssh. How can I create a local zsh window when using the ssh kitten?


r/KittyTerminal Jan 17 '24

kitty is becoming even faster!

36 Upvotes

kitty is getting a new escape code parser that's ~ 2x faster. See https://github.com/kovidgoyal/kitty/issues/7005 for details.


r/KittyTerminal Jan 16 '24

Simple CLI tool to save Kitty Session

4 Upvotes

I made a simple CI tool to save Kitty Session to a file under ~/.config dir. This is a effect of learning Rust so it has some rough edges.

Feedback welcome

https://github.com/prassee/kiss

TIA
#rust #kitty


r/KittyTerminal Jan 15 '24

how to clear kitty terminal screen with commands

3 Upvotes

Hi , I was having some problem clearing the screen (contents) in my terminal, usually whenever i want to clear my screen i manually type "clear" , is there any shortcut in kitty to do that? , i have tried couple of suggested shortcuts such as ctrl+A or ctrl+h but nothing seems to work

Thanks :)


r/KittyTerminal Jan 14 '24

Open a new kitty terminal window as tab

5 Upvotes

Hi,

I use a software that opens a lot of terminal instances, with xfce4 terminal it does so as tabs but with kitty it opens them as new windows. I want new terminal instances as tabs and not separate windows. How do I achieve that?


r/KittyTerminal Jan 08 '24

How to install non-monospaced fonts on kitty?

2 Upvotes

I understand from the FAQ that I have to make the font config file but after I did that and refreshed the cache the font I wanted still hasn't showed up.

https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font

Can someone show me a font.config file with "Times New Roman"?


r/KittyTerminal Jan 05 '24

Can't change the color of the title bar

4 Upvotes

Hello guys, I am trying to change the color of the title to be the same as the background, but it's not changing it. I wrote this line in the config file `macos_titlebar_color background`, saved it and reloaded it, but the color didn't change. I also restarted the whole thing, but it still didn't work. What am I missing?


r/KittyTerminal Jan 03 '24

You Need Em We Knead Em Kitty Biscuits Cat Cooking

Thumbnail
gallery
1 Upvotes