#!/bin/sh

# mega autismo
# controlling background mpv with sockest yo

opt=`echo "(Un)Pause\nKill" | dmenu -i -l 10 -p 'Background control'`

case $opt in
	'(Un)Pause') echo 'cycle pause' | socat - /tmp/mpv-bg-socket;;
	Kill) kill `pgrep xwinwrap`;;
esac
