vaido-world / Linux-script

0 stars 0 forks source link

Set language input source in Gnome #3

Open BoQsc opened 4 years ago

BoQsc commented 4 years ago
gsettings set org.gnome.desktop.input-sources current 0
BoQsc commented 4 years ago
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()"

https://askubuntu.com/questions/1039950/ubuntu-18-04-how-to-change-keyboard-layout-from-a-script/1039964#1039964

NordenF commented 2 years ago

The above command (org.gnome.Shell) doesn't work in Gnome 4 (Ubuntu 22.04).