28 lines
1002 B
Plaintext
28 lines
1002 B
Plaintext
|
module start "de" "Desktopenvironment install"
|
||
|
|
||
|
if [[ "${cfg[de]}" == "i3wm" ]]; then
|
||
|
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
|
||
|
fi
|
||
|
|
||
|
|
||
|
|
||
|
if [[ ! "${cfg[de]}" == "none" ]]; then
|
||
|
[[ ! -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/
|
||
|
|
||
|
mkdir -p /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"; } > /etc/X11/xorg.conf.d/10-keyboard.conf
|
||
|
|
||
|
fi
|
||
|
|
||
|
module end
|