1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-14 09:11:31 +01:00
Files
JKArch/programas/jkarch-conf/jkarch-conf
2016-06-19 10:08:34 +00:00

73 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
function pause {
echo "Pulse enter para continuar..."
read
}
function mostrardialog {
local titled
local msgd
titled=$1
msgd=$2
Xdialog --title "$titled" --msgbox "$msgd" 15 60
}
## ESTA EN PROCESO, ESTE SCRIPT NO HACE NADA ACTUALMENTE
exit
optb=`dialog --stdout --checklist "¿Editores de texto y/o office?" 0 0 6 1 "Libreoffice" on 2 "AbiWord" off 3 "Gnumeric" off 4 "WPS Office" off 5 "leafpad (Bloc de notas)" on 6 "gedit" off 7 "notepadqq" off`
case $optb in
*1*)
packb="libreoffice-fresh";;&
*2*)
packb="$packb abiword";;&
*3*)
packb="$packb gnumeric";;&
*4*)
packb="$packb wps-office";;&
*5*)
packb="$packb leafpad";;&
*6*)
packb="$packb gedit";;&
*7*)
packb="$packb notepadqq";;&
esac
pacman -S $packb --noconfirm
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"`
case $optentorno in
1)
pacman -S lxde --noconfirm
#Quitar paquetes no necesarios para correr lxde
pacman -R lxmusic lxlauncher lxdm --noconfirm
instentorno=1
break
;;
2)
pacman -S xfce4 --noconfirm
instentorno=1
break
;;
3)
pacman -S cinnamon --noconfirm
instentorno=1
break
;;
4)
pacman -S gnome --noconfirm
instentorno=1
break
;;
5)
pacman -S plasma --noconfirm
pacman -R plasma-mediacenter ksshaskpass --noconfirm
instentorno=1
break
;;
6)
break
;;
esac