Add features to LXQt
This commit is contained in:
parent
3d0f5ab9d0
commit
b5cb48d8e3
2 changed files with 57 additions and 0 deletions
35
install/desktop/lxqt/complements
Normal file
35
install/desktop/lxqt/complements
Normal file
|
@ -0,0 +1,35 @@
|
|||
#!/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)
|
||||
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
|
||||
sddm) pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
||||
*) 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
|
22
install/desktop/lxqt/menu
Normal file
22
install/desktop/lxqt/menu
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
. ./lib
|
||||
|
||||
options=()
|
||||
options+=("LXQt" "")
|
||||
options+=("Complements" "")
|
||||
|
||||
defaultitem=""
|
||||
sel=$(whiptail --backtitle "$apptitle" --title "LXQt 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
|
||||
'LXQt') script install/desktop/xfce4/packages;;
|
||||
'Complements') script install/desktop/xfce4/complements;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
Add table
Reference in a new issue