mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
18 lines
331 B
Bash
Executable File
18 lines
331 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 "玲"
|
|
elif [[ "$arg" == 'icon' ]] || [[ "$arg" == "-i" ]]; then
|
|
echo ""
|
|
fi
|