Last active
September 14, 2016 13:34
-
-
Save alexandreprates/f38e6b789e46765ecfb1878ef5b63dd4 to your computer and use it in GitHub Desktop.
Youtube floating popout for i3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| tempfile="/tmp/$(date +%s).html" | |
| cat <<EOS > $tempfile | |
| <html> | |
| <head><meta charset="UTF-8"><title>Youtube Pop-up</title></head> | |
| <body><iframe width="640" height="360" src="$1" frameborder="0" allowfullscreen></iframe></body> | |
| </html> | |
| EOS | |
| google-chrome-stable --chrome-frame --window-size=660,380 --app="file://$tempfile" & | |
| sleep 1 | |
| rm -v "$tempfile" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to install:
for_window [window_role="pop-up"] floating enable #Floating pop up windowHow to use:
youtube_popup "https://www.youtube.com/watch?v=ZrxsKUYXp9U"