#!/usr/bin/env bash
# 
# SCRIPT NAME:
# cmus-cover
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Saves the current cmus cover to a file.
#
# USAGE:
# ./cmus-cover
FILE="$(cmus-remote -Q | grep -e "file " | cut -d " " -f 2-)"
ffmpeg -y -i "${FILE}" -f image2  /home/severin/.local/share/cmus/.cover