mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
osc: kitty notifications: implement s=silent
This implements part of the new 's' (sound) parameter; the 'silent'
value. When s=silent, we set the ${muted} template argument to
"true". It is intended to set the 'suppress-sound' hint:
notify-send --hint BOOLEAN:suppress-sound:${muted}
This commit is contained in:
parent
a3a35f2c8c
commit
6349262491
6 changed files with 43 additions and 11 deletions
|
|
@ -459,6 +459,11 @@ Note: do not set *TERM* here; use the *term* option in the main
|
|||
below. Can be used together with e.g. notify-send's
|
||||
*--replace-id* option.
|
||||
|
||||
_${muted}_ is replaced by either *true* or *false*, depending
|
||||
on whether the notification has requested all notification
|
||||
sounds be muted. It is intended to set the *suppress-sound*
|
||||
hint (with e.g. notify-send's *--hint* option).
|
||||
|
||||
_${action-argument}_ will be expanded to the
|
||||
*command-action-argument* option, for each notification
|
||||
action. There will always be at least one action, the
|
||||
|
|
@ -568,6 +573,7 @@ xdgtoken=95ebdfe56e4f47ddb5bba9d7dc3a2c35
|
|||
--urgency ${urgency}++
|
||||
--expire-time ${expire-time}++
|
||||
--hint STRING:image-path:${icon}++
|
||||
--hint BOOLEAN:suppress-sound:${muted}++
|
||||
--replace-id ${replace-id}++
|
||||
${action-argument}++
|
||||
--print-id++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue