We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c75091 commit 3f10668Copy full SHA for 3f10668
.gemini/hooks/notify.py
@@ -30,6 +30,23 @@ def notify_user():
30
stderr=subprocess.DEVNULL,
31
stdout=subprocess.DEVNULL
32
)
33
+
34
+ # Try to play a notification sound
35
+ try:
36
+ # Check for common system sounds
37
+ sound_file = "/usr/share/sounds/freedesktop/stereo/message.oga"
38
+ if not os.path.exists(sound_file):
39
+ sound_file = "/usr/share/sounds/freedesktop/stereo/complete.oga"
40
41
+ # Use paplay (PulseAudio/PipeWire) if available
42
+ subprocess.run(
43
+ ["paplay", sound_file],
44
+ check=False,
45
+ stderr=subprocess.DEVNULL,
46
+ stdout=subprocess.DEVNULL
47
+ )
48
+ except Exception:
49
+ pass
50
except Exception:
51
# Gracefully handle cases where notify-send is not installed or fails
52
pass
0 commit comments