group all aur packages, remove useless package at the begenning and remove emoji config

This commit is contained in:
Mylloon 2022-06-06 15:37:15 +02:00
parent 7f6be12386
commit 3c19c21fa6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

114
arch.sh
View file

@ -2,6 +2,10 @@
if grep "archlinux" /proc/version > /dev/null; if grep "archlinux" /proc/version > /dev/null;
then then
# === Remove extra packages ==
sudo pacman -Rsn epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim gnome-boxes gnome-photos malcontent --noconfirm
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos, parental control
# === Colors package manager == # === Colors package manager ==
sudo sed -i 's/#Color/Color/g' /etc/pacman.conf sudo sed -i 's/#Color/Color/g' /etc/pacman.conf
@ -13,6 +17,9 @@ then
cd .. cd ..
rm -rf yay rm -rf yay
# === AUR packages ==
yay -S --noconfirm spotify obsidian parsec-bin onlyoffice-bin x11-emoji-picker-git gnome-shell-extension-dash-to-dock gnome-shell-extension-desktop-icons-ng dracula-gtk-theme dracula-icons-git visual-studio-code-bin ttf-symbola gnome-shell-extension-appindicator-git touchegg gnome-shell-extension-x11gestures
# === Disable wayland == # === Disable wayland ==
sudo sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf sudo sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
@ -132,37 +139,27 @@ then
wget -q --show-progress "$url" -O completions_fish wget -q --show-progress "$url" -O completions_fish
mv completions_fish ~/.config/fish/completions/tldr.fish mv completions_fish ~/.config/fish/completions/tldr.fish
# === VSCode == # === Spotify no-ads mod ==
yay -S visual-studio-code-bin --noconfirm
# === Spotify + no-ads mod ==
yay -S spotify --noconfirm
# Download mod
git clone https://github.com/abba23/spotify-adblock.git git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock || exit cd spotify-adblock || exit
make make
# Install mod
sudo make install sudo make install
# Remove folder
cd .. cd ..
rm -rf spotify-adblock rm -rf spotify-adblock
# Change shortcut
if [ -f /usr/share/applications/spotify.desktop ] ; then
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
fi
# Remove banner # Remove banner
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify
sudo bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js" sudo bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
sudo zip --update xpui.spa xpui.js sudo zip --update xpui.spa xpui.js
sudo rm xpui.js sudo rm xpui.js
# Change shortcut
if [ -f /usr/share/applications/spotify.desktop ] ; then
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
fi
# === Syncthing == # === Syncthing ==
sudo systemctl enable syncthing@"$USER".service sudo systemctl enable syncthing@"$USER".service
sudo systemctl start syncthing@"$USER".service sudo systemctl start syncthing@"$USER".service
# === Obsidian ==
yay -S obsidian --noconfirm
# === Flameshot == # === Flameshot ==
# Custom configuration # Custom configuration
rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null
@ -181,14 +178,7 @@ then
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ command "flameshot gui" # set command gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ command "flameshot gui" # set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ binding "Print" # set key gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ binding "Print" # set key
# === Parsec ==
yay -S parsec-bin --noconfirm
# === Onlyoffice ==
yay -S onlyoffice-bin --noconfirm
# === Emoji picker == # === Emoji picker ==
yay -S x11-emoji-picker-git --noconfirm
# Custom configuration # Custom configuration
rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null
wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/ wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/
@ -223,7 +213,6 @@ then
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command "nautilus -w" # set command gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ command "nautilus -w" # set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding "<Super>E" # set shortcut gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/nautilus-shortcut/ binding "<Super>E" # set shortcut
yay -S gnome-shell-extension-dash-to-dock gnome-shell-extension-desktop-icons-ng --noconfirm
gnome-extensions enable dash-to-dock@micxgx.gmail.com gnome-extensions enable dash-to-dock@micxgx.gmail.com
gnome-extensions enable ding@rastersoft.com gnome-extensions enable ding@rastersoft.com
@ -245,27 +234,19 @@ then
# Theme # Theme
gsettings set org.gnome.desktop.interface color-scheme prefer-dark gsettings set org.gnome.desktop.interface color-scheme prefer-dark
yay -S dracula-gtk-theme dracula-icons-git --noconfirm
gsettings set org.gnome.desktop.interface gtk-theme Dracula gsettings set org.gnome.desktop.interface gtk-theme Dracula
gsettings set org.gnome.desktop.wm.preferences theme Dracula gsettings set org.gnome.desktop.wm.preferences theme Dracula
gsettings set org.gnome.desktop.interface icon-theme "Dracula" gsettings set org.gnome.desktop.interface icon-theme "Dracula"
# Add gesture # Add gesture
yay -S touchegg gnome-shell-extension-x11gestures --noconfirm
gnome-extensions enable x11gestures@joseexposito.github.io gnome-extensions enable x11gestures@joseexposito.github.io
sudo systemctl enable touchegg.service sudo systemctl enable touchegg.service
sudo systemctl start touchegg sudo systemctl start touchegg
# Tray icons # Tray icons
yay -S gnome-shell-extension-appindicator-git --noconfirm
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
# === Remove extra packages == # === Clipboard manager ==
sudo pacman -Rsn epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim gnome-boxes gnome-photos xdg-desktop-portal malcontent --noconfirm
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim, machines, photos, kde thing, parental control
# === Clipboard history ==
# Keybinding
gsettings set org.gnome.shell.keybindings toggle-message-tray "[]" gsettings set org.gnome.shell.keybindings toggle-message-tray "[]"
CUSTOM_KEYBINDINGS_LIST=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) CUSTOM_KEYBINDINGS_LIST=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists if [[ $CUSTOM_KEYBINDINGS_LIST == "@as []" ]] # creating new list if not exists
@ -287,41 +268,41 @@ then
fi fi
# === Emojis == # === Emojis ==
sudo echo "<?xml version=\"1.0\"?> # sudo echo "<?xml version=\"1.0\"?>
<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\"> # <!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
<fontconfig> # <fontconfig>
<alias> # <alias>
<family>sans-serif</family> # <family>sans-serif</family>
<prefer> # <prefer>
<family>Noto Sans</family> # <family>Noto Sans</family>
<family>Noto Color Emoji</family> # <family>Noto Color Emoji</family>
<family>Noto Emoji</family> # <family>Noto Emoji</family>
<family>DejaVu Sans</family> # <family>DejaVu Sans</family>
</prefer> # </prefer>
</alias> # </alias>
<alias> # <alias>
<family>serif</family> # <family>serif</family>
<prefer> # <prefer>
<family>Noto Serif</family> # <family>Noto Serif</family>
<family>Noto Color Emoji</family> # <family>Noto Color Emoji</family>
<family>Noto Emoji</family> # <family>Noto Emoji</family>
<family>DejaVu Serif</family> # <family>DejaVu Serif</family>
</prefer> # </prefer>
</alias> # </alias>
<alias> # <alias>
<family>monospace</family> # <family>monospace</family>
<prefer> # <prefer>
<family>Noto Mono</family> # <family>Noto Mono</family>
<family>Noto Color Emoji</family> # <family>Noto Color Emoji</family>
<family>Noto Emoji</family> # <family>Noto Emoji</family>
<family>DejaVu Sans Mono</family> # <family>DejaVu Sans Mono</family>
</prefer> # </prefer>
</alias> # </alias>
</fontconfig> # </fontconfig>
" | sudo tee /etc/fonts/local.conf # " | sudo tee /etc/fonts/local.conf
fc-cache # fc-cache
# === Power plan == # === Power plan ==
sudo systemctl enable tlp.service sudo systemctl enable tlp.service
@ -350,9 +331,6 @@ then
#fish -c "set -ge MANPAGER" #fish -c "set -ge MANPAGER"
fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p\'\"" fish -c "set -Ux MANPAGER \"sh -c 'col -bx | bat -l man -p\'\""
# === Emoji Discord ==
yay -S ttf-symbola --noconfirm
echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur." echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur."
else else
echo "Ce script ne fonctionne que sur Manjaro." echo "Ce script ne fonctionne que sur Manjaro."