Skip to content

Instantly share code, notes, and snippets.

@ShadowKyogre
Created November 19, 2015 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShadowKyogre/f6237672e693962fc678 to your computer and use it in GitHub Desktop.
Save ShadowKyogre/f6237672e693962fc678 to your computer and use it in GitHub Desktop.
Some of my handy personal CMUS scripts
#!/bin/bash
file="$(cmus-remote -C 'echo {}')"
if [ -f "$file" ]
then
lxterminal -t "Editing tags for $file" -e ~/bin/mutagen_urwid.py "$file" &
else
echo "Oop, couldn't find selected track" >&2
fi
#!/bin/bash
file="$(cmus-remote -C status|head -2|tail -1|cut -d' ' -f2-)"
if [ -f "$file" ]
then
echo "$file" >> ~/.config/cmus/.favorites
sort -u -o ~/.config/cmus/.favorites ~/.config/cmus/.favorites
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment