[arch-general] Keyboard shortcuts which change based on current app
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.
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.
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.
On Thu, 14 Feb 2019 at 05:12, Oon-Ee Ng via arch-general < arch-general@archlinux.org> 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.
Don't your applications have an option to customize the shortcuts? -- damjan
Some do, but maintaining existing shortcuts is good for when I'm actually using the keyboard (these 'per-app' shortcuts are meant for the additional buttons on my drawing tablet). I'd only use the application options for shortcuts which really annoy me, like how some use Ctrl-Y to re-do and some use Ctrl-Shift-Z. Not that all apps support re-assigning such basic shortcuts anyway.... On Thu, Feb 14, 2019 at 8:20 PM Damjan Georgievski via arch-general < arch-general@archlinux.org> wrote:
On Thu, 14 Feb 2019 at 05:12, Oon-Ee Ng via arch-general < arch-general@archlinux.org> 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.
Don't your applications have an option to customize the shortcuts?
-- damjan
participants (3)
-
Damjan Georgievski
-
frederik@ofb.net
-
Oon-Ee Ng