Quickly copy a Youtube or other video site, and open in the MPV media player.
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
#!/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
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.
In ~/.config/i3/config
#Paste url into mpv player
bindsym $mod+Shift+p exec vlc
Example of stacked Firefox/MPV layout
For Gnome3 the setting can be reached with Mod (Windows key) and Shortcuts
Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.