I prefer to swap control and capslock on my keyboard. I have set a new Debian 12 system this way using gnome-tweaks. This works well when physically accessing the Debian system. However it causes an issue with remote access.
I'd like to use Remote Desktop to control the Debian 12 system from a Windows system.
The Windows system uses a registry edit to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout to perform the same CTRL-CapsLock swap.
When I use VNCserver, I can run a TightVNC client on the Windows machine, and the keyboard works as expected with the ctrl-capslock swap in effect on the vncserver system.
However, when I run the Windows Remote Desktop Client and control the Debian 12 system, the keyboard is "double swapped", or actually unswapped.
I have spent hours trying to get a vncserver running on Debian 12, but have been defeated so far. VNC does not have the double-swap issue.
Is there a "different" way of implementing keyboard remapping other than gnome-tweaks that would not double-swap with Remote Desktop?