Is there an easy way to set up multiple languages (my case english & hebrew) on Raspbian that can be switched using Alt-shift (or alike) ?
I tried to follow several threads (like this) with no success so far.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
I am trying to deal with the same issue, with limited success (switching between English (US) and Greek).
Adding in the terminal:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,gr
works for me. For you logically it should be:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,il
Be careful, there can be no space between the comma and the second country code.
Only problem is that it resets after reboot. Adding to
/etc/default/keyboard and altering
.bashrc didn't work for me.
I have found a solution to this. I am switching between English (GB) and Russian (phonetic).
This is from noobish-nix's blog:
I'm using Raspbian Buster.
Just open the configuration file:
sudo nano /etc/xdg/lxsession/LXDE/autostart
(Here I'm using nano, but feel free to use any other editor you please.)
Then add a line to the end of the file, beginning with an '@':
@setxkbmap -layout "gb,ru" -variant ",phonetic" -option "grp:alt_shift_toggle"
for example. This should persist between reboots.
For switching between English (US) and Hebrew:
@setxkbmap -layout "us,il" -option "grp:alt_shift_toggle"