https://askubuntu.com/questions/97213/application-specific-key-combination-remapping On Thu, Feb 14, 2019 at 12:12:17PM +0800, Oon-Ee Ng via arch-general wrote:
Before I try to hack together a solution, are there any existing apps/frameworks which allow for the same key/button to do something different based on the currently focused app (in X)? My intended use-case is to use the additional buttons on my drawing tablet to do various functions, but depending on the current app. So in Gimp they would do one thing, in Libreoffice another, in Inkscape another.