Skip to content

Enhancement: Add desktop notifications to AEA monitor script #3

@0xrinegade

Description

@0xrinegade

Enhancement Description

The AEA monitor script currently only logs messages to the terminal when new messages are detected. Adding desktop notification support would greatly improve the user experience by providing visual alerts even when the terminal is not in focus.

Proposed Changes

Add optional desktop notification support to scripts/aea-monitor.sh when new AEA messages are detected:

# Optional: Send desktop notification if available
if command -v notify-send &> /dev/null; then
    notify-send "AEA Monitor" "New messages in $project_name" -i dialog-information -t 10000
fi

Benefits

  1. Improved User Experience: Users get immediate visual feedback about new messages without constantly watching the terminal
  2. Non-intrusive: Only triggers if notify-send is available (Linux desktop environments)
  3. Configurable: Can be easily disabled or customized
  4. Cross-platform potential: Could be extended to support macOS (osascript) and Windows notifications

Implementation Details

The enhancement has been tested in a production environment and works reliably. The notification:

  • Shows for 10 seconds (configurable)
  • Displays the project name where messages are waiting
  • Uses standard dialog-information icon
  • Only triggers when notify-send command is available

Additional Considerations

Future enhancements could include:

  • Configuration option to enable/disable notifications
  • Custom notification icons for different message types
  • Sound alerts for urgent messages
  • Integration with other notification systems (Growl, Windows Toast, etc.)

Testing

Tested on Ubuntu 22.04 with GNOME desktop environment. The notification appears correctly and doesn't interfere with the monitor's core functionality.

Would you like me to submit a pull request with this enhancement?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions