Wong's Cafe
2022-05-12 (Updated 2023-06-10)
The other day I came upon a github repo with a script that creates a virtual display and use it as second display. I found out this can be done on my swayWM easily by hand.
This is a guide of how to use any device as your second display.
On swayWM/wayland, this can be done with
swaymsg create_output
Use swaymsg -t get_outputs
to verify
For wayland, use wayvnc
wayvnc -o <OUTPUT_NAME>
Make sure you firewall isn't blocking the ports and enable encryption on public networks.
output <name> position|pos <X> <Y>
Places the specified output at the specific position in the
global coordinate space.
The man page of sway-output has a nice description.