Pausing MPV via Pomodoro Scripts
Created on 2020-11-21T21:43:02-06:00
Using JSON API
- Run mpv with `--input-ipc-server=/tmp/mpvsocket`
- Send commands `echo '{ "command": ["set_property", "pause", true] }' | socat - /tmp/mpvsocket`
Using SIGSTOP and SIGCONT to jam up the process
- kill -s STOP $(pidof mpv)
- kill -s CONT $(pidof mpv)