-
Notifications
You must be signed in to change notification settings - Fork 1
Add Rhythmbox, Audacious, and Spotify player support with Wayland compatibility #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
9
commits into
master
Choose a base branch
from
copilot/adapt-protocols-for-aneayland
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Adapt protocols for Aneayland and Rhythmbox
Add Rhythmbox and Audacious player support with configurable CLI
Nov 5, 2025
Owner
|
@copilot es pot adaptar pq també funcioni amb wayland |
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Author
Sí, ara també funciona amb Wayland. El script detecta automàticament si estàs utilitzant X11 o Wayland i utilitza el mètode adequat:
També pots forçar l'ús de X11 amb |
Copilot
AI
changed the title
Add Rhythmbox and Audacious player support with configurable CLI
Add Rhythmbox and Audacious player support with Wayland compatibility
Nov 5, 2025
Owner
|
@copilot can be integrated with Spotify? |
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Author
Copilot
AI
changed the title
Add Rhythmbox and Audacious player support with Wayland compatibility
Add Rhythmbox, Audacious, and Spotify player support with Wayland compatibility
Nov 5, 2025
Owner
|
@copilot afegeix el requirements.txt que creguis |
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Extends idle monitoring script to support Rhythmbox, Audacious, and Spotify music players beyond the original cmus-only implementation, and adds full Wayland support alongside existing X11 functionality.
Architecture Changes
MusicPlayerbase class with player-specific implementations (CmusPlayer,RhythmboxPlayer,AudaciousPlayer,SpotifyPlayer)IdleMonitorbase class withX11IdleMonitorandDBusIdleMonitorimplementationsMusic Player Support
rhythmbox-clientcommand-line toolaudaciouscommand-line toolorg.mpris.MediaPlayer2.spotify)Wayland Support
org.freedesktop.ScreenSaver) for idle detection on Wayland--force-x11flag to force X11 idle detection even on Wayland (useful for XWayland)Security & Compatibility
commandsmodule withsubprocessfor Python 3os.system()andsubprocess.getoutput()tosubprocess.run()with list arguments to prevent shell injectionsubprocess.SubprocessError,OSError,FileNotFoundError)Dependencies
requirements.txtwithdbus-python>=1.2.0for Wayland idle detection and Spotify controlUsage
Requirements
The original cmus functionality remains the default to ensure backward compatibility. The script now works seamlessly on both X11 and Wayland display servers.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.