noti icon indicating copy to clipboard operation
noti copied to clipboard

Feature Request: custom icon in notification

Open pwittchen opened this issue 8 years ago • 5 comments

Hi,

First of all, cool project! Thanks!

It would be nice if it could be possible to set a custom icon for notification.

Regards, Piotr

pwittchen avatar Jan 24 '16 15:01 pwittchen

The way noti is currently written, this is impossible because AppleScript doesn't expose the necessary APIs to allow this.

However, this might be possible in v2.

variadico avatar Jan 26 '16 04:01 variadico

Where would you get the images from then? and this can easily be done in notify-send.

vyasgiridhar avatar Aug 31 '16 16:08 vyasgiridhar

When this comment was first written, noti looked very different. This is now possible.

On macOS: We'd probably need a path to an image file. Or just use some app icon. On Linux/FreeBSD: Also image path. Or, do you know if all distros ship some set of default icons?

variadico avatar Aug 31 '16 21:08 variadico

The Image name for each icon are saved in .desktop files in locations depending upon the Desktop environment used.

This file contains the executable command and the icon name. We can create a cache to store the icon path.

vyasgiridhar avatar Sep 04 '16 02:09 vyasgiridhar

I would like this feature as well. Especially for Slack, it would be great if we could use something like NOTI_SLACK_ICON=':emoji:'

joeynotjoe avatar Nov 24 '18 14:11 joeynotjoe