diff options
Diffstat (limited to '.scripts/tools/pauseallmpv')
| -rwxr-xr-x | .scripts/tools/pauseallmpv | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/tools/pauseallmpv b/.scripts/tools/pauseallmpv index 08241b5..c5da220 100755 --- a/.scripts/tools/pauseallmpv +++ b/.scripts/tools/pauseallmpv @@ -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 |
