48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
#!/bin/bash
|
|
. ./lib
|
|
|
|
options=()
|
|
options+=("nano" "Editor" on)
|
|
options+=("vim" "Editor" on)
|
|
options+=("vi" "Editor" off)
|
|
options+=("bash-completion" "Completion for bash" on)
|
|
options+=("usbutils" "USB Device Utilities" on)
|
|
options+=("lsof" "ls open file" on)
|
|
options+=("dmidecode" "Hardware infos" on)
|
|
options+=("dialog" "Dialog boxes for script" on)
|
|
options+=("linux-firmware" "Firmware files for Linux" on)
|
|
options+=("nmon" "System monitor" off)
|
|
options+=("mc" "Dual pane file explorer" off)
|
|
options+=("neofetch" "system information tool" off)
|
|
options+=("base-devel" "Build tools" off)
|
|
options+=("fwupd" "Firmware upgrade" off)
|
|
options+=("powertop" "power mon and management" off)
|
|
options+=("gpm" "Console mouse support" off)
|
|
options+=("liveroot" "(AUR) root overlay fs" off)
|
|
|
|
sel=$(dialog --backtitle "$apptitle" --title "Console Generic packages :" --cancel-button "Back" --checklist "" 0 0 0 \
|
|
"${options[@]}" \
|
|
3>&1 1>&2 2>&3)
|
|
if [ ! "$?" = "0" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
for itm in $sel; do
|
|
case $itm in
|
|
"liveroot") aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
|
|
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
|
esac
|
|
done
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
for itm in $sel; do
|
|
case $itm in
|
|
"gpm")
|
|
svcstart gpm
|
|
svcenable gpm
|
|
;;
|
|
esac
|
|
done
|
|
|
|
exit 0
|