vinstaller/etc/xserver/x11
2022-02-10 23:07:20 +01:00

64 lines
2.9 KiB
Plaintext

packages() {
if [ "${LANGUAGE_}" == "en" ]; then
lang=${L1//_/-}
else
lang="${LANGUAGE_}"
fi
addpkg xorg-minimal xorg-apps xorg-fonts dbus noto-fonts-emoji mesa-dri vulkan-loader
addpkg "firefox-i18n-${lang}"
addpkg libreoffice-writer libreoffice-calc "libreoffice-i18n-${lang}"
addpkg "thunderbird-i18n-${lang}"
addpkg element-desktop
addpkg vlc yt-dlp
addpkg alsa-utils
addpkg "aspell-${LANGUAGE_}" gspell
addpkg ${email} ${terminal} ${imageviewer} ${pdf} ${filemanager} ${archiver} ${screenshot} ${calc} ${pinentry} ${keyring} ${gpg} ${policykit} ${sshaskpass} ${partmanager} ${dm} ${de} ${misc}
ignorepkg font-adobe-75dpi font-adobe-100dpi
}
config() {
enable_service dbus alsa
disable_service acpid
files="10-hinting-slight.conf 10-scale-bitmap-fonts.conf 10-sub-pixel-rgb.conf 11-lcdfilter-default.conf 20-unhint-small-vera.conf 21-cantarell-hinting.conf 30-metric-aliases.conf 30-urw-aliases.conf 31-cantarell.conf 40-nonlatin.conf 42-luxi-mono.conf 45-latin.conf 49-sansserif.conf 50-user.conf 51-local.conf 57-dejavu-sans-mono.conf 57-dejavu-sans.conf 57-dejavu-serif.conf 60-latin.conf 65-fonts-persian.conf 65-nonlatin.conf 69-unifont.conf 70-no-bitmaps.conf 80-delicious.conf 90-synthetic.conf"
for i in ${files}; do
if [ -h /etc/fonts/conf.d/$i ]; then
echo $i gibts schon
else
ln -s /usr/share/fontconfig/conf.avail/$i /etc/fonts/conf.d
fi
done
mkdir -p /etc/profile.d/
echo "# Subpixel hinting mode can be chosen by setting the right TrueType interpreter" > /etc/profile.d/freetype2.sh
echo "# version. The available settings are:" >> /etc/profile.d/freetype2.sh
echo "# truetype:interpreter-version=35 # Classic mode (default in 2.6)" >> /etc/profile.d/freetype2.sh
echo "# truetype:interpreter-version=38 # Infinality mode" >> /etc/profile.d/freetype2.sh
echo "# truetype:interpreter-version=40 # Minimal mode (default in 2.7)" >> /etc/profile.d/freetype2.sh
echo "# There are more properties that can be set, separated by whitespace. Please" >> /etc/profile.d/freetype2.sh
echo "# refer to the FreeType documentation for details." >> /etc/profile.d/freetype2.sh
echo "# Uncomment and configure below" >> /etc/profile.d/freetype2.sh
echo "export FREETYPE_PROPERTIES=“truetype:interpreter-version=38”" >> /etc/profile.d/freetype2.sh
xbps-reconfigure -f fontconfig
if [ "${KEY_LANG}" == "de" ]; then
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/00-keyboard.conf
fi
ln -s /usr/bin/yt-dlp /usr/local/bin/youtube-dl
}