diff options
Diffstat (limited to 'scripts/scripts/popups/cover.sh')
-rwxr-xr-x | scripts/scripts/popups/cover.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/scripts/popups/cover.sh b/scripts/scripts/popups/cover.sh new file mode 100755 index 0000000..356e5ba --- /dev/null +++ b/scripts/scripts/popups/cover.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | folder=$( cmus-remote -Q | grep -w file | sed 's/file //' ) | ||
4 | cover=${folder%/*}/cover.png | ||
5 | |||
6 | convert "$cover" -resize 200x200 ~/tmp/cover.png | ||
7 | |||
8 | if pgrep n30f > /dev/null | ||
9 | then | ||
10 | pkill n30f | ||
11 | n30f -x 20 -y 700 ~/tmp/cover.png -c "hidebars.sh -h" -d | ||
12 | else | ||
13 | n30f -x 20 -y 700 ~/tmp/cover.png -c "hidebars.sh -h" -d | ||
14 | fi | ||