3 ms·
> so you won’t need the GUI open to use shortcuts I've been looking for a Linux clipboard manager to use over SSH but they all error out with for example (on r
by I_complete_me 1y ago
> so you won’t need the GUI open to use shortcuts
I've been looking for a Linux clipboard manager to use over SSH but they all error out with for example (on running SSH in Windows Warp to access a LAN Linux box):
echo "doodah" | xclip -selection c
Error: Can't open display: (null)
Here I am trying to copy to the X-11 clipboard in order to paste elsewhere inside the Linux box -- hope that's not too confusing!
Will your (eventual) clipboard manager work over SSH for this use case?
- yjftsjthsd-h 1y agoYou can just connect to a running X session from an SSH shell; if your X server is on display :0 (usually the default), then you just export DISPLAY=:0 echo foo | xclip -selection clipboard This even can work with Wayland, where it becomes export WAYLAND_DISPLAY=wayland-1 echo foo | wl-copy (Note that AFAICT Wayland sessions number from 1 instead of 0)