Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "mps-youtube"
> 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)3
!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)
- 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