aboutsummaryrefslogtreecommitdiff
path: root/pauseallmpv
blob: 9ef0e9d24d00890cccc70d8288449f112e984f24 (plain)
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"