summaryrefslogtreecommitdiffstats
path: root/.scripts/pauseallmpv
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-07-29 13:43:43 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-07-29 13:43:43 -0400
commite757a9cf94cfb346044fcfc3b1f359ac0a86fa9a (patch)
tree42c30ce277d42346cea7b3ce169b7733d50400a1 /.scripts/pauseallmpv
parentbe07b304b3bcb8db2d898a41132a094146d90eab (diff)
downloadeibhear-e757a9cf94cfb346044fcfc3b1f359ac0a86fa9a.tar.gz
eibhear-e757a9cf94cfb346044fcfc3b1f359ac0a86fa9a.tar.zst
eibhear-e757a9cf94cfb346044fcfc3b1f359ac0a86fa9a.zip
lock script moved to ~/.scripts, now pauses mpv
Diffstat (limited to '.scripts/pauseallmpv')
-rwxr-xr-x.scripts/pauseallmpv4
1 files changed, 4 insertions, 0 deletions
diff --git a/.scripts/pauseallmpv b/.scripts/pauseallmpv
new file mode 100755
index 0000000..b24f448
--- /dev/null
+++ b/.scripts/pauseallmpv
@@ -0,0 +1,4 @@
+#!/bin/bash
+# Sends a , key to all mpv instances, pausing them at the last frame.
+
+xdotool search --class mpv | xargs -I % xdotool key --window % comma