From 0ba0efe649e8e3a3988f4897b72bba49ea85d116 Mon Sep 17 00:00:00 2001 From: rickyjon Date: Wed, 5 Feb 2020 20:57:55 +1100 Subject: [PATCH] Hotfix --- .local/bin/pauseallmpv | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.local/bin/pauseallmpv b/.local/bin/pauseallmpv index 89bebbde..f818a3ba 100755 --- a/.local/bin/pauseallmpv +++ b/.local/bin/pauseallmpv @@ -1,12 +1,8 @@ #!/usr/bin/env sh -# You might notice all mpv commands are aliased to have this input-ipc-server -# thing. That's just for this particular command, which allows us to pause -# every single one of them with one command! This is bound to super + shift + p -# (with other things) by default and is used in some other places. - - # Sends a \ key to all mpv instances pausing with the pause_toggle.lua script +TERMINAL="st" #hotfix for now + pstree -p | grep "$TERMINAL.*{mpv}" | sed "s/.*$TERMINAL(\([0-9]*\)).*/\1/" | xargs -I @ xdotool search --pid @ | xargs -I % xdotool key --window % backslash pgrep mpv | xargs -I @ xdotool search --pid @ | xargs -I % xdotool key --window % backslash