aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/popups/cover.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scripts/popups/cover.sh')
-rwxr-xr-xscripts/scripts/popups/cover.sh14
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
3folder=$( cmus-remote -Q | grep -w file | sed 's/file //' )
4cover=${folder%/*}/cover.png
5
6convert "$cover" -resize 200x200 ~/tmp/cover.png
7
8if pgrep n30f > /dev/null
9then
10 pkill n30f
11 n30f -x 20 -y 700 ~/tmp/cover.png -c "hidebars.sh -h" -d
12else
13 n30f -x 20 -y 700 ~/tmp/cover.png -c "hidebars.sh -h" -d
14fi