scripts/i3spotify
2019-07-08 21:38:28 +01:00

11 lines
166 B
Bash
Executable File

#!/usr/bin/env bash
SPOTPID="$(pgrep -x spotify)"
if [[ -z $SPOTPID ]]; then
flatpak run com.spotify.Client & > /dev/null
else
i3-msg workspace "100:spotify"
fi