#!/bin/bash # Setup script for middle-click read-aloud service set -e echo "Setting up middle-click read-aloud service..." # Create autostart directory mkdir -p "$HOME/.config/autostart" # Copy desktop file to autostart cp middle-click-reader.desktop "$HOME/.config/autostart/" echo "✓ Middle-click read-aloud installed to autostart" echo "" echo "To start now (without rebooting), run:" echo " uv run python src/dictation_service/middle_click_reader.py &" echo "" echo "Or reboot to start automatically." echo "" echo "Usage:" echo " 1. Highlight any text" echo " 2. Middle-click (press scroll wheel) to read it aloud" echo "" echo "To disable auto-start:" echo " rm ~/.config/autostart/middle-click-reader.desktop" echo ""