diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-07-23 13:30:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-07-23 13:30:01 +0000 |
| commit | 55a4e59ef96227f23fa00e8c772804f67601567a (patch) | |
| tree | 5e31c19cb1cedbd6c567d27cead13bf559efaeca /misc.c | |
| parent | notify: consume_stdout(): fix ASAN warning (diff) | |
notify: if there's a symbolic icon name, use it
even if there's no graphical ID set.
In other words, if there *is* a graphical ID, use the icon cache. Only
if there is no graphical ID in the notification request do we fallback
to the symbolic name. This means no icon will be displayed if there's
no matching icon in the cache.
Some examples. You can either pre-load the cache (with inline PNG
data, a symbolic name, or both):
printf '\e]99;g=123:n=firefox:p=icon:e=1;<PNG data>\e\\'
printf '\e]99;g=123;this is a notification\e\\'
or
printf '\e]99;n=firefox;this is a notification\e\\'
Diffstat (limited to 'misc.c')
0 files changed, 0 insertions, 0 deletions
