Last active
June 10, 2025 20:02
-
-
Save El-Wumbus/9333d7eaf16bad8f40370b5260aef816 to your computer and use it in GitHub Desktop.
plex-richpresence (https://github.com/Arno500/plex-richpresence) - Discord Rich Presence for Plex Install script (meant to go in ~/.local/src)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env fish | |
| if not test -d ./plex-richpresence | |
| git clone https://github.com/Arno500/plex-richpresence | |
| end | |
| cd ./plex-richpresence | |
| git fetch --tags && git checkout (git describe --tags (git rev-list --tags --max-count=1)) | |
| go build -tags unix -ldflags='-s -w' | |
| and install -Dm755 ./plex-richpresence ~/.local/bin/plex-richpresence | |
| if not test -f ~/.config/systemd/user/plex-richpresence.service | |
| echo >~/.config/systemd/user/plex-richpresence.service "\ | |
| [Unit] | |
| Description=Discord rich presence for Plex | |
| [Service] | |
| Type=exec | |
| ExecStart=%h/.local/bin/plex-richpresence | |
| Restart=on-failure | |
| [Install] | |
| WantedBy=default.target" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment