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

31 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-03-11 14:04:04 +01:00
module start "de" "Desktopenvironment install"
2021-03-12 19:57:45 +01:00
if [[ "${cfg[de]}" == "i3wm" ]]; then
2021-03-16 20:17:51 +01:00
mkdir -p /etc/X11/xinit/xinitrc.d/
echo 'if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then' > /etc/X11/xinit/xinitrc.d/dbus-launch.sh
echo ' eval "$(dbus-launch --sh-syntax --exit-with-x11)"' >> /etc/X11/xinit/xinitrc.d/dbus-launch.sh
echo 'fi' >> /etc/X11/xinit/xinitrc.d/dbus-launch.sh
chmod +x /etc/X11/xinit/xinitrc.d/dbus-launch.sh
2021-03-12 19:57:45 +01:00
fi
2021-03-11 14:04:04 +01:00
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
2021-03-16 20:17:51 +01:00
test -f /etc/locale-user.conf && cp "${dest}"/etc/locale-user.conf "${dest}"/etc/sv/${cfg[dm]}/conf
2021-03-12 19:57:45 +01:00
2021-03-16 20:17:51 +01:00
[[ ! -h /etc/fonts/conf.d/70-no-bitmaps.conf ]] && ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf "${dest}"/etc/fonts/conf.d/
2021-03-12 19:57:45 +01:00
2021-03-16 20:17:51 +01:00
mkdir -p /etc/X11/xorg.conf.d
2021-03-12 19:57:45 +01:00
{ echo "Section \"InputClass\"";
echo " Identifier \"keyboard\"";
echo " MatchIsKeyboard \"yes\"";
echo " Option \"XkbLayout\" \"de\"";
echo " Option \"XkbVariant\" \"nodeadkeys\"";
echo " #Option \"XkbOptions\" \"grp:alt_shift_toggle\"";
2021-03-16 20:17:51 +01:00
echo "EndSection"; } > /etc/X11/xorg.conf.d/10-keyboard.conf
2021-03-12 19:57:45 +01:00
2021-03-11 14:04:04 +01:00
fi
module end