so I'm trying to make a keyboard shortcut using xdotool. The only thing that I'm missing and that can't find out how to do is this:
How to press the option key on my keyboard. In more general case, and this would solve my problem as well, how to press a key using xdotool based on keycode (if you know about other program which can do this, I don't mind using that instead).
I have a windows keyboard and there is this 'option button' (in between
alt gr and
right ctrl), when pressed it opens the right-click menu (right next to where the typing cursor is). I need to press this button in a script somehow. I found out (using
showkey -k) that the keycode of this key is 127, but I can't make xdotool to press it.
Any ideas on how to do this?
PS: I know that I can simulate a right-click by
xdotool click 3 but that doesn't help because the right click then occurs where the mouse pointer is and I need it to happen where the typing cursor is.
Thank you :)