add icons to notifications

This commit is contained in:
2026-07-29 23:58:35 -07:00
parent 69d787aeb0
commit 5bc3a20f3d
2 changed files with 23 additions and 2 deletions
+10 -1
View File
@@ -5,6 +5,9 @@ import subprocess
import sys
CHATGPT_ICON = "/usr/share/icons/hicolor/512x512/apps/chatgpt-desktop.png"
def main() -> int:
if len(sys.argv) != 2:
return 0
@@ -27,7 +30,13 @@ def main() -> int:
message = message[:177] + "..."
subprocess.run(
[notify_send, "--app-name=Codex", "Codex", message],
[
notify_send,
"--app-name=Codex",
f"--icon={CHATGPT_ICON}",
"Codex",
message,
],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
check=False,