Capslock as modifier key for AutoKey

Posted by nil on Ask Ubuntu See other posts from Ask Ubuntu or by nil
Published on 2012-10-07T15:53:06Z Indexed on 2012/10/10 21:55 UTC
Read the original article Hit count: 166

Filed under:
|

I want to use Capslock as a modifier key for AutoKey shortcuts, and I've successfully remapped it to its own custom key using the terminal command

xmodmap -e 'clear Lock' -e 'keycode 66 = F13'.

However, AutoKey seems to only allow the modifiers Ctrl Shift Alt Super when setting shortcuts. As a work-around, could I somehow define the shortcuts within the script itself? Would this even be the most efficient work-around?

P.S. I found a relevant page, though I'm not exactly sure how to implement it.

P.P.S. I found a cheap way to do this by mapping Capslock to Shift+Alt and then setting all appropriate shortcuts in AutoKey with the modifier Shift+Alt. However, I'd really prefer having Capslock as its own modifier. Any help would be appreciated.

© Ask Ubuntu or respective owner

Related posts about python

Related posts about autokey