[download]

local/bin/grab-menu

   1 #!/bin/bash
   2 
   3 dragndrop -tx | while read url; do
   4     case $url in
   5         *youtube*) mpv "$url" &;;
   6         *4chan*|*4cdn*|*2ch*)
   7             file=~/Pepes/${url##*/}
   8             wget -cO  "$file" "$url" && notify-send -i "$file" "file://$file" &
   9         ;;
  10         *)
  11             printf '%s\n' wget mpv youtube-dl chromium luakit nemo |
  12             menu -i grab | while read exec; do $exec "$url" & done
  13         ;;
  14     esac
  15 done