commit 0019ec1
hovercats
·
2026-08-20 18:48:40 +0000 UTC
parent afaf47d
smpv: drop. this was added in its own repo and improved upon
1 files changed,
+0,
-37
D
sh/smpv
D
sh/smpv
+0,
-37
1@@ -1,37 +0,0 @@
2-#!/bin/sh
3-
4-# todo
5-# [ ] add currently playing to a playlist
6-# [ ] add to queue
7-# [ ] 'play next' functionality
8-# [ ] manipulate playlist
9-# - loadfile in manpage here is relevant
10-# [x] specify playlist
11-# - pass under $@
12-# [ ] add to current playlist
13-# [ ] show current song
14-# [x] shuffle
15-# - just pass this under $@
16-# [ ] start in idle?
17-# - do we need --idle?
18-
19-socketpath=/tmp/.mpvsocket
20-
21-case $1 in
22- play)
23- mpv --no-audio-display --input-ipc-server="$socketpath" "$@"
24- ;;
25- pause)
26- echo "cycle pause" | nc -UN "$socketpath"
27- ;;
28- next)
29- echo "playlist-next" | nc -UN "$socketpath"
30- ;;
31- prev)
32- echo "playlist-prev" | nc -UN "$socketpath"
33- ;;
34- *)
35- echo "Error"
36- exit 1
37- ;;
38-esac