From 6d1d3324eb5b91416b6f034b91bfc67a28f32428 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 26 Jul 2026 18:32:42 +0200 Subject: doc: add fyi example configuration, as an alternative to notify-send Closes #2401 --- doc/foot.ini.5.scd | 42 +++++++++++++++++++++++++++++------------- foot.ini | 5 +++++ 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 66daaea9..ce733b77 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -730,19 +730,35 @@ xdgtoken=95ebdfe56e4f47ddb5bba9d7dc3a2c35 - the user triggered the first custom action, "1" Default: _notify-send++ - --wait++ - --app-name ${app-id}++ - --icon ${app-id}++ - --category ${category}++ - --urgency ${urgency}++ - --expire-time ${expire-time}++ - --hint STRING:image-path:${icon}++ - --hint BOOLEAN:suppress-sound:${muted}++ - --hint STRING:sound-name:${sound-name}++ - --replace-id ${replace-id}++ - ${action-argument}++ - --print-id++ - -- ${title} ${body}_. + --wait++ + --app-name ${app-id}++ + --icon ${app-id}++ + --category ${category}++ + --urgency ${urgency}++ + --expire-time ${expire-time}++ + --hint STRING:image-path:${icon}++ + --hint BOOLEAN:suppress-sound:${muted}++ + --hint STRING:sound-name:${sound-name}++ + --replace-id ${replace-id}++ + ${action-argument}++ + --print-id++ + -- ${title} ${body}_. + + Alternative: **fyi** example configuration: _fyi++ + --wait++ + --app-name ${app-id}++ + --icon ${app-id}++ + --category ${category}++ + --urgency ${urgency}++ + --expire-time ${expire-time}++ + --hint string:image-path:${icon}++ + --hint boolean:suppress-sound:${muted}++ + --hint string:sound-name:${sound-name}++ + --replaces ${replace-id}++ + ${action-argument}++ + --print-token++ + -- ${title} ${body}_. + *command-action-argument* String to use with *command* to enable passing action/button names diff --git a/foot.ini b/foot.ini index 81419d88..b733c6a4 100644 --- a/foot.ini +++ b/foot.ini @@ -57,8 +57,13 @@ # command-focused=no [desktop-notifications] +# The default: # command=notify-send --wait --app-name ${app-id} --icon ${app-id} --category ${category} --urgency ${urgency} --expire-time ${expire-time} --hint STRING:image-path:${icon} --hint BOOLEAN:suppress-sound:${muted} --hint STRING:sound-name:${sound-name} --replace-id ${replace-id} ${action-argument} --print-id -- ${title} ${body} # command-action-argument=--action ${action-name}=${action-label} + +# Or, using fyi: +# command=fyi --wait --app-name ${app-id} --icon ${app-id} --category ${category} --urgency ${urgency} --expire-time ${expire-time} --hint string:image-path:${icon} --hint boolean:suppress-sound:${muted} --hint string:sound-name:${sound-name} --replaces ${replace-id} ${action-argument} --print-token -- ${title} ${body} +# command-action-argument=--action ${action-name}:${action-label} # close="" # inhibit-when-focused=yes -- cgit v1.3