music-term 289 B

1234567891011
  1. #!/usr/bin/env bash
  2. if ! tmux has-session -t "music" ; then
  3. echo "Creating tmux session for music"
  4. echo $MPD_HOST
  5. cd ~/Music
  6. tmux new-session -e MPD_HOST=$MPD_HOST -s "music" "$SHELL -c ncmpc" \; \
  7. split-window "$SHELL"
  8. else
  9. tmux attach-session -t "music"
  10. fi