-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·28 lines (23 loc) · 1.12 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·28 lines (23 loc) · 1.12 KB
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
28
#!/bin/bash
set -e
echo "==> Installing razer-effect..."
pip install --user --break-system-packages .
echo "==> Ensuring openrazer-daemon is enabled..."
systemctl --user enable openrazer-daemon.service 2>/dev/null || true
systemctl --user start openrazer-daemon.service 2>/dev/null || true
sleep 2
echo "==> Installing systemd user service..."
mkdir -p ~/.config/systemd/user
cp razer-effect.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now razer-effect.service
echo "==> Installing icon and desktop entry..."
mkdir -p ~/.local/share/icons/hicolor/scalable/apps
cp razer-effect.svg ~/.local/share/icons/hicolor/scalable/apps/
gtk-update-icon-cache ~/.local/share/icons/hicolor/ 2>/dev/null || true
mkdir -p ~/.local/share/applications
GUI_PATH=$(which razer-effect-gui)
sed "s|Exec=razer-effect-gui|Exec=$GUI_PATH|" razer-effect-gui.desktop > ~/.local/share/applications/io.github.FrkAk.razer-effect.desktop
echo "==> Done! Service is running and will start on login."
echo " GUI: razer-effect-gui (or search 'Razer Effect' in app launcher)"
echo " Status: systemctl --user status razer-effect"