Thanks for this, but the first and accepted answer is, as I mentioned, basically just me hacking together a bunch of scripts as a solution (that's what I'm probably going to end up doing anyway, but an existing framework would be nice). On Thu, Feb 14, 2019 at 2:02 PM <frederik@ofb.net> wrote:
https://askubuntu.com/questions/97213/application-specific-key-combination-r...
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.