summaryrefslogtreecommitdiff
path: root/.i3/scripts/pauseallmpv
diff options
context:
space:
mode:
Diffstat (limited to '.i3/scripts/pauseallmpv')
-rwxr-xr-x.i3/scripts/pauseallmpv4
1 files changed, 4 insertions, 0 deletions
diff --git a/.i3/scripts/pauseallmpv b/.i3/scripts/pauseallmpv
new file mode 100755
index 0000000..08241b5
--- /dev/null
+++ b/.i3/scripts/pauseallmpv
@@ -0,0 +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