Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr3133 :: Quick tip - Using MPV with Youtube links

I give a quick tip on shortcut keys for watching Youtube or other video sites in MPV

<< First, < Previous, , Latest >>

Thumbnail of Archer72
Hosted by Archer72 on 2020-08-05 is flagged as Clean and is released under a CC-BY-SA license.
Video, media, bash, i3, Gnome3, Xfce. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr3133

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:02:04

general.

Idea:

Quickly copy a Youtube or other video site, and open in the MPV media player.

Plugins:

Vim Vixen for Firefox
https://addons.mozilla.org/en-US/firefox/addon/vim-vixen

Surfingkeys for Chrome/Chromium browser
https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc?hl=en-US

Script:

#!/bin/bash
## mpvurl

url=`xsel -o -b`
echo $url
mpv $url

Rename /usr/bin/vlc to /usr/bin/vlc.old

Copy script to /usr/bin/vlc and chmod +x /usr/bin/vlc

How to use:

Vim Vixen copy is 'y' Surfingkeys copy is 'yy'

Shortcut to open copied video url is Shift-Mod-p, with Mod being the windows key

Tested with Gnome3, Xfce and i3

In i3, press Mod+v then Mod+s.

Any video played this way will be stacked under Firefox/Chromium for the rest of your session.

Config:

In ~/.config/i3/config

#Paste url into mpv player
bindsym $mod+Shift+p exec vlc

Example screenshots:

Example of stacked Firefox/MPV layout
Example of stacked Firefox/MPV layout

For Gnome3 the setting can be reached with Mod (Windows key) and Shortcuts
For Gnome3 the setting can be reached with Mod (Windows key) and Shortcuts

And the Default Applications need to be changed
And the Default Applications need to be changed

The setting for Shortcuts in Xfce looks like this
The setting for Shortcuts in Xfce looks like this


Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?