group all aur packages, remove useless package at the begenning and remove emoji config
This commit is contained in:
parent
7f6be12386
commit
3c19c21fa6
1 changed files with 46 additions and 68 deletions
114
arch.sh
114
arch.sh
|
@ -2,6 +2,10 @@
|
|||
|
||||
if grep "archlinux" /proc/version > /dev/null;
|
||||
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 ==
|
||||
sudo sed -i 's/#Color/Color/g' /etc/pacman.conf
|
||||
|
||||
|
@ -13,6 +17,9 @@ then
|
|||
cd ..
|
||||
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 ==
|
||||
sudo sed -i 's/#Wayland/Wayland/g' /etc/gdm/custom.conf
|
||||
|
||||
|
@ -132,37 +139,27 @@ then
|
|||
wget -q --show-progress "$url" -O completions_fish
|
||||
mv completions_fish ~/.config/fish/completions/tldr.fish
|
||||
|
||||
# === VSCode ==
|
||||
yay -S visual-studio-code-bin --noconfirm
|
||||
|
||||
# === Spotify + no-ads mod ==
|
||||
yay -S spotify --noconfirm
|
||||
# Download mod
|
||||
# === Spotify no-ads mod ==
|
||||
git clone https://github.com/abba23/spotify-adblock.git
|
||||
cd spotify-adblock || exit
|
||||
make
|
||||
# Install mod
|
||||
sudo make install
|
||||
# Remove folder
|
||||
cd ..
|
||||
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
|
||||
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 zip --update xpui.spa 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 ==
|
||||
sudo systemctl enable syncthing@"$USER".service
|
||||
sudo systemctl start syncthing@"$USER".service
|
||||
|
||||
# === Obsidian ==
|
||||
yay -S obsidian --noconfirm
|
||||
|
||||
# === Flameshot ==
|
||||
# Custom configuration
|
||||
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/ binding "Print" # set key
|
||||
|
||||
# === Parsec ==
|
||||
yay -S parsec-bin --noconfirm
|
||||
|
||||
# === Onlyoffice ==
|
||||
yay -S onlyoffice-bin --noconfirm
|
||||
|
||||
# === Emoji picker ==
|
||||
yay -S x11-emoji-picker-git --noconfirm
|
||||
# Custom configuration
|
||||
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/
|
||||
|
@ -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/ 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 ding@rastersoft.com
|
||||
|
||||
|
@ -245,27 +234,19 @@ then
|
|||
|
||||
# Theme
|
||||
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.wm.preferences theme Dracula
|
||||
gsettings set org.gnome.desktop.interface icon-theme "Dracula"
|
||||
|
||||
# Add gesture
|
||||
yay -S touchegg gnome-shell-extension-x11gestures --noconfirm
|
||||
gnome-extensions enable x11gestures@joseexposito.github.io
|
||||
sudo systemctl enable touchegg.service
|
||||
sudo systemctl start touchegg
|
||||
|
||||
# Tray icons
|
||||
yay -S gnome-shell-extension-appindicator-git --noconfirm
|
||||
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
|
||||
|
||||
# === Remove extra packages ==
|
||||
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
|
||||
# === Clipboard manager ==
|
||||
gsettings set org.gnome.shell.keybindings toggle-message-tray "[]"
|
||||
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
|
||||
|
@ -287,41 +268,41 @@ then
|
|||
fi
|
||||
|
||||
# === Emojis ==
|
||||
sudo echo "<?xml version=\"1.0\"?>
|
||||
<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Noto Emoji</family>
|
||||
<family>DejaVu Sans</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
# sudo echo "<?xml version=\"1.0\"?>
|
||||
# <!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">
|
||||
# <fontconfig>
|
||||
# <alias>
|
||||
# <family>sans-serif</family>
|
||||
# <prefer>
|
||||
# <family>Noto Sans</family>
|
||||
# <family>Noto Color Emoji</family>
|
||||
# <family>Noto Emoji</family>
|
||||
# <family>DejaVu Sans</family>
|
||||
# </prefer>
|
||||
# </alias>
|
||||
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Noto Serif</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Noto Emoji</family>
|
||||
<family>DejaVu Serif</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
# <alias>
|
||||
# <family>serif</family>
|
||||
# <prefer>
|
||||
# <family>Noto Serif</family>
|
||||
# <family>Noto Color Emoji</family>
|
||||
# <family>Noto Emoji</family>
|
||||
# <family>DejaVu Serif</family>
|
||||
# </prefer>
|
||||
# </alias>
|
||||
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Noto Mono</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Noto Emoji</family>
|
||||
<family>DejaVu Sans Mono</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
" | sudo tee /etc/fonts/local.conf
|
||||
fc-cache
|
||||
# <alias>
|
||||
# <family>monospace</family>
|
||||
# <prefer>
|
||||
# <family>Noto Mono</family>
|
||||
# <family>Noto Color Emoji</family>
|
||||
# <family>Noto Emoji</family>
|
||||
# <family>DejaVu Sans Mono</family>
|
||||
# </prefer>
|
||||
# </alias>
|
||||
# </fontconfig>
|
||||
# " | sudo tee /etc/fonts/local.conf
|
||||
# fc-cache
|
||||
|
||||
# === Power plan ==
|
||||
sudo systemctl enable tlp.service
|
||||
|
@ -350,9 +331,6 @@ then
|
|||
#fish -c "set -ge MANPAGER"
|
||||
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."
|
||||
else
|
||||
echo "Ce script ne fonctionne que sur Manjaro."
|
||||
|
|
Loading…
Reference in a new issue