Score:1

How do I change input language without having to confirm it?

in flag

Everytime I change an input language using grave accent key it doesnt change instantly. There will be a popup of languages to choose between and I have to hit enter to apply the change. How do I change input language in 1 click without having to confirm it? The screenshot of the problem is attached here

enter image description here

br flag
https://askubuntu.com/q/1347062/739431
br flag
gnome-tweaks can also do. Install gnome-tweaks
dawnslayer avatar
in flag
which function on gnome tweaks? installed but cant find the right function to fix it
br flag
https://askubuntu.com/a/1029605/739431
dawnslayer avatar
in flag
cool thanks. found the code that fixed my problem https://askubuntu.com/questions/1134629/manipulate-the-default-shortcut-superspace-for-switching-to-next-input-source-w?answertab=votes#tab-top
muru avatar
us flag
Does this answer your question? [Manipulate the Default Shortcut Super+Space for Switching to Next Input Source without Graphical Representation](https://askubuntu.com/questions/1134629/manipulate-the-default-shortcut-superspace-for-switching-to-next-input-source-w)
Score:-2
in flag
#!/bin/bash

CURRENT=`gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().currentSource.index"`

if [ "$CURRENT" == "(true, '1')" ]; then
  gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()"
else
  gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[1].activate()"
fi
ar flag
Welcome to Ask Ubuntu. I am happy that you found a solution to your question and posted the answer so that it will help others. Please explain what this code does, and how and where to save it, how to use it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.