Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass current youtube url to vlc or mpv video player #42

Closed
valdoonicanlives opened this issue Feb 17, 2016 · 2 comments
Closed

pass current youtube url to vlc or mpv video player #42

valdoonicanlives opened this issue Feb 17, 2016 · 2 comments

Comments

@valdoonicanlives
Copy link

I don't know javascript , I would like to pass the current url to vlc or mpv , something like?
mapkey("Mod1 m", function () {
system.spawn("sh -c 'vlc $(" + tabs.current.uri + ")'");
});

@brookhong
Copy link
Owner

There is no support to launch external program with javascript. But you can create mapping below

mapkey('a-m', "create vlc command line", function() {
    Normal.writeClipboard('vlc ' + window.location.href);
});

Then pressing alt-m will build a command line in clipboard, which you can paste within a launcher like alt-f2 / win-r to run.

@097115
Copy link

097115 commented Sep 29, 2020

@brookhong

There is no support to launch external program with javascript.

Just a clarification: nothing has changed here, no workaround possible because of security reasons, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants