Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

feat: allow blacklisting of MPRIS players#1139

Merged
Jas-SinghFSU merged 3 commits into
Jas-SinghFSU:masterfrom
Times-Z:master
Mar 23, 2026
Merged

feat: allow blacklisting of MPRIS players#1139
Jas-SinghFSU merged 3 commits into
Jas-SinghFSU:masterfrom
Times-Z:master

Conversation

@Times-Z

@Times-Z Times-Z commented Nov 27, 2025

Copy link
Copy Markdown
Contributor

This PR adds the ability to ignore unwanted MPRIS players and set a preferred default player, similar to the existing ignored applications feature for notifications

Features Added

1. Ignore MPRIS Players

  • Added ignore configuration option to filter out unwanted MPRIS clients
  • Players in the ignore list are:
    • Hidden from the media controls UI
    • Skipped when cycling through players with next/previous buttons
    • Never set as the active player
    • Automatically filtered when switching players
image

2. Preferred Player

  • Added preferredPlayer configuration option to set a default MPRIS player
  • When available, the preferred player will:
    • Automatically become active on startup
    • Take priority when connecting (even if another player is active)
    • Use case-insensitive partial matching for flexibility

3. CLI Tool for Discovery

  • Added hyprpanel mprisPlayers (alias: mpl) command
  • Lists all detected MPRIS players with their identity names and bus names
  • Helps users identify which names to use in the ignore/preferred lists
image

Comment thread src/lib/shared/media/index.ts Outdated
@Jas-SinghFSU

Copy link
Copy Markdown
Owner

Looks good outside of the comment above and the linter failures.

lika85456 added a commit to lika85456/HyprPanel that referenced this pull request Feb 3, 2026
@Times-Z

Times-Z commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

Any news ?

@Times-Z Times-Z requested a review from Jas-SinghFSU March 19, 2026 17:45
@Jas-SinghFSU

Copy link
Copy Markdown
Owner

Hey there, sorry I've been busy trying to get Wayle to the finish line.
This seems done and I'll go through some pending PRs that are good to be merged. But HyprPanel is going to be archived in favor of Wayle shortly.

@Jas-SinghFSU

Copy link
Copy Markdown
Owner

Something weird is going on, could you push another empty commit to get this unstuck?

git commit --allow-empty -m 'unstuck'

Times-Z added 3 commits March 23, 2026 09:55
Also add the ability to set one of them as the default value when available
@Times-Z

Times-Z commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

Something weird is going on, could you push another empty commit to get this unstuck?

git commit --allow-empty -m 'unstuck'

I'll rebase the branch
Is this better ?

@Jas-SinghFSU Jas-SinghFSU merged commit bc9ea3b into Jas-SinghFSU:master Mar 23, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants