diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-06-04 15:15:36 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-06-04 15:15:36 +0200 |
commit | 52411b3bf1bb5ff1574294b123ead6830a3f4054 (patch) | |
tree | 30189c0f047d9376248fb0c871f069b9163a4ace /pauseallmpv | |
parent | 187a23c9d3358ca69dc51cac6f0d8278bdda8ba3 (diff) | |
download | scripts-52411b3bf1bb5ff1574294b123ead6830a3f4054.tar.gz scripts-52411b3bf1bb5ff1574294b123ead6830a3f4054.zip |
New script to pause all mpv video instances.
Diffstat (limited to 'pauseallmpv')
-rwxr-xr-x | pauseallmpv | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pauseallmpv b/pauseallmpv new file mode 100755 index 0000000..7c3406f --- /dev/null +++ b/pauseallmpv @@ -0,0 +1,8 @@ +#!/bin/sh + +# From Luke Smith +#for i in $(ls /tmp/mpvsoc*); do +# echo '{ "command": ["set_property", "pause", true] }' | socat - "$i"; +#done + +xdotool search --class mpv | xargs -I % xdotool key --window % comma |