Skip to content

Commit

Permalink
grml-lang: support language settings for Italy
Browse files Browse the repository at this point in the history
Thanks: Marco d'Itri <md@Linux.IT>
  • Loading branch information
mika committed Apr 18, 2014
1 parent 30ff24e commit 3209d31
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion usr_bin/grml-lang
Expand Up @@ -11,7 +11,7 @@ PN="$(basename $0)"

usage(){
echo "Usage: $0 <language>"
echo "supported values: at, ch, de, dvorak, es, fr, jp, us"
echo "supported values: at, ch, de, dvorak, es, fr, it, jp, us"
}

setvalue(){
Expand Down Expand Up @@ -59,6 +59,10 @@ if [ -z "$DISPLAY" ] ;then
echo "Loading keymap for Switzerland..."
sudo loadkeys i386/qwertz/sg-latin1.kmap.gz
echo -e "\nDone."
elif [ "$1" = "it" ] ; then
echo "Loading keymap for Italy..."
sudo loadkeys i386/qwerty/it.kmap.gz
echo -e "\nDone."
elif [ "$1" = "us" ] ; then
echo 'Loading keymap us...'
sudo loadkeys i386/qwerty/us-latin1.kmap.gz
Expand Down Expand Up @@ -102,6 +106,10 @@ else
echo "Loading keymap for Switzerland..."
setxkbmap ch
echo -e "\nDone."
elif [ "$1" = "it" ] ; then
echo "Loading keymap for Italy..."
setxkbmap it
echo -e "\nDone."
elif [ "$1" = "jp" ] ; then
echo "Loading keymap for Japan..."
setxkbmap -model jp106 -layout jp
Expand Down

0 comments on commit 3209d31

Please sign in to comment.