Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Layout cases in the Notification | Ubuntu App Developer document states that

... using non-existing (stock-)icon-names ... use one of the new icon-name (see icons) ...

and that this (icons at http://wiki.ubuntu.com/mhall119/devportal/notify-osd#icons) only makes casual reference, via the examples, to

... -i notification-message-im
... -i notification-network-wireless-disconnected

Presumably

... -i notification-network-wireless-connected

is also one?
Confirmed via: (interesting icon)

notify-send "WiFi icon test" -i notification-network-wireless-connected

What other ones are there?

(note that the icons link in the source:
wiki.ubuntu.com/mhall119/devportal/notidy-osd#icons
incorrectly spells notify as notidy)


As a consequent of the implications of this answer:

Where are the stock-icon-names defined for the unity-panel-service indicators and notify-OSD?

the icons in the above examples could then be found here:
- file:///usr/share/notify-osd/icons/gnome/scalable/status/
- file:///usr/share/notify-osd/icons/hicolor/scalable/status/

However,while there was no icon file named notification-network-wireless-connected that string displays notification-network-wireles.svg as does notification-network-wireless-gobledeegook!

Bookmark:
Where are the stock-icon-names defined for the unity-panel-service indicators and notify-OSD?

share|improve this question

1 Answer 1

up vote 23 down vote accepted

notify-send uses icon from the /usr/share/icons/gnome/32x32 (& also /usr/share/notify-osd/icons/...)

devav2@devav2:/usr/share/icons/gnome/32x32$ ls 
actions     apps        devices  emotes     places
animations  categories  emblems  mimetypes  status

Above results are the different icons sets available for notify-send

devav2@devav2:/usr/share/icons/gnome/32x32$ ls emotes/
face-angel.png        face-sad.png         stock_smiley-13.png
face-angry.png        face-sick.png        stock_smiley-15.png
face-cool.png         face-smile-big.png   stock_smiley-18.png
face-crying.png       face-smile.png       stock_smiley-1.png
face-devilish.png     face-smirk.png       stock_smiley-22.png
face-embarrassed.png  face-surprise.png    stock_smiley-2.png
face-glasses.png      face-tired.png       stock_smiley-3.png
face-kiss.png         face-uncertain.png   stock_smiley-4.png
face-laugh.png        face-wink.png        stock_smiley-5.png
face-monkey.png       face-worried.png     stock_smiley-6.png
face-plain.png        stock_smiley-10.png  stock_smiley-7.png
face-raspberry.png    stock_smiley-11.png  stock_smiley-8.png

Example:

notify-send -i face-glasses "I am wearing glasses"
notify-send -i face-laugh "I am happy"

You can use the stock icons from other directories as well (devices,places, etc)

Apart from this you can use custom locations for icons

Example: notify-send -i /usr/share/pixmaps/gnome-irc.png "Icon Test"

share|improve this answer
1  
Many Thanks - pursuing rationale of /usr/share/icons found example icons in OP here: file:///usr/share/notify-osd/icons/gnome/scalable/status/ and file:///usr/share/notify-osd/icons/hicolor/scalable/status/ –  george rowell Sep 17 '12 at 19:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.