Couldn't display-switch send a keypress (something that doesn't do much otherwise, like F15) automatically?
You could probably get that result at the moment using the external command feature and something like xdotool (on Linux)
You could probably get that result at the moment using the external command feature and something like xdotool (on Linux)
I reckon it's probably 25 or 30 lines or Rust if you make it use the uinput crate to create a fake input device and send a mouse-move event that way.