

On Sway:
This goes in Sway’s config…
output HEADLESS-1 {
pos 5120,0
mode 1920x1080@20Hz
bg ~/tausta_kuva fill
}
And this alias starts wayvnc.
alias RuutuVNC='swaymsg create_output && nohup wayvnc 0.0.0.0 5900 >/dev/null &'
After that, connect the VNC client on the tablet to port 5900 on the machine and sail the mouse cursor over to it when selecting the screen to share.
There must have been a config for wayvnc somewhere, but I can’t find it. I don’t need to use this anymore after switching from a dual portrait setup to a dual LG DualUp setup, so that my screens are now pretty much square and the right way around. On the dual portrait setup, my screenshare would show up sideways in landscape :D

Let’s also remind that at least Helix the very good editor automatically runs bash stuff through Shellcheck if you have it installed, while you type. It’s been amazingly useful and educational. I write a lot of bash at work and have learned many finer details from Shellcheck’s hints.
It even does the Clippy thing. I’m piping something into a sed s/…/… and it tips ‘try ${variable//search/replace} instead’.