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

added linux support #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

LordH3lmchen
Copy link

makefile and desktop-file modified to install linux icon.

it requires image-magick to scale the image. This should work on the most common linux desktops.

makefile and desktop-file modified to install linux icon.

it requires image-magick to scale the image. This should work on the
most common linux desktops.
xdg-icon-resource install --size 512 kitty-light-512.png custom-kitty-icon
cp kitty.desktop ~/.local/share/applications/kitty.desktop


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One line between rules

@@ -1,3 +1,17 @@
all:
npx png2icons kitty-light.png kitty-light -icns && npx png2icons kitty-dark.png kitty-dark -icns

install-light-icon:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to linux-install-light-icon

cp kitty.desktop ~/.local/share/applications/kitty.desktop


install-dark-icon:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to linux-install-dark-icon

xdg-icon-resource install --size 512 kitty-dark-512.png custom-kitty-icon
cp kitty.desktop ~/.local/share/applications/kitty.desktop

uninstall-icon:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to linux-uninstall-icon


install-dark-icon:
magick kitty-dark.png -resize 512x512 kitty-dark-512.png
xdg-icon-resource install --size 512 kitty-dark-512.png custom-kitty-icon
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is xdg-icon-resource a common utility across Linux distros with different desktop environments?

@@ -18,6 +20,27 @@ An alternative MacOS application icon for the wonderful [Kitty](https://sw.kovid
$ rm /var/folders/*/*/*/com.apple.dock.iconcache; killall Dock
```

#### Linux

1. clone this repo
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize "C" in "clone"

2. Makefile should work with the most common Desktops

```bash
make install-dark-icon
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to linux-install-dark-icon

```
or
```bash
make install-light-icon
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to linux-install-light-icon

use

```bash
make uninstall-icon
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to linux-uninstall-icon

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

Successfully merging this pull request may close these issues.

2 participants