dots/bin/bin/pause-mpv

4 lines
120 B
Bash
Executable File

#!/bin/bash
xdotool search --class mpv | xargs -I % xdotool key --window % space &&
notify-send "MPV" "Pausing/Playing"