npshell in action

npshell np demo code

Automate demo creation, showing np music player commands in action.


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.

  1. Replace the empty placeholder files in this repository with a dummy.mp3 file using the command below.
  2. 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.

  1. Open two terminal windows.
  2. In the first, enter the below command.
  3. Switch to the second window.
  4. Let the commands complete before doing anything else.
  5. Use the resulting ouput.gif.
cat "" | keystroke-animator


Copyright (c) 2015, 2016 Joel Purra. Released under GNU General Public License version 3.0 (GPL-3.0).