On MacOS I'm using Karabiner-Elements (https://karabiner-elements.pqrs.org/) to set up cmd-q so I have to double tap it to quit applications. This prevents quitting applications by mistake when using cmd-w to close windows for example.
So basically I will press and hold cmd and then double tap q.
Is it possible to set up Ubuntu to do the same thing?
Thanks!