项目作者: charmparticle

项目描述 :
some scripts for mpd, the music player daemon.
高级语言: Shell
项目地址: git://github.com/charmparticle/mpd_scripts.git
创建时间: 2018-11-07T00:32:36Z
项目社区:https://github.com/charmparticle/mpd_scripts

开源协议:MIT License

下载


mpd_scripts

some scripts for mpd, the music player daemon:

playpls:

requires: slmenu. Get that before running this script.
playpls plays pls or m3u files in your ~/tunes folder. If you don’t have a tunes folder, run the update-radio script first.

Examples:

  1. #show the urls contained in a playlist with the string "sonic" in the filename
  2. $ playpls -s sonic
  3. #add kexp internet radio to the playlist
  4. $ playpls -a kexp
  5. #show the available streams
  6. $ playpls

update-radio

creates a ~/tunes folder if you don’t have one already, and downloads a bunch of internet radio stations to them. You are free to add more of your own or to change the configuration or whatever — everyone’s musical tastes are different; I wrote this mainly for myself.

mpcvol

mpcvol allows you to easily change the volume of whatever music you’re listening to on mpd.

randalbum

this script adds a random album to your mpd playlist, or clears your mpd playlist, adds the random album, and plays it, or simply prints the name of a random album in your library, depending on the arguments you pass. With no arguments, it will clear your mpd playlist, add a random album, and play it. It’s worth noting that this script was written with the assumption that your music library is laid out with artists as the top level category

Examples:

  1. #print a random album by Miles davis to stdout
  2. $ randalbum -t "Miles Davis" -s
  3. #this could be used on conjunction with mpc:
  4. $ randalbum -t "Miles Davis" -s | mpc add
  5. #although, it's faster to juse use the add option
  6. $ randalbum -t "Miles Davis" -a
  7. #play a random album
  8. $ randalbum
  9. #play random music that has 'guitar' in the name:
  10. $ randalbum -g 'guitar'
  11. #play 5 random pieces of music that have 'guitar' in the name:
  12. #worth noting, -n only works with -s or -a
  13. $ randalbum -g 'guitar' -a -n 5
  14. #select an album for a random artist, and play it:
  15. #(uses slmenu, so you need to have that installed to use this feature)
  16. $ randalbum --select-album
  17. #select a song from a random album, and play it. This uses slmenu,
  18. #and if you type, it will intelligently autocomplete
  19. $ randalbum --select-song
  20. #select an artist, then an album, then a song, and print it out
  21. #at this point, you might as well use ncmpcpp instead.
  22. $ randalbum -st -sm -sg -s

fadein

Fades in music that’s piped in from one of the other scripts or something else.

Examples:

  1. # fade in a random Brian Eno album, using linear fade-in, to a max volume of 56
  2. $ randalbum -t 'Brian Eno' -s | fadein -lin -m 56 -
  3. # fade in an internet radio stream, using logarithmic fade-in, to a max volume of 55
  4. $ playpls -s e24 | fadein -

mpcplay

This script simply adds and plays any music uri that is supplied to it. This allows you to set mpd as your default music program.

Example:

  1. # add a playlist and play it:
  2. $ mpcplay $(playpls -s sonic)