rice/scripts/mpd-controls.sh
2021-11-14 22:51:43 -08:00

16 lines
261 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
checkRunning="$(mpc current)"
if [[ $checkRunning == '' ]]; then
exit 1
fi
arg=$1
if [[ $arg == 'next' ]] || [[ "$arg" == "-n" ]]; then
echo "怜"
elif [[ $arg == 'prev' ]] || [[ "$arg" == "-p" ]]; then
echo "玲"
fi