Recent switcher to OSX after 16 years on a Solaris/CDE desktop. As you can imagine, things are a bit different 
Two quick initial questions:
- How do I detect and remap keys ? I am using a non-mac keyboard which does not, of course, have the "eject" button. So I want to measure what OSX thinks the "context menu" button is, and then remap that key to "eject".
So this is sort of two questions, namely:
a) what is the OSX equivalent of 'xev' (so I can press a button and receive confimation "I think you just pressed this button")
b) what is the OSX equivalent of 'xmodmap' (so I can remap whatever OSX thinks the "context menu" key is to "eject")
Second question is, how do I get command-tilde switching to return-to-last instead of always going forward ?
If you have, say, 10 Safari windows open, and you press command-tilde, you go to the next window. So far so good. But if you let go completely, and then press command-tilde again, instead of going BACK to the previous safari window, it actually continues going forward in the stack.
This is the opposite of how OSX treats command-tab, and I'd like their behavior to match. At first I thought this was a "mac-ism" but since I see command-tab works the way I expect it too, I think it is just a bug or an oddity.
So, how do I get command-tilde to behave the same way as command-tab ?
Many thanks.
Two quick initial questions:
- How do I detect and remap keys ? I am using a non-mac keyboard which does not, of course, have the "eject" button. So I want to measure what OSX thinks the "context menu" button is, and then remap that key to "eject".
So this is sort of two questions, namely:
a) what is the OSX equivalent of 'xev' (so I can press a button and receive confimation "I think you just pressed this button")
b) what is the OSX equivalent of 'xmodmap' (so I can remap whatever OSX thinks the "context menu" key is to "eject")
Second question is, how do I get command-tilde switching to return-to-last instead of always going forward ?
If you have, say, 10 Safari windows open, and you press command-tilde, you go to the next window. So far so good. But if you let go completely, and then press command-tilde again, instead of going BACK to the previous safari window, it actually continues going forward in the stack.
This is the opposite of how OSX treats command-tab, and I'd like their behavior to match. At first I thought this was a "mac-ism" but since I see command-tab works the way I expect it too, I think it is just a bug or an oddity.
So, how do I get command-tilde to behave the same way as command-tab ?
Many thanks.