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

16 lines
187 B
Bash
Executable File

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