Place all .socket
and .service
in ~/.config/user/
systemctl enable xclip.socket
systemctl start xclip.socket
systemctl status xclip.socket
echo "text to copy" | nc localhost 11988
Host xxx
Hostname xxx
RemoteForward 11988 localhost:11988
- Not use sudo, xclip require to use
DISPLAY
. Otherwise, suffer fromError: Can't open display: (null)
- pay attention to the name `[email protected]``
- Theoretically,
xclip
only support file