From e3a4c5a5d6734214573f8110e49894b7bd82ad9b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 4 Jan 2019 23:08:12 -0500 Subject: mpv pause system changed (socat required) --- .scripts/tools/pauseallmpv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.scripts/tools/pauseallmpv') 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 -- cgit v1.3.1