0

I use parallels to run windows on my MacBook Pro for one of the application at work that requires hotkeys (such as Alt + C, Alt + X, Alt + Q etc). To ease my process while using this app, I tried using the Parallels' Shortcuts setting to change "Command" to "Alt", which works fine most of the time, but tends to not register when I press "Command + Q" even when I switched out "Quit ____" to a different hotkey. So, my only ways to comfortably and reliably use that button are either (1) having my thumb go all the way to the "Option" button, which is a bit of a stretch OR (2) going to System Preferences > Keyboard > Modifier Keys > switching Command Key to Option Key AND Option Key to Command Key and switch back when I'm done.

Basically, I was wondering if I can create a keyboard Macro, maybe set it to F12 to automatically switch between those 2 settings I mentioned above (Command Key to Option Key AND Option Key to Command Key Vice Versa).

1
  • What does this have to do with Ubuntu? – David Apr 21 at 15:33
0

Registering a command or a script to shortcut menu.

  1. Swap Left Command (Super) key to Left Option (Alt) key.

Install setxkbmap by sudo apt install x11-xkb-utils

setxkbmap -option altwin:swap_lalt_lwin

This will swap ALT_L and Super_L

  1. Register this command to your Shortcut items.

shortcutreg1

shotcut reg1

Now each time you press F12 Command key and Option key goes into another or goes back to normal.

1
  • Thank you!!!!!! – jack Apr 24 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.