pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit 200daf5205a188d95a5a710bb8ad6da56b230442
parent 899fc24ed0ee44572fcf5d3ce5ca30bf7746d602
Author: pyratebeard <root@pyratebeard.net>
Date:   Mon, 22 May 2023 17:19:05 +0100

ara

Diffstat:
Mentry/ara.md | 17+++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/entry/ara.md b/entry/ara.md @@ -1,8 +1,8 @@ It is Monday and I am in one of those rare moods when I can't decide what music to listen to while I work. -This happens every so often but I can usually find something on Bandcamp or from my digital collection, but today I can't settle on anything. Metal, synth, Spanish guitar, even chiptune; nothing is quenching my ear thirst. +This happens every so often although I can usually find something from my digital collection, but today I can't settle on anything. Metal, synth, Spanish guitar, even chiptune; nothing is quenching my ear thirst. -In a moment of desperation (or madness?), I threw together a script to pick an album at random from my digital library and add it to [cmus](TK){target="_blank" rel="noreferrer"}. Behold, `ara` +In a moment of desperation (or madness?), I threw together a script to pick an album at random from my digital library and add it to [cmus](https://cmus.github.io/){target="_blank" rel="noreferrer"}. Behold, `ara` ``` #!/bin/bash # ██████ ██████ ██████ @@ -30,7 +30,7 @@ for n in $(seq 1 ${num}) ; do done ``` -The script is simple enough. Find albums in my music library path, add them to an array, then select one or more (if specified) albums and add them to my cmus library using `cmus-remote`. +The script is simple enough. Find albums in my music library path, add them to an array, then select one or more albums and add them to my `cmus` library using `cmus-remote`. The `find` command uses `-mindepth 2 -maxdepth 2` on the basis that my music library directory is organised as ``` @@ -38,17 +38,14 @@ artist └── album ``` -To use I incant -``` -ara -``` - -Or to add more than one random album I can incant +I can then add as many random albums as I like, defaulting to one if no number is specified ``` ara 8 ``` -You can view the script on my [git server](TK){target="_blank" rel="noreferrer"} or incant +You can view the script on my [git server](https://git.pyratebeard.net/dotfiles/file/cmus/bin/ara.html){target="_blank" rel="noreferrer"} or incant ``` curl -L git.pyratebeard.net/pub/dotfiles/cmus/bin/ara ``` + +For those following my [#weeklymusictoot](https://harbour.cafe/tags/weeklymusictoot){target="_blank" rel="noreferrer"} on the fediverse, this week's listening may be a bit weird.