2015-08-20 14:37:06 -06:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
2016-04-12 14:48:39 -06:00
|
|
|
options+=("Plasma5" "By MatMoul")
|
|
|
|
options+=("XFCE4" "(Help Wanted)")
|
|
|
|
options+=("Gnome" "(Help Wanted)")
|
|
|
|
options+=("Cinnamon" "(Help Wanted)")
|
|
|
|
options+=("LXDE" "(Help Wanted)")
|
2016-11-17 16:42:31 -07:00
|
|
|
options+=("LXDE-GTK3" "(Help Wanted)")
|
2016-04-12 14:48:39 -06:00
|
|
|
options+=("LXQt" "(Help Wanted)")
|
|
|
|
options+=("Mate" "(Help Wanted)")
|
2016-11-17 16:44:05 -07:00
|
|
|
options+=("Mate-GTK3" "(Help Wanted)")
|
2016-04-12 14:48:39 -06:00
|
|
|
options+=("Enlightenment" "(Help Wanted)")
|
|
|
|
options+=("Openbox" "(Help Wanted)")
|
|
|
|
options+=("Deepin" "(Help Wanted)")
|
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
|
2015-08-31 20:54:27 -06:00
|
|
|
'Plasma5') menu install/desktop/plasma5/menu;;
|
2016-04-12 14:48:39 -06:00
|
|
|
'XFCE4') menu install/desktop/xfce4/menu;;
|
|
|
|
'Gnome') menu install/desktop/gnome/menu;;
|
|
|
|
'Cinnamon') script install/desktop/cinnamon/packages;;
|
|
|
|
'LXDE') script install/desktop/lxde/packages;;
|
2016-11-17 16:42:31 -07:00
|
|
|
'LXDE-GTK3') script install/desktop/lxde-gtk3/packages;;
|
2016-04-12 14:48:39 -06:00
|
|
|
'LXQt') menu install/desktop/lxqt/menu;;
|
|
|
|
'Mate') menu install/desktop/mate/menu;;
|
2016-11-17 16:44:05 -07:00
|
|
|
'Mate-GTK3') menu install/desktop/mate-gtk3/menu;;
|
2016-04-12 14:48:39 -06:00
|
|
|
'Enlightenment') script install/desktop/enlightenment/packages;;
|
|
|
|
'Openbox') script install/desktop/openbox/packages;;
|
|
|
|
'Deepin') menu install/desktop/deepin/menu;;
|
2015-08-20 14:37:06 -06:00
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|