Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "mps-youtube"
-
!Rant
> Go to co-workers working machine
> install tmux and mps-youtube
> play very subtle sounds from console
> close console but keep session running with tmux
> watch coworker go insane because he can't detect the sound source
How to make your coworker go insane in 5 easy Steps3 -
Holy fuck...I didn't expect this.
simple terminal from suckless.org
(aka. st) After appiled path "alpha" -> It did transperent in the way that if you have 2 terminal overlaps -> It'll draw a transperent surface with the underline terminal. so, It's not an idea for open vim with i3 tab or stack mode. I kinda gave up on using it until I realize -> what if underline terminal is "mpv" which is video player. This is a result (Holy fuck is awesome). by set "hi Normal ctermbg=NONE" in vimrc to make transperent background with vim.
Now, I have "mps-youtube" which allow me to watch youtube with mpv, basicly (vim + youtube) as the same time.
ps. If gif is not play -> tell me, I'll upload video. (seriously, is awesome)2 -
!rant // more like a warning
If you use tty (no X or graphic env) and use tmux as terminal multiplexer -> avoid using mpv in it.
.
When you use -> mpv --vo=drm "video name" in tmux session and want to pause video -> cpu usage will climb up to 100% on single core.
(can make laptop warm)
(I don't know what exactly cause this but my theory is, tmux cant redraw after video is pause and it keep trying forever and end up using cpu 100% on single core)
.
Solution
- use mpv on another tty which you didn't run tmux.
- example : tty1: all stuff, tty2: mpv.
And cpu usage will be normal after video is pause.4