macOS + Command-Tab + NoMachine NX

These are the commands that prevent macOS from passing Command-Tab to NX session. This way, you don’t end up with application switcher forcing you to chose the application once you are back to NX.

gsettings set org.gnome.shell.keybindings toggle-overview '["disabled"]'
gsettings set org.gnome.shell.keybindings open-application-menu '["disabled"]'
gsettings set org.gnome.shell.keybindings toggle-application-view '["disabled"]'
gsettings set org.gnome.mutter overlay-key ''