Skip to content

Instantly share code, notes, and snippets.

View clickwir's full-sized avatar

clickwir clickwir

  • Colorado, USA
View GitHub Profile
@clickwir
clickwir / cool.sh
Last active April 10, 2021 20:18 — forked from orhun/cool.sh
Random MOD player
#!/usr/bin/env bash
# Get a random music file from modarchive.org and play it.
# Uses VLC. Many other players could work too.
# Check for needed programs. Exit if they are not found.
#if ! which xmp > /dev/null; then echo "xmp not installed. Try: apt install xmp"; exit 1; fi
if ! which vlc > /dev/null; then echo "VLC not installed. Try: apt install vlc"; exit 1; fi
if ! which curl > /dev/null; then echo "curl not installed. Try: apt install curl"; exit 1; fi
# Check if the user wants a specific module