Re: gsettings org.gnome.desktop.input-sources current alternative

2017-03-27 Thread Zan Zellor

That did the trick. Thanks!


On 03/27/2017 03:34 PM, Rui Tiago Cação Matos wrote:

On Sun, Mar 26, 2017 at 3:34 PM, Zan Zellor <zanzel...@gmx.com> wrote:

gsettings org.gnome.desktop.input-sources current 1

but it doesn't do anything.

Looking through its description using dconf-editor, I see it says that the
key is deprecated. Is there any alternative for the current key?

Right, it doesn't do anything because it's no longer used and that's
why it says it's deprecated. This runtime state used to be kept in
sync between gnome-settings-daemon and gnome-shell through that
gsetting but that had a few drawbacks so the whole functionality was
migrated to mutter/gnome-shell and so this is only kept internally
now.

You can still poke at it through the command line since gnome-shell
exposes a JS eval interface on DBus which has access to all its
internal objects. Something like:

$ 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()"

should activate your 0th layout and so forth for other indexes.

Rui


___
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list


gsettings org.gnome.desktop.input-sources current alternative

2017-03-26 Thread Zan Zellor
While googling for a way to change gnome's keyboard layout from the 
command line, I came across the setting


org.gnome.desktop.input-sources current.

However, when I try to use it, it doesn't do anything.

For example, if I've set my languages as English (0) and Russian (1) the 
following should change my layout to Russian


gsettings org.gnome.desktop.input-sources current 1

but it doesn't do anything.

Looking through its description using dconf-editor, I see it says that 
the key is deprecated. Is there any alternative for the current key?

___
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list