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
Asked
Active
Viewed 236 times
1 Answers
-2
#!/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
user68186
- 37,461
dawnslayer
- 111
