rice/scripts/mpd-controls.sh

16 lines
213 B
Bash
Raw Normal View History

2021-07-28 23:44:53 -07:00
#!/usr/bin/env bash
set -euo pipefail
checkRunning="$(mpc current)"
if [[ $checkRunning == '' ]]; then
exit 1
fi
arg=$1
if [[ $arg == 'next' ]]; then
echo "怜"
elif [[ $arg == 'prev' ]]; then
echo "玲"
fi