Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 606 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 606 Bytes

Weechat scripts written for daily use and learning purposes.

Enable socket on mpv startup - add this line to mpv.conf input-unix-socket=/tmp/mpvsocket or input-ipc-server=/tmp/mpvsocket It depends on mpv version.

Tunnel mpv socket over ssh:

ssh -R/tmp/mpvsocket:/tmp/mpvsocket -p ssh_port user@host

Delete tunneled socket after logout (add these lines to ~/.bash_logout):

if [ -S /tmp/mpvsocket ]; then
   rm /tmp/mpvsocket
fi

In order to use weechat-np-mpc-hc script remotely you should tunnel port over ssh like this:

ssh -R 13579:localhost:13579 -p ssh_port user@host