I've been trying to swap CAPS LOCK key with Tab key. So the CAPS LOCK key shouldn't turn on the CAPS anymore, instead, act as the Tab key. Some people told me that I should create a .Xmodmap file in the ~/ directory. But I have no idea what's next.
I want to set the caps lock key working as a modifier (modkey) and layout switcher at the same time.
I want Caps Lock to act as a modkey in awesome in different hotkey combinations, for example, Caps Lock + Enter opens terminal and so on.
When Caps Lock is pressed as a single key, it should act as a layout switcher on its release (by calling function that executes setxkbmap in rc.lua config).
There are a lot of resources on how to swap Caps Lock and Control on Windows, but all of them swap
Caps Lock and Control. What I want is to have Caps Lock as Control without mapping Control to Caps
Lock. In other words, I want to have both Caps Lock AND Control mapped to Control.
*TH*is is a strange problem. *NO*tice how the beginning of my sentences include two capitals? Well, over the years I have developed
a terrible habit... and it may be too late to fix. Instead of holding
shift like a normal person to capitalize my works, I hit Caps Lock,
then hit the letter, then hit Caps Lock again. PRetty weird huh?