mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
simplify desktop menu
This commit is contained in:
parent
ff581686f2
commit
3c68b9a6fd
1 changed files with 6 additions and 17 deletions
|
@ -6,10 +6,10 @@ _TITLE="archboot.com | ${_RUNNING_ARCH} | ${_RUNNING_KERNEL} | Basic Setup | Lau
|
||||||
|
|
||||||
_check_desktop() {
|
_check_desktop() {
|
||||||
_DESKTOP=()
|
_DESKTOP=()
|
||||||
update | grep -q Gnome && _DESKTOP+=( "GNOME" "Simple Beautiful Elegant" )
|
update | grep -q Gnome && _DESKTOP+=( "gnome" "Simple Beautiful Elegant" )
|
||||||
update | grep -q KDE && _DESKTOP+=( "PLASMA" "Simple By Default" )
|
update | grep -q KDE && _DESKTOP+=( "plasma" "Simple By Default" )
|
||||||
update | grep -q Sway && _DESKTOP+=( "SWAY" "Tiling Wayland Compositor" )
|
update | grep -q Sway && _DESKTOP+=( "sway" "Tiling Wayland Compositor" )
|
||||||
update | grep -q Xfce && _DESKTOP+=( "XFCE" "Leightweight Desktop" )
|
update | grep -q Xfce && _DESKTOP+=( "xfce" "Leightweight Desktop" )
|
||||||
}
|
}
|
||||||
|
|
||||||
_check_manage() {
|
_check_manage() {
|
||||||
|
@ -30,19 +30,8 @@ _desktop () {
|
||||||
_BROWSER="$(cat ${_ANSWER})"
|
_BROWSER="$(cat ${_ANSWER})"
|
||||||
sed -i -e "s#STANDARD_BROWSER=.*#STANDARD_BROWSER=${_BROWSER}#g" /etc/archboot/defaults
|
sed -i -e "s#STANDARD_BROWSER=.*#STANDARD_BROWSER=${_BROWSER}#g" /etc/archboot/defaults
|
||||||
source /etc/locale.conf
|
source /etc/locale.conf
|
||||||
if [[ "${_EXIT}" == "GNOME" ]]; then
|
|
||||||
clear
|
clear
|
||||||
update -gnome
|
update -${_EXIT} || exit 1
|
||||||
elif [[ "${_EXIT}" == "PLASMA" ]]; then
|
|
||||||
clear
|
|
||||||
update -plasma
|
|
||||||
elif [[ "${_EXIT}" == "SWAY" ]]; then
|
|
||||||
clear
|
|
||||||
update -sway
|
|
||||||
elif [[ "${_EXIT}" == "XFCE" ]]; then
|
|
||||||
clear
|
|
||||||
update -xfce
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue