dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 8acc3c62da2ceded76acb5e0078791322a2b32e0
parent 416ee3628bc6f951f9d10467b72458776be150d1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue,  7 Jul 2020 21:44:31 +0200

Show album name in stdout

Diffstat:
M.local/bin/mpc-random-album.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.local/bin/mpc-random-album.sh b/.local/bin/mpc-random-album.sh @@ -1,5 +1,7 @@ -#!/bin/sh +#!/bin/sh -e a="$(mpc list album | sort -R | head -1)" mpc clear >/dev/null mpc findadd album "$a" +printf '# %s\n' "$a" mpc playlist +mpc play >/dev/null