mirror of
https://github.com/ericonr/dotfiles.git
synced 2024-04-21 09:12:33 -05:00
17 lines
244 B
Bash
Executable File
17 lines
244 B
Bash
Executable File
#!/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
|