dotfiles/media/.local/bin/start-tmux-music

17 lines
244 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# start spotify session on tmux
tmux new-session -d -s music fish -C spd
STATUS=$?
if [ $STATUS -eq 0 ]
then
tmux new-window -tmusic -n spotify fish -C spt
fi
if [ -z $TMUX ]
then
exec tmux attach -tmusic:spotify.1
fi