This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: cmus-rate [1-5] | |
# | |
# Rate tracks playing in cmus and add them to corresponding playlists. | |
# | |
# The track currently playing in cmus is added to an M3U playlist corresponding | |
# to the given rating ("[1-5].m3u") and removed from any other rating playlist. | |
# If no argument is given, the track is removed from all rating playlists. | |
# | |
# The playlists are kept sorted. |