#!/bin/bash # Installation script for GNOME Notification Forwarder set -e echo "Installing GNOME Notification Forwarder to Bark..." echo # Make the main script executable chmod +x notify_forwarder.py echo "✓ Made notify_forwarder.py executable" # Create systemd user directory mkdir -p ~/.config/systemd/user echo "✓ Created systemd user directory" # Copy service file cp notify-forwarder.service ~/.config/systemd/user/ echo "✓ Copied service file to ~/.config/systemd/user/" # Reload systemd systemctl --user daemon-reload echo "✓ Reloaded systemd" echo echo "Installation complete!" echo echo "Next steps:" echo "1. Install dependencies:" echo " sudo pacman -S python-dbus python-gobject python-requests" echo echo "2. Start the service:" echo " systemctl --user start notify-forwarder.service" echo echo "3. Enable auto-start on login:" echo " systemctl --user enable notify-forwarder.service" echo echo "4. Check status:" echo " systemctl --user status notify-forwarder.service" echo echo "5. View logs:" echo " journalctl --user -u notify-forwarder.service -f"