Skip to content

Instantly share code, notes, and snippets.

@villamide
villamide / spotify_start_play_pause.sh
Last active October 20, 2017 08:52
Spotify Script - Launch instance or play / pause
#!/bin/bash
# If spotify is started play/pause music,
# else starts spotify
if [ $(pidof -s spotify) > /dev/null ]; then
playerctl play-pause
else
spotify
fi