This commit is contained in:
kokopi-dev
2025-12-21 20:16:43 +09:00
commit 06fabf5d93
8 changed files with 291 additions and 0 deletions

3
scripts/build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
cd ..
go build -o mpv-discord-rpc main.go

11
scripts/playlist.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if ! command -v mpv &> /dev/null; then
echo "mpv is not installed"
exit 1
fi
echo "space = play/pause"
echo "<,> = back,next"
echo "q = quit"
echo "left/right = skip seconds"
mpv --input-ipc-server=/tmp/mpvsocket --shuffle --loop-playlist=inf "$@"