obosdi-pkg/install/desktop/menu

43 lines
1.2 KiB
Text
Raw Normal View History

2015-08-20 14:37:06 -06:00
#!/bin/bash
. ./lib
options=()
2015-12-12 15:32:34 -07:00
options+=("Plasma5" "")
2015-08-20 14:37:06 -06:00
options+=("XFCE4" "")
options+=("Gnome" "")
options+=("Cinnamon" "")
2015-08-31 20:54:27 -06:00
options+=("LXDE" "")
options+=("LXQt" "")
2015-08-20 14:37:06 -06:00
options+=("Mate" "")
options+=("Enlightenment" "")
2015-08-29 16:26:53 -06:00
options+=("Openbox" "")
2015-12-13 02:30:02 -07:00
options+=("Deepin" "")
2016-03-04 17:27:38 -07:00
#options+=("KDE4" "(AUR) End of life")
2015-08-20 14:37:06 -06:00
#options+=("GnuStep" "")
#options+=("i3" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Install Desktop Menu :" --menu "First item is most maintained" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
'KDE4') menu install/desktop/kde4/menu;;
'XFCE4') menu install/desktop/xfce4/menu;;
'Gnome') menu install/desktop/gnome/menu;;
2015-08-31 20:54:27 -06:00
'Plasma5') menu install/desktop/plasma5/menu;;
'Cinnamon') script install/desktop/cinnamon/packages;;
2015-08-31 20:57:58 -06:00
'LXDE') script install/desktop/lxde/packages;;
2015-08-31 20:08:14 -06:00
'LXQt') menu install/desktop/lxqt/menu;;
2015-08-31 20:54:27 -06:00
'Mate') menu install/desktop/mate/menu;;
'Enlightenment') script install/desktop/enlightenment/packages;;
2015-08-29 16:27:41 -06:00
'Openbox') script install/desktop/openbox/packages;;
2015-12-13 02:30:02 -07:00
'Deepin') menu install/desktop/deepin/menu;;
2015-08-20 14:37:06 -06:00
esac
exit 0