Skip to content

Add media controls to waybar#677

Closed
rosscondie wants to merge 1 commit into
basecamp:masterfrom
rosscondie:add-media-player-to-waybar
Closed

Add media controls to waybar#677
rosscondie wants to merge 1 commit into
basecamp:masterfrom
rosscondie:add-media-player-to-waybar

Conversation

@rosscondie
Copy link
Copy Markdown
Contributor

I’m still getting comfortable with bash and Linux, so I’d appreciate any feedback on this.

What

Added a media player widget to the Waybar config enabling users to see and control media playback directly from the status bar.

Changes

  • Integrated media player module into Waybar config.
  • Added relevant styling and functionality for media controls.
  • Added new helper scripts to manage media playback:
    • mediaplayer.sh: fetches current media information such as track title and artist.
    • playpause.sh: toggles the play/pause state of the media player.

Screenshot

screenshot-2025-08-11_21-11-11

Notes

  • Feedback and suggestions welcome. Always keen to learn, even if changes aren’t merged.

@KrauseKurt
Copy link
Copy Markdown

+1 for this feature! I really like how the icon changes based on the source playing the song.

That said, I’m not sure having both the play/pause icon and the source icon at the same time works best aesthetically, it makes the bar feel a bit cluttered in my opinion.

If others feel the same, one possible solution could be to show the source icon while playing, and switch it to the pause icon when the media is paused.

Either way, I would love to see this implemented!

@dhh
Copy link
Copy Markdown
Member

dhh commented Aug 22, 2025

This is a nice edit to document in the Discussions > Manual. Maybe even make an installer script for it. But I don't want media controls in the waybar personally. I just use the keyboard shortcuts.

@dhh dhh closed this Aug 22, 2025
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.

3 participants