Ubunutu --> Gnome Tweaks --> Additional Layout options --> Make Caps Lock an additional ESC
Linux Mint --> Keyboard --> Layout --> Options --> Same
From the terminal : setxkbmap -option caps:escape
There are option to swap CapsLock and Escape too, or you can have CapsLock when pressing both shift keys and other worthwhile options
Ubunutu --> Gnome Tweaks --> Additional Layout options --> Make Caps Lock an additional ESC
Linux Mint --> Keyboard --> Layout --> Options --> Same
From the terminal : setxkbmap -option caps:escape
There are option to swap CapsLock and Escape too, or you can have CapsLock when pressing both shift keys and other worthwhile options