Skip to content

Instantly share code, notes, and snippets.

@villamide
villamide / spotify_start_play_pause.sh
Last active Oct 20, 2017
Spotify Script - Launch instance or play / pause
View spotify_start_play_pause.sh
#!/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