executable_mpv-wrapper 251 B

12345678910111213
  1. #!/usr/bin/env bash
  2. url="${*: -1}"
  3. notify-send "Open video $url"
  4. if [[ "$url" == http*://*vk.com* ]]
  5. then
  6. exec -a "$0" mpv --ytdl-raw-options=username=go.wigust@gmail.com,password="$(pass show vk.com/me)" "$@"
  7. else
  8. exec -a "$0" mpv "$@"
  9. fi