Wayvnc server

If you want to run a headless sway session on a server and connect to it.

Dependencies

  • sway
  • wayvnc

Server

Start sway with XDG_RUNTIME_DIR=/tmp/ WLR_BACKENDS=headless WLR_LIBINPUT_NO_DEVICES=1 sway

Start wayvnc inside sway: swaymsg --socket /tmp/sway-ipc.*.sock exec 'WAYLAND_DISPLAY=wayland-1 wayvnc -C ~/.config/wayvnc/config 0.0.0 …

more ...