more locales update and add a lot of icons to remove

This commit is contained in:
Mylloon 2022-06-06 17:36:19 +02:00
parent 63d4549a9e
commit 728dc58b9a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

19
arch.sh
View file

@ -27,6 +27,7 @@ then
sudo sed -i 's/fr_FR.UTF-8.UTF-8 UTF-8/fr_FR.UTF8 UTF-8/g' /etc/locale.gen
sudo locale-gen
fish -c "set -Ux LC_ALL fr_FR.UTF-8"
localectl set-locale fr_FR.UTF-8
# === Fish ==
# Remove motd
@ -89,11 +90,6 @@ then
fish -c "abbr bigupdate 'yay -Syu --noconfirm && tldr --update && sdk update && echo \'y\' | sdk upgrade java'"
fish -c "abbr d 'nautilus . -w &> /dev/null & disown'"
fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'"
# Remove fish icon
if [ -f /usr/share/applications/fish.desktop ]
then
sudo mv /usr/share/applications/fish.desktop /usr/share/applications/fish.desktop.bak
fi
# Fish by default in terminal app
profil=$(gsettings get org.gnome.Terminal.ProfilesList list)
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil:2:-2}"/ use-custom-command true
@ -269,7 +265,8 @@ then
# === Paint ==
if [ -f /usr/share/applications/org.kde.kolourpaint.desktop ] ; then
sudo sed -i "3s#.*#Name=Paint#" /usr/share/applications/org.kde.kolourpaint.desktop
sudo sed -i 's/Name=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
sudo sed -i 's/Name[fr]=KolourPaint/Name=Paint/g' /usr/share/applications/org.kde.kolourpaint.desktop
fi
# === Power plan ==
@ -298,6 +295,16 @@ then
# === Manual color ==
fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p'\""
# === Unused icons ==
apps=("fish" "cmake-gui" "com.github.hluk.copyq" "org.gnome.Totem" "electron17" "org.gnome.Evince" "avahi-discover" "bssh" "bvnc" "org.flameshot.Flameshot" "org.fontforge.FontForge" "lstopo" "htop" "micro" "qv4l2" "qvidcap" "x11-emoji-picker" "xdvi")
for app in "${apps[@]}"
do
if [ -f /usr/share/applications/"$app".desktop ]
then
sudo mv /usr/share/applications/"$app".desktop /usr/share/applications/"$app".desktop.bak
fi
done
echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur.\nPensez à activer les extensions après redémarrage."
else
echo "Ce script ne fonctionne que sur Manjaro."