You may wish to look into xcape.  Currently i have capslock = escape when pressed alone, or control when pressed with another key. [0] <a href="https:&#x2F;&#x2F;github.com&#x2F;alols&#x2F;xcape" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alols&#x2F;xcape</a>