Skip to content

Instantly share code, notes, and snippets.

@El-Wumbus
Last active June 10, 2025 20:02
Show Gist options
  • Select an option

  • Save El-Wumbus/9333d7eaf16bad8f40370b5260aef816 to your computer and use it in GitHub Desktop.

Select an option

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)
#!/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