Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 462  / 2 Years ago, wed, august 17, 2022, 2:47:14

I have this in my .xinitrc:



setxkbmap -layout "jp,ru" -option "grp:alt_shift_toggle"


(I'm in Japan, have a local keyboard, and occasionally use the Russian keyboard layout)



This works fine, most of the time:



misha@misha-lmd:~$ setxkbmap -query
rules: evdev
model: pc105
layout: jp,ru
options: grp:alt_shift_toggle


But occasionally, I'm no longer able to switch to Russian. When I repeat the above command, I get:



misha@misha-lmd:~$ setxkbmap -query
rules: evdev
model: pc105
layout: jp
options: grp:alt_shift_toggle


So something is changing the X keyboard layout. What could it be, and how do I get rid of it? It's annoying to have to do setxkbmap -layout "jp,ru" -option "grp:alt_shift_toggle" every time the Russian layout stops working.


More From » xorg

 Answers
7

Ubuntu intermittently checks if there are X settings and removes them to prevent conflicts with dbus's window manager configuration.



Instead of using X settings you should configure the keyboard using dbus.


[#32357] Wednesday, August 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atereress

Total Points: 79
Total Questions: 106
Total Answers: 119

Location: Federated States of Micronesia
Member since Sun, May 16, 2021
3 Years ago
atereress questions
Wed, Aug 4, 21, 03:15, 3 Years ago
Sat, Apr 16, 22, 17:34, 2 Years ago
Thu, Dec 22, 22, 05:56, 1 Year ago
Sun, May 15, 22, 15:59, 2 Years ago
;