From 6be84a24f416910cba2695a822a9dc73bfe14302 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 18 Sep 2016 00:03:16 +0200 Subject: Add internal border to Emacs frame --- mpd/usr/bin/mpd-random-albums | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 mpd/usr/bin/mpd-random-albums (limited to 'mpd') diff --git a/mpd/usr/bin/mpd-random-albums b/mpd/usr/bin/mpd-random-albums new file mode 100755 index 0000000..8adcd19 --- /dev/null +++ b/mpd/usr/bin/mpd-random-albums @@ -0,0 +1,12 @@ +#!/usr/local/bin/scsh -s +!# + +(define (add-album album) + (run (mpc findadd album ,album))) + +(run (mpc clear)) + +(for-each (lambda (album) + (run (mpc findadd album ,album))) + (run/strings (pipe (mpc list album) + (shuf)))) -- cgit v1.2.3-54-g00ecf