2015-08-29 16:26:53 -06:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
|
|
|
|
2015-08-29 16:38:04 -06:00
|
|
|
items=$(pacman -Ssq openbox)
|
2015-08-29 16:26:53 -06:00
|
|
|
for item in $items; do
|
2015-08-29 17:05:30 -06:00
|
|
|
case $item in
|
2018-06-04 14:51:31 -06:00
|
|
|
"lxappearance-obconf") options+=("$item" "" off);;
|
2015-08-29 17:05:30 -06:00
|
|
|
*) options+=("$item" "" on);;
|
2015-08-29 17:06:40 -06:00
|
|
|
esac
|
2015-08-29 16:26:53 -06:00
|
|
|
done
|
|
|
|
|
|
|
|
sel=$(whiptail --backtitle "$apptitle" --title "Openbox 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
|