Created
November 18, 2021 01:17
-
-
Save Fifirex/87315e739d5b9b72d0d59513ffd42af0 to your computer and use it in GitHub Desktop.
play/pause Spotify from Terminal
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
# just stfu | |
# for that time u just wanna pause without getting out of the zone (who presses the pause button ugh) | |
# make it executable, add to PATH and use "stfu" | |
osascript -e 'tell application "Spotify" to playpause' | |
# that's my big SHELL script. | |
# kind of a let down. | |
# yeah I get it. | |
# sometimes you just expect the solution to be a lot more complicated. | |
# but it's simply, not. | |
# life is like that sometimes. | |
# one. line. of. code. | |
# as simple as it gets. | |
# that's about it, tbh. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you ok? Should I put your name in yourdost?
Take care <3