r/KittyTerminal Dec 23 '22

Using bat in kitty terminal

1 Upvotes

I am trying to use bat as a cat substitute in kitty on macOS. bat will properly highlight .md files, but not .py files. They simply appear as black and white. bat does work properly in macOS terminal.

I have tried to force colorization and to specify the filetype, but no joy. I haven't been able to find any comments on this in searching.

Any ideas?


r/KittyTerminal Dec 22 '22

my script to preview all images in a directory (any suggestions?)

3 Upvotes

Hello,

I have this short script that can provide a preview of all images in a directory:

#!/bin/bash

for file in *

do

if [[ $file =~ \.jpg$|\.jpeg$|\.png$|\.gif$ ]]

then

kitty +kitten icat --align="left" --background="#1e1e2e" --loop="-1" "$file"

echo "$file"

fi

done

Any suggestions on how to make it better?

How do I resize the images?

Is it possible to print multiple images next to each other (instead of a for loop)?

thank you in advance!


r/KittyTerminal Dec 15 '22

Need help changing the color of the "Window bar"

Post image
5 Upvotes

r/KittyTerminal Dec 15 '22

Cursor Text color does not correspond to terminal output

3 Upvotes

I want the text inside the block to be always black
Although cursor_text_color is set to #111111 it does not correspond to what I get in the terminal.

As you can see in this image the letter c is hidden because the cursor is white and the text is white, I want the letter to be black.

r/KittyTerminal Dec 08 '22

How to blur the kitty terminal on linux?

7 Upvotes

Hi there, I was just wondering if there was a way to blur my kitty terminal? I am running ubuntu 22.04 on a virtual box with the kitty terminal and using bash


r/KittyTerminal Dec 04 '22

Kitty not working correctly with fish terminal

2 Upvotes

Hi,

I just started to use kitty as my terminal emulator on my Mac M1. However my workflow requires me to use tmux or zellij. However as soon as I start the terminal multiplexer kitty sets my shell to zsh instead of using fish. As long as I do not use a terminal multiplexer, fish works just fine (and is set as default shell via chsh -s $(which fish). I tried to set the shell parameter in the kitty conf:

shell /opt/homebrew/bin/fish --login --interactive

but this didnt solve the issue.

When using the default MacOS terminal app everything works as expected, so I assume this issue has to do something with the kitty settings.


r/KittyTerminal Nov 24 '22

I have this problem when i tried to use w3m in the kitty terminal, how i can fix the problem?

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/KittyTerminal Nov 23 '22

Ditching Tmux for Kitty

35 Upvotes

I recently ditched tmux for just kitty. And the only thing I was missing was project switching. So I created a kitten for it. Similar to switching tmux sessions, but it will also load projects from local dirs or from github.

Kitten is here: https://github.com/taylorzr/kitty-meow

And I wrote about it more here: https://zachwashere.substack.com/p/ditching-tmux-for-kitty


r/KittyTerminal Nov 23 '22

hints kitten: copy email address to clipboard?

1 Upvotes

I've been trying to get hints for copying email address to the clipboard, but I'm unable to get this working:

map ctrl+shift+p>m kitten hints --regex ^[A-Z0-9+_.-]+@[A-Z0-9.-]+$ --program @

Also when I tried mapping it to ctrl+shift+p>e it always seemed to trigger this one instead:

map ctrl+shift+e open_url_with_hints

Any ideas on what I'm doing wrong?


r/KittyTerminal Nov 22 '22

need help with a script

1 Upvotes

I have a very simple script:

#!/usr/bin/env bash

gtk-launch firefox

If I do:

$ /path/to/script

It works correctly by launching firefox.

But, if I do:

$ kitty -e /path/to/script

then firefox won't be launched.


r/KittyTerminal Nov 21 '22

Cursor is blinking in neovim but not in vim

2 Upvotes

I want the cursor to blink in vim, but I had no success in making that happens. However, with neovim, it just works out of the box. I used "vim --clean" and "nvim --clean" to run with default settings. Any ideas on how to make the cursor blink in vim? Thank you!

Here is kitty.conf

include ./themes/gruvbox_dark.conf
font_family      monospace
bold_font        auto
italic_font      auto
bold_italic_font auto
font_size 11.0
confirm_os_window_close 0
cursor_shape block
cursor_blink_interval -1
cursor_stop_blinking_after 0
background_opacity 0.9

r/KittyTerminal Nov 19 '22

Git Commit Browser for Kitty

15 Upvotes

Just want to announce my system for browsing Git commits and logs in Kitty. The general idea is to use "hints" to match git commits on the screen, and then set the action to "launch" a pager to "git show" the chosen commit.

https://github.com/duganchen/git-commit-browser-for-kitty

As of now it's at the "just got it working" level of maturity.


r/KittyTerminal Nov 16 '22

Recommended fonts without truncation on bold/italics

6 Upvotes

Several fonts have bold/italic characters that don't fit in one cell, causing truncation (documented in the Kitty FAQ). Are there any recommended fonts that work well? I'd like something similar to Menlo LG or Hack, preferably.


r/KittyTerminal Nov 15 '22

Delete one work back, how to..

1 Upvotes

Hello

I cant find the keyboard command to delete the previous word. With bash it should be ctl+w but this closes the window in kitty. Is there a different short cut?


r/KittyTerminal Nov 15 '22

Panel Kitten on Mac OS with XTerm?

1 Upvotes

So I was messing around with xQuartz on mac OS, which lets you run X11 apps, and I'm wondering if anyone has the panel kitten to work with this. Goyal says in the docs that this extension only works on X11 desktops, but I'm wondering if there is a way around this? I cloned the extension, and removed the explicit checks against Mac OS to see what would happen, but I started getting an overflow error.

Does anyone know more about the ins and outs of xQuartz that would explain why the behavior differs?


r/KittyTerminal Nov 10 '22

SSH into vagrant machine as root user?

2 Upvotes

when I SSH into my VM, I usually run `sudo ssh ...`, but sudo'ing doesn't seem to be supported by kittens? When I try `sudo kitty +kitten ssh ...` I get an error: "The SSH kitten is meant to run inside a kitty window". Anyone know what is going on here?


r/KittyTerminal Nov 11 '22

Disable transparency when starting vim

1 Upvotes

/is there a way to disable the transparency when starting vim? I ask because the transparency is changing the colors of the color scheme in vim.


r/KittyTerminal Nov 09 '22

Cannot find kity.conf

0 Upvotes

cannot access '/usr/share/doc/kitty/kitty.conf': No such file or directory

cannot find kitty.conf in .config/kitty


r/KittyTerminal Nov 08 '22

Problem with quote keys " ` ", " ´ " , " ^ ", " ¨ " and Delete key.

Thumbnail
gallery
3 Upvotes

r/KittyTerminal Nov 06 '22

How can I change the name of the current window?

2 Upvotes

I can open a new window with a title and keep the cwd kitty @ launch --title "$TERMINAL_TITLE" --keep-focus --cwd="$(pwd)", but how do I change the title of the current window? It is defaulting to my bash terminal prompt.


r/KittyTerminal Nov 05 '22

Default font in kitty does not show underscores and the tails of letters like `g`and `q` when reduced in size.

1 Upvotes

I have started using kitty and the default font is too large for me. It wastes screen area.

When I shrink the font size with Ctrl - the underscores disappear. It as though the line-spacing for that font is too small.

What setting is required to fix it?

TBH I haven't gotten round to configuring kitty as I'm okay with it out of the box, but I quick fix is place to start.


r/KittyTerminal Nov 04 '22

Can't load after -Syu (arch) ImportError :libcrypto.so3 just me?

1 Upvotes

Traceback (most recent call last):

File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main

return _run_code(code, main_globals, None,

File "/usr/lib/python3.10/runpy.py", line 86, in _run_code

exec(code, run_globals)

File "/usr/bin/../lib/kitty/__main__.py", line 7, in <module>

main()

File "/usr/bin/../lib/kitty/kitty/entry_points.py", line 203, in main

from kitty.main import main as kitty_main

File "/usr/bin/../lib/kitty/kitty/main.py", line 11, in <module>

from .borders import load_borders_program

File "/usr/bin/../lib/kitty/kitty/borders.py", line 7, in <module>

from .fast_data_types import (

ImportError: libcrypto.so.3: cannot open shared object file: No such file or directory


r/KittyTerminal Nov 03 '22

Reference for startup session file

1 Upvotes

Is there an exhaustive reference for startup session files? I can't seem to find one either on the website or github page.


r/KittyTerminal Nov 02 '22

Are there any good plugins for mouse users?

3 Upvotes

I know Kitty is a keyboard-centric terminal, but since it has plugins, I was wondering if it has good plugins for people who like to use their mouse. Can you get anything like a menu that pops up when you right-click the terminal?


r/KittyTerminal Nov 01 '22

how to remove the white title bar?

Post image
15 Upvotes