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 34e27437188af6e88e0741bd640182045784f295
parent e733b7ed449e5e8f018a3711aeac5732dc3b67fb
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  4 Oct 2018 14:36:38 +0200

Add scripts for showing and playing the newest added music

Diffstat:
Alinks/bin/mpc-newest.sh | 2++
Alinks/bin/mpc-play-newest.sh | 4++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/links/bin/mpc-newest.sh b/links/bin/mpc-newest.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +grep 'added' ~/.mpd/log | sed 's/.*added //' | sed 's/\// - /' | sed 's/\/.*//' | uniq | tail -n 20 diff --git a/links/bin/mpc-play-newest.sh b/links/bin/mpc-play-newest.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +mpc clear +grep 'added' ~/.mpd/log | sed 's/.*added //' | tail -n 100 | tac | mpc add +mpc play