mpv pause system changed (socat required)

This commit is contained in:
Luke Smith
2019-01-04 23:08:12 -05:00
parent 13a2e5fe3a
commit e3a4c5a5d6
5 changed files with 24 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
# Sends a , key to all mpv instances, pausing them at the last frame.
xdotool search --class mpv | xargs -I % xdotool key --window % comma
for i in $(ls /tmp/mpvsoc*); do
echo '{ "command": ["set_property", "pause", true] }' | socat - $i;
done