talk: use chiron.jpeg as notification icon
Replace generic audio-x-generic icon with chiron.jpeg fetched from S3 into the nix store at build time.
This commit is contained in:
@@ -2,12 +2,17 @@
|
|||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
writeShellScriptBin,
|
writeShellScriptBin,
|
||||||
|
fetchurl,
|
||||||
curl,
|
curl,
|
||||||
python3,
|
python3,
|
||||||
mpv,
|
mpv,
|
||||||
libnotify,
|
libnotify,
|
||||||
busybox,
|
busybox,
|
||||||
}: let
|
}: let
|
||||||
|
icon = fetchurl {
|
||||||
|
url = "https://s3.m3tam3re.com/public/chiron.jpeg";
|
||||||
|
hash = "sha256-LIIR3aqJ5ePsZuvVQxJ70c6yd+L85fLE5uY/fLE5Ypo=";
|
||||||
|
};
|
||||||
script = writeShellScriptBin "talk" ''
|
script = writeShellScriptBin "talk" ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -76,7 +81,7 @@
|
|||||||
exec "$NOTIFY" \
|
exec "$NOTIFY" \
|
||||||
--action=cancel="⛔ Abbrechen" \
|
--action=cancel="⛔ Abbrechen" \
|
||||||
--urgency=normal \
|
--urgency=normal \
|
||||||
--icon=audio-x-generic \
|
--icon=${icon} \
|
||||||
"🔊 KI Antwort" \
|
"🔊 KI Antwort" \
|
||||||
"$TEXT" > "$ACTION_FILE" 2>/dev/null
|
"$TEXT" > "$ACTION_FILE" 2>/dev/null
|
||||||
) &
|
) &
|
||||||
|
|||||||
Reference in New Issue
Block a user