You are not logged in.

#1 2021-07-09 07:18:21

zegkljan
Member
Registered: 2017-12-30
Posts: 60

Is it possible to make GNOME remember input source for app windows?

I have multiple input sources (English and Czech) and I have set that each window has its input source independent of the others. My primary input source is English (as I do primarily programming and such stuff) but in communication apps (e.g. Telegram) I use mostly Czech. Now, whenever a Telegram window is created (either when run for the first time after login or when re-opened from tray), it has the primary input source i.e. English. Is there a way to make GNOME remember that specific apps start with specific input source? In my example, I would like Telegram to start with Czech instead of English (but still be able to switch manually).

I'm willing to even create an extension for that but I know literally nothing about writing extensions for GNOME, nor about GNOME's internal workings and settings storage etc.

There is a 4.5 years old unanswered question at stackexchange asking exactly that: https://unix.stackexchange.com/question … w-in-gnome

Last edited by zegkljan (2021-07-09 07:20:08)

Offline

#2 2021-07-09 08:23:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,523

Re: Is it possible to make GNOME remember input source for app windows?

For X11 you'd want to use https://www.x.org/releases/X11R7.5/doc/ … oup.3.html but I grepped /usr/bin and there seem to be no tools offering it, so a less elegant hack would be to use the prop spying as in the U.SE link and bind that to some xdotool calls where you start by "xdotool key ISO_First_Group" and then a sequence of "xdotool key ISO_Next_Group" until you reached the proper layout.

Offline

#3 2021-07-09 09:33:25

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 371
Website

Re: Is it possible to make GNOME remember input source for app windows?

Just in case you want to try, XFCE layout switcher can be set per app.

https://docs.xfce.org/panel-plugins/xfc … creenshots

Last edited by SimonJ (2021-07-09 09:35:33)


Rlu: 222126

Offline

#4 2021-07-09 09:42:29

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Is it possible to make GNOME remember input source for app windows?

It should be possible to create an extension, but I am not familiar with the API either.

Last edited by progandy (2021-07-09 09:43:16)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB