0

The present question does not concern how to use keyboard shortcuts to navigate through a list of layouts, but how to script this with bash commands.

In a script I wrote to create a file where each line contains the first and the last word of each page of my greek dictionary, I use "setxkbmap -layout gr,… -variant polytonic,…" to have my polytonic greek layout automatically activated.

Unfortunately, in Ubuntu 18.04 LTS, this command resets the list of available layouts without resetting accordingly the list which the graphical interface relies on to operate. This situation makes the graphical interface unfunctional.

When the script terminates, neither the graphical interface nor the keyboard shortcuts can be used to revert to the initial situation. As the greek layout does not include any latin character, no bash command can be typed in.

So my question is : is it possible, and how to do it, to activate any layout in the list of available layouts, without modifying the list created by the graphical interface ? In other words, how to activate a layout without using «setxkbmap» ? Or which option of «setxkbmap» does perform such activation ?

Arbiel

Arbiel
  • 33

0 Answers0