#!/bin/sh # mega autismo # controlling background mpv with sockest yo opt=`echo "Pause\nKill" | dmenu -i -l 10 -p 'Background control'` case $opt in Pause) echo 'cycle pause' | socat - /tmp/mpv-bg-socket;; Kill) kill `pgrep xwinwrap`;; esac