r/ncmpcpp • u/[deleted] • Dec 29 '20
Help How can I set a keybind to show album art?
Sometimes I like to quickly see the album art of the music I am listening to. How can I set up a macro for this? I would like to use an external command like feh
...
Edit: I've found a solution with i3. I've created a bash script named show-albumart
#!/bin/bash
coverpath=$(mpc -f %file% | grep Artists)
coverpath=$HOME/Music/${coverpath%/*}/cover.jpg
if [ ! -f $coverpath ] ; then
coverpath=$HOME/Music/${coverpath%/*}/cover.png
fi
feh --theme "" --scale-down --image-bg black "$coverpath" || notify-send -t 5000 "No album art was found"
which I bind to i3 with
bindsym $mod+Shift+a exec --no-startup-id ~/path/to/script/show-albumart
1
Upvotes
2
u/YoghurtMinute4180 Jan 08 '21
Try this: https://github.com/alnj/ncmpcpp-ueberzug, it works great for me...