aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-07-26 16:32:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-07-26 16:32:42 +0000
commit6d1d3324eb5b91416b6f034b91bfc67a28f32428 (patch)
tree92e61c53b386f8c0c0e18ee44050c8c9b5d6122a
parentscripts: various ruff fixes (diff)
doc: add fyi example configuration, as an alternative to notify-send
Closes #2401
-rw-r--r--doc/foot.ini.5.scd42
-rw-r--r--foot.ini5
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