void-bash-installer/modules/60-de/config
2021-04-18 14:12:10 +02:00

54 lines
1.6 KiB
Plaintext

module "start" "de" "Desktopenvironment Configure"
setconf "add" "gfx_system" "xorg"
multiplechoice "de" "none" "kde5" "i3wm" "gnome" "none"
if [[ ! "${cfg[de]}" == "none" ]]; then
multiplechoice "gfx_hardware" "amd" "nvidia" "intel" "none"
fi
if [[ "${cfg[de]}" == "gnome" ]]; then
setconf add "dm" "gdm"
addpkg "${cfg[dm]}" "gnome" "${gnome_apps}"
elif [[ "${cfg[de]}" == "kde5" ]]; then
setconf add "dm" "sddm"
addpkg "${cfg[dm]}" "kde5" "${kde5_apps}"
elif [[ "${cfg[de]}" == "i3wm" ]]; then
setconf add "dm" "lightdm"
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" "xbindkeys" "gnome-keyring" "${i3wm_apps}"
fi
if [[ ! "${cfg[de]}" == "none" ]]; then
servicesenable "${cfg[dm]}" "dbus"
addpkg cups cups-filters gutenprint hplip foomatic-db
addpkg "firefox-i18n-de"
addpkg "gajim" "gajim-omemo" "gnome-keyring"
addpkg "aspell-de" "gspell"
addpkg "alsa-utils" alsa-plugins-pulseaudio pulseaudio
addpkg "NetworkManager"
servicesenable "dbus" "NetworkManager" "alsa" "cupsd"
servicesdisable "acpid"
addpkg xorg-minimal xorg-fonts mesa-dri vulkan-loader xorg-apps
ignorepkg "font-adobe-75dpi" "font-adobe-100dpi"
fi
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
module "end"