31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
module start "de" "Desktopenvironment install"
|
|
|
|
if [[ "${cfg[de]}" == "i3wm" ]]; then
|
|
mkdir -p "${dest}"/etc/X11/xinit/xinitrc.d/
|
|
echo 'if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then' > "${dest}"/etc/X11/xinit/xinitrc.d/dbus-launch.sh
|
|
echo ' eval "$(dbus-launch --sh-syntax --exit-with-x11)"' >> "${dest}"/etc/X11/xinit/xinitrc.d/dbus-launch.sh
|
|
echo 'fi' >> "${dest}"/etc/X11/xinit/xinitrc.d/dbus-launch.sh
|
|
chmod +x "${dest}"/etc/X11/xinit/xinitrc.d/dbus-launch.sh
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! "${cfg[de]}" == "none" ]]; then
|
|
test -f "${modules}"/"${modulename}".d/install/system/"${cfg[gfx_system]}".mod && source "${modules}"/"${modulename}".d/install/system/"${cfg[gfx_system]}".mod
|
|
test -f "${dest}"/etc/locale-user.conf && cp "${dest}"/etc/locale-user.conf "${dest}"/etc/sv/${cfg[dm]}/conf
|
|
|
|
[[ ! -h "${dest}"/etc/fonts/conf.d/70-no-bitmaps.conf ]] && ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf "${dest}"/etc/fonts/conf.d/
|
|
|
|
mkdir -p "${dest}"/etc/X11/xorg.conf.d
|
|
{ echo "Section \"InputClass\"";
|
|
echo " Identifier \"keyboard\"";
|
|
echo " MatchIsKeyboard \"yes\"";
|
|
echo " Option \"XkbLayout\" \"de\"";
|
|
echo " Option \"XkbVariant\" \"nodeadkeys\"";
|
|
echo " #Option \"XkbOptions\" \"grp:alt_shift_toggle\"";
|
|
echo "EndSection"; } > "${dest}"/etc/X11/xorg.conf.d/10-keyboard.conf
|
|
|
|
fi
|
|
|
|
module end
|