Add Deepin desktop
This commit is contained in:
parent
f67565d331
commit
12ca54123a
3 changed files with 59 additions and 0 deletions
31
install/desktop/deepin/menu
Normal file
31
install/desktop/deepin/menu
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
. ./lib
|
||||
|
||||
options=()
|
||||
options+=("deepin" "")
|
||||
options+=("deepin-extra" "")
|
||||
|
||||
defaultitem=""
|
||||
sel=$(whiptail --backtitle "$apptitle" --title "Deepin Install Menu :" --menu "" --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
|
||||
'deepin')
|
||||
require install/desktop/deepin/packages 755
|
||||
sed -i "/^package=/c\package=\"$sel\"" install/desktop/deepin/packages
|
||||
script install/desktop/deepin/packages
|
||||
svcenable gdm
|
||||
;;
|
||||
'deepin-extra')
|
||||
require install/desktop/deepin/packages 755
|
||||
sed -i "/^package=/c\package=\"$sel\"" install/desktop/deepin/packages
|
||||
script install/desktop/deepin/packages
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
26
install/desktop/deepin/packages
Normal file
26
install/desktop/deepin/packages
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
. ./lib
|
||||
|
||||
options=()
|
||||
|
||||
package=""
|
||||
items=$(pacman -Sqg $package)
|
||||
for item in $items; do
|
||||
options+=("$item" "" on)
|
||||
done
|
||||
|
||||
sel=$(whiptail --backtitle "$apptitle" --title "$package Install :" --checklist "" --cancel-button "Back" 0 0 0 \
|
||||
"${options[@]}" \
|
||||
3>&1 1>&2 2>&3)
|
||||
|
||||
if [ ! "$?" = "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for itm in $sel; do
|
||||
pkg="$pkg $(echo $itm | sed 's/"//g')"
|
||||
done
|
||||
|
||||
instpkg "$pkg" "$aurpkg"
|
||||
|
||||
exit 0
|
|
@ -11,6 +11,7 @@ options+=("LXQt" "")
|
|||
options+=("Mate" "")
|
||||
options+=("Enlightenment" "")
|
||||
options+=("Openbox" "")
|
||||
options+=("Deepin" "")
|
||||
options+=("KDE4" "(AUR) End of life")
|
||||
#options+=("GnuStep" "")
|
||||
#options+=("i3" "")
|
||||
|
@ -35,6 +36,7 @@ case $sel in
|
|||
'Mate') menu install/desktop/mate/menu;;
|
||||
'Enlightenment') script install/desktop/enlightenment/packages;;
|
||||
'Openbox') script install/desktop/openbox/packages;;
|
||||
'Deepin') menu install/desktop/deepin/menu;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue