#!/bin/bash

# very subtle easter egg, turn up the volume and wear headphones to experience it
if ! [ -e ~/instantos/thomas.mp3 ]; then
    pushd .
    cd ~/instantos/
    wget -q thomasthetankengine.surge.sh/thomas.mp3
    popd
fi

if pgrep mpv; then
    sl "$@"
    exit
fi

mpv ~/instantos/thomas.mp3 &>/dev/null &
command sl "$@"
pkill mpv
