Hi,
I’m new to Lubuntu. Liking it so far! Wanted to report odd behavior. Could be me, could be something worth informing you guys about.
Just installed 26.04 minimal. Used a keyboard with Belgian layout to do so. Selected that as my layout during setup. After installation, Keyboard and Mouse Settings reported Belgian as the only available/installed layout.
However, when I connected remotely through Rustdesk or Teamviewer and hit any key on the remote keyboard, which also has Belgian layout, the system switched to US layout in two places:
- The login screen. I mean the one you get after rebooting/logging out, not the xdg screensaver. (I installed xdg-utils manually after getting an error clicking Lock screen in the main menu.)
- The Keyboard state indicator widget on the taskbar.
When I hit any key on the local physical keyboard, back to BE it went both on the login screen and the widget.
In the case of Rustdesk, this resulted in wrong keystrokes being sent. (Fixed by switching from Map mode to Translate Mode in the Rustdesk client.)
Managed to override this behavior as follows.
sudo nano /usr/share/sddm/scripts/Xsetup
At the top of the file, (after the #!/bin/sh shebang) added:
setxkbmap -model pc105 -layout be -option ""
Then:
mkdir -p ~/.config/autostart
nano ~/.config/autostart/keyboard.desktop
Added:
[Desktop Entry]
Type=Application
Name=Set Keyboard Layout
Exec=setxkbmap -model pc105 -layout be -option ""
NoDisplay=true
Rebooted.