Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Play embeded video in external player
- key({}, "Z", function (w)
- local view = w.view
- local uri = view.hovered_uri or view.uri
- if uri then
- luakit.spawn(string.format("urxvt -e youtube-viewer -I %q", uri))
- end
- end),
- -- Download and play embeded video in external player
- key({}, "X", function (w)
- local view = w.view
- local uri = view.hovered_uri or view.uri
- if uri then
- luakit.spawn(string.format("urxvt -e cclive -f best '%%t.%%s' "
- .. "--output-dir %q --exec='mplayer \"%%f\"' %q", os.getenv("HOME") .."Downloads/YouTube", uri))
- end
- end),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement