I am trying to map specific keys to character outputs, such as "Ctrl + O = |". I understand that different language layouts provide different mappings but I want to have more control over them, on any layout. Does anyone know any software or shell scripts I can write to enable this feature?
Sorry if this is a duplicate, I have searched but not found an answer about this specifically.
EDIT: I am using Ubuntu 18.04