#!/bin/bash # Setup script for read-aloud service (Alt+R) set -e echo "Setting up read-aloud service (Alt+R)..." # Install systemd service mkdir -p "$HOME/.config/systemd/user" cp read-aloud.service "$HOME/.config/systemd/user/" # Reload systemd and enable service systemctl --user daemon-reload systemctl --user enable read-aloud.service systemctl --user start read-aloud.service echo "✓ Read-aloud service installed and started" echo "" echo "Usage:" echo " 1. Highlight any text" echo " 2. Press Alt+R to read it aloud" echo "" echo "Service management:" echo " systemctl --user status read-aloud.service # Check status" echo " systemctl --user restart read-aloud.service # Restart" echo " systemctl --user stop read-aloud.service # Stop" echo " systemctl --user disable read-aloud.service # Disable autostart" echo ""