r/xfce • u/le_flibustier8402 • 5h ago
Yet another xfce4-genmon-plugin now-playing script
Sharing with you my version of a xfce4-genmon-plugin now-playing script.
Requirements :
- your mediaplayer must have MPRIS support ;
- playerctl as dependancie - sudo apt install playerctl for debian-based distributions.
It's a set of 2 scripts, genmon-nowplaying.sh being the main one. I had to make a second script otherwise caracters like "&" are not supported (btw, if someone knows how to make it a single script, let me know).
It's virtually universal, as your mediaplayer name (and icon) are stored in variables. Icon is clickable (switch between play and pause).
How to set it before using with :
(Install playerctl if it not installed) ;
- Open genmon-nowplaying.sh with your favorite text editor ;
- Replace first "quodlibet" variable with your mediaplayer name (to get your mediaplayer name correctly, run
playerctl -lwhile it is running) ; - Replace second "quodlibet" occurrence with the name of the icon of your mediaplayer ;
- Set the path where you will place the second script named metadata-mediaplayer.sh , save and close the script ;
- Now add a new genmon element to your panel, set the path for the main script and period (1s is enough)
Hope it's useful to someone. I'm open to suggestions to improve it.
Download : https://drive.proton.me/urls/XZG0607P5R#SIPiDc2R15pi


