- Rename middle-click-reader to read-aloud service - Change hotkey from Ctrl+middle-click to Alt+R - Replace edge-tts with Piper TTS for local neural voices - Update desktop and service files - Add piper-tts dependency - Update tests and setup scripts
29 lines
843 B
Bash
Executable File
29 lines
843 B
Bash
Executable File
#!/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 ""
|