#!/bin/bash

#edit to "Debloat.sh": keep yelp, don't install geary, fixed typos
#file Debloat.sh basically from https://drive.google.com/file/d/1t0j2Gvswhh-RRCk2nKdjXKnm-DqSzMI9/view -> https://doc-0s-5g-docs.googleusercontent.com/docs/securesc/c7moj21koclpjl78ids8ku3bl32mfpcb/68a5bd99n07dq2c9v816hbuje9i35uhc/1652312850000/17104072859847894904/13017852357884059265Z/1t0j2Gvswhh-RRCk2nKdjXKnm-DqSzMI9?e=download&nonce=le9272ijm0nvo&user=13017852357884059265Z&hash=bg14pag85bbg214k121erap6kemg0vg3

sudo snap remove snap-store -y
sudo snap remove gtk-common-themes -y
sudo snap remove gnome-3-34-1804 -y
sudo snap remove core18 -y
sudo apt purge snapd -y
echo "Snap and Snapd are removed!"
sudo apt-mark hold snap snapd
echo "Snap/Snapd are now blocked from Ubuntu!"
#sudo apt purge yelp -y
#echo "The unhelpful help app is removed!"
sudo apt purge gnome-sudoku -y
sudo apt purge gnome-mines -y
sudo apt purge gnome-mahjongg -y
echo "I dont know the pakage name of solitaire."
echo "but I removed all the gnome games"
sudo apt install gnome-software -y
sudo apt purge gnome-software-plugin-snap -y
echo "Now you have a REAL SOFTWARE CENTER!"
sudo apt purge thunderbird
#sudo apt install geary
#echo "I use geary"
sudo apt purge shotwell -y
echo "I don't use shotwell"
sudo apt purge seahorse -y
echo "seahorse removed"
sudo apt purge remmina -y
echo "remmina removed"
sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y
echo "Now ubuntu is updated!"
sudo apt install gnome-tweaks -y
echo "Now you can customise GNOME"
sudo apt purge evince -y
echo "evince/documents removed"
sudo apt purge ubuntu-report popularity-contest apport whoopsie -y
echo "Yay Ubuntu stopped spying on you!"
