aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-07-12 00:52:57 +0100
committerdx <aryadevchavali1@gmail.com>2020-07-12 02:56:10 +0100
commit9c43bb08187548bdaea67371dcd6d9070739a2ca (patch)
treec45e0b9c0e996f7a3428da1df22c4211dc92d6f4
parentbccf602ecba88906d1e8bf416ccf12ee0223918c (diff)
downloaddotfiles-9c43bb08187548bdaea67371dcd6d9070739a2ca.tar.gz
dotfiles-9c43bb08187548bdaea67371dcd6d9070739a2ca.tar.bz2
dotfiles-9c43bb08187548bdaea67371dcd6d9070739a2ca.zip
+script: show album art for playing track on mpd
-rwxr-xr-xScripts/.local/scripts/mpd_album_art6
1 files changed, 6 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/mpd_album_art b/Scripts/.local/scripts/mpd_album_art
new file mode 100755
index 0000000..6aa4964
--- /dev/null
+++ b/Scripts/.local/scripts/mpd_album_art
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+rawtrack="$(mpc -f '%file%' | head -1)";
+filename="/home/dx/Media/Music/$rawtrack"
+feh --title "album" "$filename"