Putting the following into a .xbindkeysrc
makes my keyboard irresponsive after reboot, with only control keys responding:
"{ echo KeyStrPress Alt_L; echo KeyStr F1; echo KeyStrRelease Alt_L; } | xmacroplay :0"
Release+F13
I know the xmacroplay
works because I've executed it at the command line, and also, executing xbindkeys
to map, for example, F2, without rebooting, works as expected. So, first, I have a problem after rebooting, because of that I had to remove the .xbindkeysrc
file.
I was in the hard process of trying to create the simple mapping of Right Alt to Left Alt + F1 in the system. I was going to use xbindkeys
to map F13 to Alt + F1 and xmodmap
to map Right Alt to F13...
How do I map Right Alt to Left Alt + F1 so that I get hide/unhiding of the Launcher with a single key?
First of all, by default, Left Alt + F1 shortcut is not for hide/unhide the Launcher. This shortcut is used to give keyboard-focus to the Launcher. This means: gives keyboard-focus to the Launcher so it can be navigated with the cursor-keys. If you don't trust me, run the following command in terminal:
Now, to change Left Alt + F1 shortcut with another one, you can use the following command:
For example, to change it to Right Alt + F1, use:
This works for mykeyboard (I mean "<Mod5>" for Right Alt key). I'm not sure for other keyboards as far as I can't test at the moment.
See also: https://superuser.com/questions/53092/gnome-map-altgr-key-to-alt