blob: 356e5ba6c8227c7b77b2b4d222f49535df17a9e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env bash
folder=$( cmus-remote -Q | grep -w file | sed 's/file //' )
cover=${folder%/*}/cover.png
convert "$cover" -resize 200x200 ~/tmp/cover.png
if pgrep n30f > /dev/null
then
pkill n30f
n30f -x 20 -y 700 ~/tmp/cover.png -c "hidebars.sh -h" -d
else
n30f -x 20 -y 700 ~/tmp/cover.png -c "hidebars.sh -h" -d
fi
|