How to have programmer-friendly Dvorak with deadkeys in Ubuntu?

Solution 1:

I really like the way how Ubuntu 16.04 has solved the case on Macbook Air, here but I like the reverse way better about the fix in Macbook and PC. The tilde and backtick key will print the greater than and less than symbol, which I really like. This is very convenient also in PCs, and original thread. Edit ~/.xmodmaprc

keycode 60 = grave asciitilde

Run

xmodmap ~/.xmodmaprc

Find your keys by xmodmap -pk | grep greater; I really like the following configuration

    60         0x002e (period) 0x003e (greater)        
    93         0x003c (less)   0x003e (greater)        0x007c (bar)    0x00a6 
(brokenbar)      0x007c (bar)    0x00a6 (brokenbar)