Skip to content

Instantly share code, notes, and snippets.

@abenson
Created February 14, 2018 04:02
Show Gist options
  • Save abenson/0e58b52b856d97d2fbd2e783b5fafaed to your computer and use it in GitHub Desktop.
Save abenson/0e58b52b856d97d2fbd2e783b5fafaed to your computer and use it in GitHub Desktop.
my mpv frontends
#!/bin/sh
fname=$(zenity --file-selection 2>/dev/null)
if [ -r "$fname" ]; then
mpv "$fname"
fi
#!/bin/sh
url=$(zenity --entry --text="Enter URL:" 2>/dev/null)
if [ -n "$url" ]; then
mpv "$url"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment