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

17 lines
229 B
Bash
Executable File

#!/bin/sh
# start spotify session on tmux
tmux new-session -d -s music fish
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