Add 'scripts/cmus-conky/' from commit '1b30cc2493
'
git-subtree-dir: scripts/cmus-conky
git-subtree-mainline: 8ca3ce2ba4eacbb99c9228337a913581b9a1a468
git-subtree-split: 1b30cc2493
This commit is contained in:
commit
bee677148e
5 changed files with 422 additions and 0 deletions
10
scripts/cmus-conky/cmus-covergrabber
Normal file
10
scripts/cmus-conky/cmus-covergrabber
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
## A simple script to get the currently playing album from Cmus, and pass it to covergrabber.py.
|
||||
## Requires Cover Grabber: https://github.com/thedonvaughn/cover_grabber and of course Cmus music player.
|
||||
## It is a good idea to alias this in your .bashrc. I aliased mine as 'cmus-grab'!
|
||||
|
||||
# Gets the directory containing our music.
|
||||
FOLDER=$( cmus-remote -Q | grep 'file ' | cut -c6- | sed 's:/[^/]*$::' )
|
||||
|
||||
# Passes to covergrabber.
|
||||
covergrabber "$FOLDER"
|
Loading…
Add table
Add a link
Reference in a new issue