2021-03-11 14:04:04 +01:00
|
|
|
module "start" "de" "Desktopenvironment Configure"
|
|
|
|
|
|
|
|
setconf "add" "gfx_system" "xorg"
|
|
|
|
multiplechoice "de" "kde5" "i3wm" "gnome" "none"
|
|
|
|
multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "none"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! "${cfg[soundsystem]}" == "none" ]]; then
|
2021-03-12 16:28:20 +01:00
|
|
|
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
2021-03-11 14:04:04 +01:00
|
|
|
servicesenable "alsa"
|
2021-03-12 16:28:20 +01:00
|
|
|
|
|
|
|
|
2021-03-11 14:04:04 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! "${cfg[de]}" == "none" ]]; then
|
2021-03-12 16:28:20 +01:00
|
|
|
addpkg cups cups-filters gutenprint hplip foomatic-db
|
|
|
|
|
2021-03-12 14:35:49 +01:00
|
|
|
addpkg "firefox"
|
2021-03-12 16:28:20 +01:00
|
|
|
|
|
|
|
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
|
|
|
|
|
|
|
|
servicesenable "alsa" "cupsd"
|
2021-03-11 14:04:04 +01:00
|
|
|
servicesdisable "acpid"
|
|
|
|
test -f "${modules}"/de.d/pre/de/"${cfg[de]}".mod && source "${modules}"/de.d/pre/de/"${cfg[de]}".mod
|
|
|
|
test -f "${modules}"/de.d/pre/system/"${cfg[gfx_system]}".mod && source "${modules}"/de.d/pre/system/"${cfg[gfx_system]}".mod
|
|
|
|
test -f "${modules}"/de.d/pre/gfx/"${cfg[gfx_hardware]}".mod && source "${modules}"/de.d/pre/gfx/"${cfg[gfx_hardware]}".mod
|
|
|
|
fi
|
|
|
|
|
|
|
|
module "end"
|