-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·27 lines (21 loc) · 834 Bytes
/
install.sh
File metadata and controls
executable file
·27 lines (21 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# install.sh
#!/bin/bash
# Exit on error
set -e
echo "Setting up Audio Recorder..."
# Get project directory
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Create symbolic links
echo "Creating symbolic links..."
sudo ln -sf "${PROJECT_DIR}/bin/audio-recorder-toggle" /usr/local/bin/audio-recorder-toggle
mkdir -p ~/.config/systemd/user
ln -sf "${PROJECT_DIR}/config/audio-recorder.service" ~/.config/systemd/user/audio-recorder.service
mkdir -p ~/.local/share/applications
ln -sf "${PROJECT_DIR}/config/audio-recorder.desktop" ~/.local/share/applications/audio-recorder.desktop
# Reload systemd and start service
echo "Starting service..."
systemctl --user daemon-reload
systemctl --user enable audio-recorder
systemctl --user restart audio-recorder
echo "Setup complete!"
echo "Use Ctrl+Alt+R to toggle recording"