aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-23 14:48:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-23 14:48:15 +0000
commit79832c16e2db2bef79c03aa5eba7cf863436dd67 (patch)
treed0d500bf9ec7be4e22a302c0c08707d22bb93720
parentnotify: don't focus/report on notification dismissal (diff)
notify: name the activation action 'default'
This is less unique, but also works better with notification daemons that trigger the 'default' action when e.g. clicked.
-rw-r--r--notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/notify.c b/notify.c
index d12c3081..9cf44251 100644
--- a/notify.c
+++ b/notify.c
@@ -54,7 +54,7 @@ consume_stdout(struct notification *notif, bool eof)
} else if (!eof)
break;
- if (strcmp(line, "activate-foot") == 0)
+ if (strcmp(line, "default") == 0)
notif->activated = true;
/* Check for 'xdgtoken=xyz' */
@@ -231,7 +231,7 @@ notify_notify(struct terminal *term, struct notification *notif)
(const char *[]){
term->app_id ? term->app_id : term->conf->app_id,
term->window_title, icon_name_or_path, title, body, urgency_str,
- "activate-foot=Click to activate"},
+ "default=Click to activate"},
&argc, &argv))
{
return false;