Article 5BN4S Setting keyboard layouts programmatically

Setting keyboard layouts programmatically

by
PaulExordium
from LinuxQuestions.org on (#5BN4S)
I have the following bash script in Debian 9/Gnome:

Code:#!/bin/bash
gsettings set org.gnome.desktop.input-sources sources "[('"xkb"','"us"'),('"xkb"','"fr"'),('"xkb"','"it"')]"
gsettings set org.gnome.desktop.input-sources current 1
exit1) The layouts are added as expected, but the selection for the current one has no effect. What am I missing?

2) Where can I find the abbreviations for the variants of a given language?latest?d=yIl2AUoC8zA latest?i=GZZRD1rxmeA:cU9Ic3pZhkM:F7zBnMy latest?i=GZZRD1rxmeA:cU9Ic3pZhkM:V_sGLiP latest?d=qj6IDK7rITs latest?i=GZZRD1rxmeA:cU9Ic3pZhkM:gIN9vFwGZZRD1rxmeA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments