Tuesday, January 2, 2024

LXDE/Raspberry language layout switching


setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll de,us

to your ~/.bashrc (or manually running it after LXDE has started will allow toggling between German and US English keyboard layouts using the Alt-Shift keys on the Raspbian. I've also used this same method in other situations where there was no graphical way to add and/or switch keyboard layouts. The scroll lock light will indicate the active layout when including "grp_led:scroll". "alt_shift_toggle" can be replaced with another key combination. Running

setxkbmap -option

will reset your layout settings.

(This post is based on an old pastebin with notes I got form who knows where. I don't know if more recent versions of Raspbian have a better way to achieve this but the command is still useful anyhow)

No comments:

Post a Comment

Popular Posts