By default, no layout on my Macbook Air allows me to print backtick (`) and tilde (~) symbols. Instead, I get backslash, pipe or whatever, depending from the layout.
I changed the behavior of the key that I want to use to print tilde using the following commands:
xev <press tilde button> keycode <keycode from xev output> = grave asciitilde >~/.Xmodmap xmodmap ~/.xmodmaprc
(instructions are based on these https://stackoverflow.com/questions/17757232/switch-tab-and-backtick-keys-ubuntu-linux)
But unfortunately, after I switch the layout, I get the default behavior again.
How to make these changes permanent?