summaryrefslogtreecommitdiffstats
path: root/.scripts/tools/pauseallmpv
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-04 23:08:12 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-04 23:08:12 -0500
commite3a4c5a5d6734214573f8110e49894b7bd82ad9b (patch)
tree536b77a12bb17af9403b71eef76f119dfe678a87 /.scripts/tools/pauseallmpv
parent13a2e5fe3ad38fa46f76daf042d4e93e1c38da6c (diff)
downloadeibhear-e3a4c5a5d6734214573f8110e49894b7bd82ad9b.tar.gz
eibhear-e3a4c5a5d6734214573f8110e49894b7bd82ad9b.tar.zst
eibhear-e3a4c5a5d6734214573f8110e49894b7bd82ad9b.zip
mpv pause system changed (socat required)
Diffstat (limited to '.scripts/tools/pauseallmpv')
-rwxr-xr-x.scripts/tools/pauseallmpv6
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