Skip to content

Instantly share code, notes, and snippets.

@Fifirex
Created November 18, 2021 01:17
Show Gist options
  • Save Fifirex/87315e739d5b9b72d0d59513ffd42af0 to your computer and use it in GitHub Desktop.
Save Fifirex/87315e739d5b9b72d0d59513ffd42af0 to your computer and use it in GitHub Desktop.
play/pause Spotify from Terminal
# 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.
@Yureien
Copy link

Yureien commented Nov 18, 2021

Are you ok? Should I put your name in yourdost?

Take care <3

@Fifirex
Copy link
Author

Fifirex commented Nov 18, 2021

I don't think yourdost's gonna help mate, thanks for asking tho @fadedcoder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment