1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh key=$1 [ -z "$key" ] && key='comma' # 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 % "$key"