1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00
Files
DankMaterialShell/verify-notifications.sh
purian23 1355a77fd0 Implement icon for niri screenshots
- Fixed debug icon warning logic
- Add linux os environment script
2025-07-18 21:13:50 -04:00

46 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
echo "Waiting for notification service to be ready..."
# Wait for the notification service to be available
max_attempts=8
attempt=0
while [ $attempt -lt $max_attempts ]; do
if notify-send -a "test" "Service Ready Test" "Testing..." 2>/dev/null; then
echo "Notification service is ready!"
break
fi
echo "Attempt $((attempt + 1))/$max_attempts - waiting..."
sleep 2
attempt=$((attempt + 1))
done
if [ $attempt -eq $max_attempts ]; then
echo "Timeout waiting for notification service"
exit 1
fi
echo ""
echo "Running layout and functionality tests..."
echo ""
# Now run the actual tests
notify-send -a "firefox" "Test 1" "Firefox notification 1"
sleep 0.5
notify-send -a "firefox" "Test 2" "Firefox notification 2"
sleep 1
notify-send -a "MyCustomApp" "Custom 1" "Custom app notification 1"
sleep 0.5
notify-send -a "MyCustomApp" "Custom 2" "Custom app notification 2"
sleep 1
notify-send -a "code" "VS Code 1" "Code notification 1"
sleep 0.5
notify-send -a "code" "VS Code 2" "Code notification 2"
echo ""
echo "✅ All notifications sent successfully!"
echo ""