2015-08-31 20:09:24 -06:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
|
|
|
options+=("lximage-qt-git" "(AUR)" on)
|
|
|
|
options+=("lximage-qt" "(AUR)" off)
|
|
|
|
options+=("obconf-qt-git" "(AUR)" on)
|
|
|
|
options+=("obconf-qt" "(AUR)" off)
|
2015-08-31 20:17:09 -06:00
|
|
|
options+=("obconf" "" off)
|
2015-08-31 20:09:24 -06:00
|
|
|
options+=("qterminal-git" "(AUR)" on)
|
|
|
|
options+=("qterminal" "(AUR)" off)
|
|
|
|
options+=("sddm" "display manager" on)
|
|
|
|
|
|
|
|
sel=$(whiptail --backtitle "$apptitle" --title "LXQt Complements :" --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
|
|
|
|
case $itm in
|
2015-08-31 20:17:09 -06:00
|
|
|
"sddm" | "obconf") pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
2015-08-31 20:09:24 -06:00
|
|
|
*) aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
|
|
|
sddm) svcenable sddm;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|