mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-17 18:51:32 +01:00
changes
This commit is contained in:
@@ -222,6 +222,17 @@ systemctl enable lightdm
|
|||||||
systemctl enable NetworkManager
|
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 {
|
function entorno {
|
||||||
clear
|
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"`
|
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
|
if [[ $instentorno ]];then
|
||||||
graficos
|
graficos
|
||||||
#Poner el teclado bien en x11
|
#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
|
idiomax11
|
||||||
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
|
|
||||||
|
|
||||||
#Aqui va la personalizacion de programas, ya que son graficos.
|
#Aqui va la personalizacion de programas, ya que son graficos.
|
||||||
programasguiuser
|
programasguiuser
|
||||||
fi
|
fi
|
||||||
@@ -291,7 +295,7 @@ esac
|
|||||||
function otrasconfig {
|
function otrasconfig {
|
||||||
mostrardialog "Otras configuraciones" "Aquí puedes seleccionar otras configuraciones que puedes hacer a Arch antes de terminar la instalacion, como su nombre"
|
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
|
case $othopt in
|
||||||
*1*)
|
*1*)
|
||||||
@@ -300,8 +304,16 @@ case $othopt in
|
|||||||
echo $nam > /etc/hostname
|
echo $nam > /etc/hostname
|
||||||
;;&
|
;;&
|
||||||
*2*)
|
*2*)
|
||||||
echo "none";;&
|
echo "Escoja su idioma para la distribucion del teclado"
|
||||||
*3*)
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user