<h3 id="idea">Idea:</h3>
<p>Quickly copy a Youtube or other video site, and open in the MPV media player.</p>
<h4 id="plugins">Plugins:</h4>
<p>Vim Vixen for Firefox<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/vim-vixen" class="uri">https://addons.mozilla.org/en-US/firefox/addon/vim-vixen</a></p>
<p>Surfingkeys for Chrome/Chromium browser<br />
<a href="https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc?hl=en-US" class="uri">https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc?hl=en-US</a></p>
<h4 id="script">Script:</h4>
<pre><code>#!/bin/bash
## mpvurl

url=`xsel -o -b`
echo $url
mpv $url</code></pre>
<p>Rename <code>/usr/bin/vlc</code> to <code>/usr/bin/vlc.old</code></p>
<p>Copy script to <code>/usr/bin/vlc</code> and <code>chmod +x /usr/bin/vlc</code></p>
<h4 id="how-to-use">How to use:</h4>
<p>Vim Vixen copy is 'y' Surfingkeys copy is 'yy'</p>
<p>Shortcut to open copied video url is Shift-Mod-p, with Mod being the windows key</p>
<p>Tested with Gnome3, Xfce and i3</p>
<p>In i3, press Mod+v then Mod+s.</p>
<p>Any video played this way will be stacked under Firefox/Chromium for the rest of your session.</p>
<h4 id="config">Config:</h4>
<p>In ~/.config/i3/config</p>
<pre><code>#Paste url into mpv player
bindsym $mod+Shift+p exec vlc</code></pre>
<h3 id="example-screenshots">Example screenshots:</h3>
<p>Example of stacked Firefox/MPV layout<br />
<a href="https://hackerpublicradio.org/eps/hpr3133/img_001.png"><img src="https://hackerpublicradio.org/eps/hpr3133/img_001_thumbnail.png" alt="Example of stacked Firefox/MPV layout" /></a></p>
<p>For Gnome3 the setting can be reached with Mod (Windows key) and Shortcuts<br />
<a href="https://hackerpublicradio.org/eps/hpr3133/img_002.png"><img src="https://hackerpublicradio.org/eps/hpr3133/img_002_thumbnail.png" alt="For Gnome3 the setting can be reached with Mod (Windows key) and Shortcuts" /></a></p>
<p>And the Default Applications need to be changed<br />
<a href="https://hackerpublicradio.org/eps/hpr3133/img_003.png"><img src="https://hackerpublicradio.org/eps/hpr3133/img_003_thumbnail.png" alt="And the Default Applications need to be changed" /></a></p>
<p>The setting for Shortcuts in Xfce looks like this<br />
<a href="https://hackerpublicradio.org/eps/hpr3133/img_004.png"><img src="https://hackerpublicradio.org/eps/hpr3133/img_004_thumbnail.png" alt="The setting for Shortcuts in Xfce looks like this" /></a></p>
