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

Start video in the same terminal instance? #233

Open
intmainreturnzero opened this issue Dec 30, 2018 · 3 comments
Open

Start video in the same terminal instance? #233

intmainreturnzero opened this issue Dec 30, 2018 · 3 comments

Comments

@intmainreturnzero
Copy link

When the video starts, a new terminal is opened (I'm using mplayer with ffmpeg as my video_player). The original window only shows buffering information etc.

Can we move the existing youtube-viewer process to background and start the video in same terminal instead? That would help in saving some screen estate in tiling WMs like i3.

@gevorgyg
Copy link

Would be nice!

@ertwro
Copy link

ertwro commented Feb 25, 2019

There are scripts for that, for instance i3-swallow. An internal solution for it would be environment dependent thus making its implementation probably a headache.

Edit: if you are wondering how to use it, you can modify the configuration file youtube-viewer.conf. For instance.
in the videoplayers option:
video_player_selected => "mpv",
In the command field make sure the equivalent symlink for your system is:
cmd => "/usr/sbin/i3-swallow /usr/sbin/mpv"

@SisyphusIsntHappy
Copy link

mpv can spawn video on any window, if given the flag -wid <insert window id>
For example, mpv <filename/youtube-url> -wid $(xwininfo | awk '{if(/Window id:/) print $4}' & xdotool click 1)

This will spawn mpv on terminal itself, be careful to keep the mouse pointer inside the terminal window.

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

4 participants