Skip to content

feat: add --target flag to listen only to specific MPRIS services#1

Open
shibahex wants to merge 4 commits intoBEST8OY:mainfrom
shibahex:feature/target-player
Open

feat: add --target flag to listen only to specific MPRIS services#1
shibahex wants to merge 4 commits intoBEST8OY:mainfrom
shibahex:feature/target-player

Conversation

@shibahex
Copy link
Copy Markdown

@shibahex shibahex commented Mar 7, 2026

the inverse of the existing --block flag.

Added a --target flag to allow users to filter for specific MPRIS services.

Changes

  • Added target field to CLI Config (comma-separated list).
  • Implemented is_targeted logic in connection.rs to validate player service names.
  • Change MPRIS logic to ignore services if target flag isn't empty.

Previously, users could only block services. This new flag is more of a "whitelist" approach, ensuring the app only listens to preferred players (e.g., Spotify) and preventing conflicts when multiple MPRIS services are active.

shibahex added 3 commits March 7, 2026 00:28
added logic where users can set the --target (LIST) flag to only listen
to certain services

this was needed, because If I only want lyrics from spotify, then
setting up the block_list is not as dynamic then just setting a target.
(also multiple MPRIS services kept breaking the lyrics)

same logic as block list, just returns true if target flag is empty.
@shibahex
Copy link
Copy Markdown
Author

shibahex commented Mar 7, 2026

Im making a quickshell module that has karaoke like lyrics in the taskbar, that are animated! love this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant