1
0
Fork
You've already forked rpc
0
Personal collection of Discord Rich Precence scripts.
  • Python 100%
Find a file
2022年07月02日 10:32:38 +02:00
music.py Adding comments, simplifying the start variable and fixing bug with thumbnails on YouTube 2022年07月01日 23:45:11 +02:00
nano.py Fixing start thingy + adding some other languages 2022年07月02日 10:32:15 +02:00
README.md Adding info about nano.py 2022年07月02日 09:02:28 +02:00
system.py Fixing battery thingy + fixing the fake png of Arch 2022年07月02日 10:32:38 +02:00

Personal collection of RPC scripts

Those scripts requires a few packages:

  • python3
  • pypresence

They might also require some additional packages or modifications to make some scripts work.

Main documentation: PyPresence, "Activities" (Discord official support page, good overview)

music.py

This script shows what you're streaming (in my case in mpv from YouTube). It also shows a button for people to listen to the same thing as you and the thumbnail of the video you're watching. Currently only really works well with YouTube, but can also work with bandcamp, soundcloud, etc.

Additional packages: playerctl and mpv-mpris (or other stuff for different players)

Additional documentation: playerctl, mpris metadata specs and playerctl's git repo (with examples)

system.py

This script shows the battery and memory level of your computer as well as an image of Arch and a link to Arch Linux's website. The "elapsed" time is also the uptime of the computer.

Additional packages: None

Additional documentation: psutil

nano.py

This script shows what file you're editing using nano, in which folder, adds 2 buttons (one for viewing the repository and one for viewing the file) and also has an icon for the corresponding programming language.

Additional packages: GitPython

Additional documentation: GitPython and psutil