dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

pauseallmpv (426B)


      1 #!/usr/bin/env sh
      2 
      3 # You might notice all mpv commands are aliased to have this input-ipc-server
      4 # thing. That's just for this particular command, which allows us to pause
      5 # every single one of them with one command! This is bound to super + shift + p
      6 # (with other things) by default and is used in some other places.
      7 
      8 for i in $(ls /tmp/mpvsoc*); do
      9 	echo '{ "command": ["set_property", "pause", true] }' | socat - $i;
     10 done