From d1d0d783499b14e1502b4a3d2420600d5d38828f Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Thu, 24 Oct 2024 00:00:15 +0700 Subject: [PATCH] ntfy-sh: added default app name and icon to notify-send command --- system/services/ntfy-sh.nix | 2 +- system/services/ntfy-sh.svg | 39 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 system/services/ntfy-sh.svg diff --git a/system/services/ntfy-sh.nix b/system/services/ntfy-sh.nix index bdb86e9..493253b 100644 --- a/system/services/ntfy-sh.nix +++ b/system/services/ntfy-sh.nix @@ -105,7 +105,7 @@ lib.mkMerge [ { default-host = "https://${domain}"; default-token = config.sops.placeholder."ntfy/tokens/tigor"; - default-command = ''${pkgs.libnotify}/bin/notify-send --category=im.received --urgency=normal "$title" "$message"''; + default-command = ''${pkgs.libnotify}/bin/notify-send --app-name="ntfy.sh" --icon="${./ntfy-sh.svg}" --category=im.received --urgency=normal "$title" "$message"''; } // cfg.client.settings ) diff --git a/system/services/ntfy-sh.svg b/system/services/ntfy-sh.svg new file mode 100644 index 0000000..7004f89 --- /dev/null +++ b/system/services/ntfy-sh.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +