npshell np demo code
Automate demo creation, showing np music player commands in action.
Usage
Dummy files
np won't play empty files, so they all need to be replaced with a dummy.mp3 file 30 seconds long or so. Didn't include one in this repository, so pick one yourself.
- Replace the empty placeholder files in this repository with a
dummy.mp3file using the command below. - Put the dummy files in
~/Music, which shouldn't contain any other files during the demo.
find . -type f -name '*.mp3' -print0 | xargs -0 -I '{}' cp "dummy.mp3" "{}"
Recording demo
Using shell-keystroke-animator.
- Open two terminal windows.
- In the first, enter the below command.
- Switch to the second window.
- Let the commands complete before doing anything else.
- Use the resulting
ouput.gif.
cat "steps.sh" | keystroke-animator
Kudos
- Elisabeth Nilsson and Måns Jonasson for a broad album selection.
- Wikipedia for track listings.
Copyright (c) 2015, 2016 Joel Purra. Released under GNU General Public License version 3.0 (GPL-3.0).
