-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: main
Are you sure you want to change the base?
Conversation
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 | ||
|
||
|
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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.