-
Notifications
You must be signed in to change notification settings - Fork 23
playerctl_status.sh
Bakkeby edited this page Mar 28, 2025
·
1 revision
playerctl
is a command-line controller for mpris enabled media players.
playerctl_status.sh
is a proof-of-concept standalone status tool that provides basic status info like whether music is playing or is paused, a scrolling title and some controls.
It consists of four scripts:
- playerctl_status.sh - the script that is run which waits for player status changes
-
playerctl_updater.sh - the script that is responsible for updating the status, started by
playerctl_status.sh
- playerctl_status_click.sh - the script that handles click actions, called from the main click handling script [ref]
- playerctlmenu.sh - a context menu script that lets you specify which player the status should focus on
When the playerctl_status.sh
is stopped / killed it is going to stop the playerctl_updater.sh
script automatically and clear the status.
Example demonstration of what the status might look like:
Combined the scripts have the following dependencies:
- playerctl
- xmenu - for the context menu
- marquee - for the text scrolling
- libgrapheme - for multi-byte character handling
duskc
pgrep
awk
If you plan on using this then expect having to tailor the scripts to suit your needs.
Back to Other scripts and life hacks.
Concepts | Configuration | Features | Flags | Functionality | Functions