void-bash-installer/modules/60-de/config

52 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-03-11 14:04:04 +01:00
module "start" "de" "Desktopenvironment Configure"
setconf "add" "gfx_system" "xorg"
2021-03-16 20:25:59 +01:00
multiplechoice "de" "none" "kde5" "i3wm" "gnome" "none"
2021-03-12 22:47:34 +01:00
if [[ ! "${cfg[de]}" == "none" ]]; then
multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "none"
fi
2021-03-11 14:04:04 +01:00
2021-03-12 19:57:45 +01:00
if [[ "${cfg[de]}" == "gnome" ]]; then
setconf add "dm" "gdm"
2021-04-15 11:07:16 +02:00
addpkg "${cfg[dm]}" "gnome" "${gnome_apps}"
2021-03-12 19:57:45 +01:00
elif [[ "${cfg[de]}" == "kde5" ]]; then
setconf add "dm" "sddm"
2021-04-15 11:07:16 +02:00
addpkg "${cfg[dm]}" "kde5" "${kde5_apps}"
2021-03-12 19:57:45 +01:00
elif [[ "${cfg[de]}" == "i3wm" ]]; then
setconf add "dm" "lightdm"
2021-04-15 11:07:16 +02:00
addpkg "lightdm" "lightdm-gtk3-greeter" "i3-gaps" "i3lock-color" "i3status" "xfce4-terminal" "dmenu" "rofi" "pcmanfm" "dunst" "elogind" "gvfs" "gvfs-afc" "gvfs-afp" "gvfs-cdda" "paprefs" "pavucontrol" "gvfs-gphoto2" "gvfs-mtp" "gvfs-smb" "xss-lock" "${i3wm_apps}"
2021-03-12 19:57:45 +01:00
fi
2021-03-11 14:04:04 +01:00
if [[ ! "${cfg[de]}" == "none" ]]; then
2021-03-12 19:57:45 +01:00
servicesenable "${cfg[dm]}" "dbus"
2021-03-12 16:28:20 +01:00
addpkg cups cups-filters gutenprint hplip foomatic-db
2021-03-12 16:46:31 +01:00
addpkg "firefox-i18n-de" "thunderbird-i18n-de"
addpkg "aspell-de" "gspell"
2021-03-12 16:28:20 +01:00
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
2021-03-12 16:32:01 +01:00
addpkg "NetworkManager"
servicesenable "dbus" "NetworkManager" "alsa" "cupsd"
2021-03-12 16:28:20 +01:00
2021-03-11 14:04:04 +01:00
servicesdisable "acpid"
2021-03-12 16:46:31 +01:00
addpkg xorg-minimal xorg-fonts mesa-dri vulkan-loader xorg-apps
2021-04-07 18:02:55 +02:00
ignorepkg "font-adobe-75dpi" "font-adobe-100dpi"
2021-03-12 16:46:31 +01:00
2021-03-11 14:04:04 +01:00
fi
2021-03-12 19:57:45 +01:00
if [[ "${cfg[gfx_hardware]}" == "amd" ]]; then
addpkg mesa-vulkan-radeon xf86-video-amdgpu mesa-vaapi mesa-vdpau
elif [[ "${cfg[gfx_hardware]}" == "intel" ]]; then
addpkg mesa-vulkan-intel xf86-video-intel intel-video-accel
fi
2021-03-11 14:04:04 +01:00
module "end"