Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Petition to change the official logo to this one #3618

Closed
pocco81 opened this issue May 13, 2021 · 7 comments
Closed

Petition to change the official logo to this one #3618

pocco81 opened this issue May 13, 2021 · 7 comments

Comments

@pocco81
Copy link

pocco81 commented May 13, 2021

Granted, this is not a real feature for the terminal it self. I just wanted to know if it would be possible to change the official logo to this one:

Logo

This was originally posted in r/KittyTerminal. Oh and also, this the the repo of the author: https://github.com/DinkDonk/kitty-icon

@kovidgoyal
Copy link
Owner

dup of #3310

@pocco81
Copy link
Author

pocco81 commented May 13, 2021

But it's not the same icon?

@kovidgoyal
Copy link
Owner

yes, but my reason for not changing the icon remains the same.

@kutsan
Copy link

kutsan commented Feb 14, 2022

@kovidgoyal You should really reconsider changing the logo. I understand the emotional aspect of it but still...

Or maybe adding an option to changing the current logo to alternative ones such as this one to make community and yourself happy?

@page-down
Copy link
Contributor

page-down commented Feb 14, 2022

... to changing the current logo to alternative ones ...

This has been listed in the official FAQ, with detailed steps to do it. (Just drag and drop the icon.)

https://sw.kovidgoyal.net/kitty/faq/#i-do-not-like-the-kitty-icon

You can't change it with options under macOS, you need to compile, package, and sign your own app.

On Linux, just replace the logo png image.

@Luflosi
Copy link
Contributor

Luflosi commented Feb 14, 2022

Well, if you have the logo in the .icns format, you can select the kitty app in Finder, press +i and drag&drop the logo over the old logo at the top, no need to recompile anything.
The tricky part is to convert the logo into the .icns format. The easiest is probably to clone the kitty repo, replace logo/kitty.svg and logo/kitty-framed.svg with your own versions, then execute logo/make.py and finally iconutil -c icns logo/kitty.iconset -o logo/kitty.icns.

@elzii
Copy link

elzii commented Dec 3, 2023

Here's some icons I made awhile ago, and just vectorized the one posted here. They are in 512x512 canvases with templated border radiuses and shadows similar to iOS icons. I'll attach both SVG vectors and PNG versions. Personally I don't use these, and prefer a little Lamda λ symbol in the color of kiTTY.

Including as well a script I wrote awhile ago to convert PNGs to ICNS. If you neeed ICO, use ConvertIO or similar websites. But I believe inside kitty.app/Content/Resources/ dir requires icons.

NB: You'll need to replace the .icns file if kitty updates. You could automate this with a script. The drag-drop on ⌘+I info panel creates a Icon$'\r' (Like .DS_Store, but is a special file macOS uses for overwriting default app icons via the info pane. I need to learn more about this file, as it is peculiar: 0 bytes, no contents -- functions like symlink but no tool I've come across shows more details.)

The aforementioned bash script to convert PNGs to ICNS, convenentily name png2icns and put in your $PATH

#!/usr/bin/env bash

OS=$(uname -s)
INPUT=$1

if [[ -z $1 ]]; then
  echo -e "\033[1m\033[31mERROR \033[22m\033[39m Missing position argument: <PNG_FILE>"
  exit 1
fi

FILE_BASENAME=$(basename $1)
OUTPUT_ICONSET="$PWD/${FILE_BASENAME}.iconset"
OUTPUT_ICNS=$(echo "$OUTPUT_ICONSET" | sed -E 's/iconset/icns/g; s/\.png//g')

rm -rf $OUTPUT_ICONSET
mkdir -p $OUTPUT_ICONSET

declare -a SIZES=(
  16
  32
  64
  128
  256
  512
)

echo -e "📦 Creating .iconset for '$FILE_BASENAME'." >&2

for s in ${SIZES[@]}; do
  printf "   %sx%s\n" ${s} ${s}
  sips -z ${s} ${s} $INPUT --out "${OUTPUT_ICONSET}/icon_${s}x${s}.png" 1>/dev/null
done

echo -e "✅ Done creating ${OUTPUT_ICONSET}" >&2

# iconutil is a bsd unix tool available to both, should come included in macOS
iconutil --convert icns --output $OUTPUT_ICNS $OUTPUT_ICONSET
echo -e "✅ Converted .iconset to .icns -> $OUTPUT_ICNS" >&2

open_in_finder() {
  open -na /System/Library/CoreServices/Finder.app $@
}
open_file() {
  if [[ ${OS} == "Darwin" ]]; then
    open "$@"
  else
    xdg-open "$@"
  fi
}

# Remove the folder we used to create various sizes
rm -R $OUTPUT_ICONSET

# Copy to clipboard
if [[ ${OS} == "Darwin" ]]; then
  echo "$OUTPUT_ICNS" | pbcopy
else
  echo "$OUTPUT_ICNS" | clip-copy
fi


# Pass --open flag to open in a File Explorer
if [[ "$@" == *"--open"* ]]; then
  open_file "$OUTPUT_ICNS"
fi

term-ktty-prompt
term-ktty-prompt
term-kittymeow-prompt
term-kittymeow-prompt
term-tabby-kitty
term-tabby-kitty
term-meow-v2
term-meow-v2
term-meow-v1
term-meow-v1

Some include the prompt inside the cat, while others do not. There may appear to be duplicates, but remember that every second one is an SVG while the first is a PNG.

🚀 Rock on kiTTY users. Quietly the best GPU accelerated terminal out there. @kovidgoyal Thanks for all your hard work. I'd like to share some of the integrations (session sharing and restoring, using icat as a standalone image previewer and some more fun stuff). Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants