From 79832c16e2db2bef79c03aa5eba7cf863436dd67 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 23 Jul 2024 16:48:15 +0200 Subject: 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. --- notify.c | 4 ++-- 1 file 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; -- cgit v1.3