Skip to content

fix: add play/pause toggle support for iTunes/Music (#189) - #214

Open
Linboss9 wants to merge 1 commit into
rgcr:mainfrom
Linboss9:fix/189-itunes-playpause
Open

fix: add play/pause toggle support for iTunes/Music (#189)#214
Linboss9 wants to merge 1 commit into
rgcr:mainfrom
Linboss9:fix/189-itunes-playpause

Conversation

@Linboss9

Copy link
Copy Markdown

Description

Resolves #189.

This PR adds a unified play/pause toggle command option (--toggle, toggle, playpause, play/pause) to m itunes (and m music), allowing users to toggle playback state according to current track status.

Changes Made

  • Updated plugins/itunes to parse macOS version numbers reliably (MAC_MAJOR/MAC_MINOR) for macOS Catalina (10.15+) Music app detection.
  • Added --toggle, toggle, playpause, play/pause option aliases to plugins/itunes.
  • Updated --help output in plugins/itunes to document --toggle and missing --unmute.
  • Added unit tests in tests/test_itunes.sh.

Verification

  • Tested ./plugins/itunes --help and ./plugins/music --help
  • Verified ./m music status and ./m music toggle execution on macOS.

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.

Combined itunes play/pause

1 participant