mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #706] Possible solution for refocus and enable_media_control? #418
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#418
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @llanosrocas on GitHub (Apr 10, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/706
Is your feature request related to a problem? Please describe.
Yes. As described in the docs, when
enable_media_controlis enabled, the user needs to manually re-focus the terminal.Describe the solution you'd like
For macos, there is a built-in tool called osascript used for automation. By using the command:
you can bring focus to apps. Maybe it's possible to use this to solve the focus issue on macos?
Describe alternatives you've considered
I've experimented with commands, and this works for me:
or as alias:
I will test it over the next several days, though.
Additional context
@llanosrocas commented on GitHub (Jun 23, 2025):
Just want to share my feedback after several months. It works.