#!/bin/sh

previewdir="$HOME/.ncmpcpp/cover" 

if [ -z "${TMUX}" ] ; then 
    tmux new-session -s ncmpcpp-session "$previewdir/music-tmux.sh"
else
    tmux split-window -h "ncmpcpp -c "$previewdir"/vis-config"
    tmux resize-pane -R 44
    tmux split-window -v ""$previewdir"/setupCanvas.sh"
    tmux select-pane -t:.0
    (sleep 0.2s && ~/.ncmpcpp/songinfo) &
    ncmpcpp
fi
