kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.46k stars 979 forks source link

Petition to change the official logo to this one #3618

Closed pocco81 closed 3 years ago

pocco81 commented 3 years ago

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 commented 3 years ago

dup of #3310

pocco81 commented 3 years ago

But it's not the same icon?

kovidgoyal commented 3 years ago

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

kutsan commented 2 years ago

@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 commented 2 years ago

... 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 commented 2 years ago

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 commented 11 months ago

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.