How to allow users to choose their keyboard layout on IGEL OS?


Hi, here’s a nice question for a Monday morning. We are are looking for a a way for our users to choose their keyboard layout. In our organization we have about 8 different keyboard languages/layouts, however I’m only able to let the users choose from 4 different keyboard layouts if I set up User Interface – Keyboard – Keyboard Layout and User Interface – Keyboard – Additional keyboard layouts. I’ve tried to create an additional keyboard profile where the other languages are selected under Additional keyboard layouts, but that obviously overwrites the ones selected in the main keyboard profile. Is there a keyboard settings app that I’m not seeing? Is there another way to set this up? Or would we really have to create separate profiles for each keyboard layout and assign them to specific groups of devices, which is not really preferred?

Learn more, read the entire thread inside the IGEL Community o Slack

Hi! Yes, it‘s not an out of the box one! I created a script a few months ago to give user the opportunity to switch between English/German GUI/Keyboard language. You could maybe adapt it for your needs:


Thanks! Though I’m having some trouble opening the zip file, both windows and 7zip are unable to open it


@member Second try


👍


👌


@member can we also just adjust keyboard without GUI? tried this and its not working “`echo ‘#!/bin/bash’ > /wfs/lang_selection.sh

echo ‘# Setting Variables’ >> /wfs/lang_selection.sh

echo ‘LOGFILE=lang_selection.log’ >> /wfs/lang_selection.sh

echo ‘LOGPATH=/var/log/’ >> /wfs/lang_selection.sh

echo ‘SET=setparam’ >> /wfs/lang_selection.sh

echo ‘SETUP=killwait_postsetupd’ >> /wfs/lang_selection.sh

echo ‘EN=en_US’ >> /wfs/lang_selection.sh

echo ‘DE=de_DE’ >> /wfs/lang_selection.sh

echo ‘# Killing PNLogin Process’ >> /wfs/lang_selection.sh

echo ‘echo “`date`: Killing Login Processes” > $LOGPATH$LOGFILE’ >> /wfs/lang_selection.sh

echo ‘killall pnlogin 2>/dev/null’ >> /wfs/lang_selection.sh

echo ‘# Selection start’ >> /wfs/lang_selection.sh

echo ‘echo “`date`: Language Selection started” >> $LOGPATH$LOGFILE’ >> /wfs/lang_selection.sh

echo ‘activity=$(zenity –list –text “Please select a language” –radiolist –column “Select” –column “Language” English “English for $EN Keyboard” German “German for $DE Keyboard” );’ >> /wfs/lang_selection.sh

echo ‘case “$activity” in’ >> /wfs/lang_selection.sh

echo ‘”English” ) echo “`date`: English selected” >> $LOGPATH$LOGFILE && $SET userinterface.keyboard.layout $EN && echo “`date`: Keyboard Language set as English” >>$LOGPATH$LOGFILE && /usr/bin/gtkmessage -c -S -s 20 -m “Confirming this window will change settings.Would you like to continue?” && echo “`date`: Applying changes” >> $LOGPATH$LOGFILE && write_rmsettings && killwait_postsetupd && echo “`date`: Starting Session” >> $LOGPATH$LOGFILE && /bin/bash /config/sessions/pnlogin0;;’ >> /wfs/lang_selection.sh

echo ‘”German” ) echo “`date`: German selected” >> $LOGPATH$LOGFILE && $SET userinterface.keyboard.layout $DE && echo “`date`: Keyboard Language set as German” >>$LOGPATH$LOGFILE && /usr/bin/gtkmessage -c -S -s 20 -m “Confirming this window will change settings.Would you like to continue?” && echo “`date`: Applying changes” >> $LOGPATH$LOGFILE && write_rmsettings && killwait_postsetupd && echo “`date`: Starting Session” >> $LOGPATH$LOGFILE && /bin/bash /config/sessions/pnlogin0;;’ >> /wfs/lang_selection.sh

echo ‘* ) echo “`date`: Error” >> $LOGPATH$LOGFILE;;’ >> /wfs/lang_selection.sh

echo ‘esac’ >> /wfs/lang_selection.sh

chmod +x /wfs/lang_selection.sh & touch /var/log/lang_selection.log & chown user:root /var/log/lang_selection.log“`


Did you checked the /var/log/lang_selection.log? What happens when starting the script by hand from terminal?


Here is our MOD, profile with the script we have placed in /wfs and a screenshot of or file transfer settings. (Used and tested on OS10)


Dank u well!! Will have a look later on! Thank you for sharing so much🙏👍

Continue reading and comment on the thread ‘How to allow users to choose their keyboard layout on IGEL OS?’.  Not a member? Join Here!

Learn more, search the IGEL Knowledge Base



Ask a question or comment on the above message thread?

Join or log in to the IGEL Community to ask us anything and meet other IGEL customers, partners, and EUC enthusiasts.

Submit a question, or Join Today!


Popular Message Threads


Categories & Tags: