rice/scripts/mpd-controls.sh

18 lines
331 B
Bash
Raw Permalink 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
2021-11-14 22:51:43 -08:00
if [[ $arg == 'next' ]] || [[ "$arg" == "-n" ]]; then
2021-07-28 23:44:53 -07:00
echo "怜"
2021-11-14 22:51:43 -08:00
elif [[ $arg == 'prev' ]] || [[ "$arg" == "-p" ]]; then
2021-07-28 23:44:53 -07:00
echo "玲"
2021-11-15 14:32:56 -08:00
elif [[ "$arg" == 'icon' ]] || [[ "$arg" == "-i" ]]; then
echo ""
2021-07-28 23:44:53 -07:00
fi