maybe it is also possible to have both CTRL and ESC on Caps lock:
macOS
- find out how to do the remapping by script
- it is easy to do in settings but I haven't looked up how to do it in the terminal
ubuntu
- haven't tested if this works
- Remapping
CAPS-LOCK to ESC
- in /etc/default/keyboard or in /etc/default/console-setup
change XKBOPTIONS="" to XKBOPTIONS="esc:swapcaps"
sudo dpkg-reconfigure -phigh console-setup
reboot
maybe it is also possible to have both CTRL and ESC on Caps lock:
macOS
ubuntu
CAPS-LOCKtoESCchange
XKBOPTIONS=""toXKBOPTIONS="esc:swapcaps"sudo dpkg-reconfigure -phigh console-setupreboot