1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-15 17:51:33 +01:00
This commit is contained in:
kprkpr
2016-05-31 21:59:36 +02:00
parent 03ea0e0095
commit 6920d8a676

View File

@@ -222,6 +222,17 @@ systemctl enable lightdm
systemctl enable NetworkManager
}
function idiomax11 {
echo "KEYMAP=$langabr" > /etc/vconsole.conf
echo "# Read and parsed by systemd-localed. It's probably wise not to edit this file" > /etc/X11/xorg.conf.d/00-keyboard.conf
echo "# manually too freely." >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo 'Section "InputClass"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo ' Identifier "system-keyboard"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo ' MatchIsKeyboard "on"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo ' Option "XkbLayout" "'$langabr'"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo 'EndSection' >> /etc/X11/xorg.conf.d/00-keyboard.conf
}
function entorno {
clear
optentorno=`dialog --stdout --nocancel --menu "Escoje tu entorno de escritorio" 0 0 5 1 "LXDE (Muy liviano)" 2 "XFCE (Liviano y bonito)" 3 "Cinnamon (Facil para antiguos usuarios de Windows)" 4 "Gnome (Complejo, pero practico)" 5 "Plasma/KDE (Pesado aunque bonito) " 6 "No instalar nada, solo la terminal de comandos"`
@@ -267,14 +278,7 @@ esac
if [[ $instentorno ]];then
graficos
#Poner el teclado bien en x11
echo "# Read and parsed by systemd-localed. It's probably wise not to edit this file" > /etc/X11/xorg.conf.d/00-keyboard.conf
echo "# manually too freely." >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo 'Section "InputClass"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo ' Identifier "system-keyboard"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo ' MatchIsKeyboard "on"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo ' Option "XkbLayout" "'$langabr'"' >> /etc/X11/xorg.conf.d/00-keyboard.conf
echo 'EndSection' >> /etc/X11/xorg.conf.d/00-keyboard.conf
idiomax11
#Aqui va la personalizacion de programas, ya que son graficos.
programasguiuser
fi
@@ -291,7 +295,7 @@ esac
function otrasconfig {
mostrardialog "Otras configuraciones" "Aquí puedes seleccionar otras configuraciones que puedes hacer a Arch antes de terminar la instalacion, como su nombre"
othopt=`dialog --stdout --checklist "Otras configuraciones" 0 0 8 1 "Cambiar hostname (Nombre pc)" off`
othopt=`dialog --stdout --checklist "Otras configuraciones" 0 0 8 1 "Cambiar hostname (Nombre pc)" off 2 "Usar otra distribucion de teclado como principal" off`
case $othopt in
*1*)
@@ -300,8 +304,16 @@ case $othopt in
echo $nam > /etc/hostname
;;&
*2*)
echo "none";;&
*3*)
echo "Escoja su idioma para la distribucion del teclado"
options=($(cat /etc/locale.gen | grep '^#[a-zA-Z]' | cut -c2-30 | cut -f1 -d"_" | sort | uniq))
select opt in "${options[@]}"
do
case $opt in
*) langabr=$opt;break;;
esac
done
idiomax11
;;&
esac
}