You are not logged in.
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
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
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
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