This commit is contained in:
Korbs 2024-09-13 21:10:33 -04:00
parent 8bef913c96
commit 0d1d9b9827
2 changed files with 38 additions and 22 deletions

2
enable-extensions.sh Normal file
View file

@ -0,0 +1,2 @@
gnome-extensions enable gsconnect@andyholmes.github.io
gnome-extensions enable rounded-window-corners@fxgn

58
run.sh
View file

@ -13,6 +13,32 @@ clear
echo "Updating your system..."
sudo dnf update --quiet --refresh --allowerasing -y
# Dotfiles
cd ~/
wget https://ark.sudovanilla.org/Korbs/Quick-Linux-Setup/raw/branch/main/configs/.npmrc
# Apply GNOME Settings
clear
echo "Changing settings for GNOME..."
echo "Enabling dark mode..."
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
sleep 2
echo "Turning off mouse acceleration..."
gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'flat'
sleep 2
echo "Filehistory will clear every week..."
gsettings set org.gnome.desktop.privacy recent-files-max-age 7
sleep 2
echo "Trash and temporary files will clear every week..."
gsettings set org.gnome.desktop.privacy old-files-age 7
sleep 2
gsettings set org.gnome.desktop.privacy remove-old-temp-files true
sleep 2
gsettings set org.gnome.desktop.privacy remove-old-trash-files true
sleep 2
gsettings set org.gnome.desktop.interface enable-hot-corners false
sleep 2
# Uninstall Apps and Packages
clear
echo "Removing unused content and applications..."
@ -39,18 +65,17 @@ source ~/.bashrc
clear
echo "Installing NodeJS..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
source ~/.bashrc
nvm install node
sudo dnf install nodejs -y --quiet
# Patches and Apply
clear
echo "Patching Spotify, Nautilus, and Librewolf..."
## Spotify
bash <(curl -sSL https://spotx-official.github.io/run.sh) -h -d
bash <(curl -sSL https://spotx-official.github.io/run.sh) -h -d -f
## Nautilus
sudo dnf install nautilus-python -y --quiet
git clone https://github.com/ppvan/nautilus-open-in-blackbox.git
cd nautilus-open-in-blackbox
./install.sh
@ -58,21 +83,23 @@ cd nautilus-open-in-blackbox
## Librewolf
curl -s -o- https://raw.githubusercontent.com/rafaelmardojai/firefox-gnome-theme/master/scripts/install-by-curl.sh | bash
# Dotfiles
cd ~/
wget https://ark.sudovanilla.org/Korbs/Quick-Linux-Setup/raw/branch/main/configs/.npmrc
# Settings
clear
echo "Applying Settings for VSCodium and Blackbox..."
## VSCodium
echo "Generating files for VSCodium..."
flatpak run com.raggesilver.BlackBox --command "flatpak run com.vscodium.codium"
echo "Just close it."
cd /home/korbs/.var/app/com.vscodium.codium/config/VSCodium/User
wget https://ark.sudovanilla.org/Korbs/Quick-Linux-Setup/raw/branch/main/configs/vscodium.json
sudo rm settings.json
sudo mv vscodium.json settings.json
## Blackbox
echo "Generating files for Blackbox..."
flatpak run com.raggesilver.BlackBox --command "flatpak run com.raggesilver.BlackBox"
echo "Just close it."
cd /home/korbs/.var/app/com.raggesilver.BlackBox/config/glib-2.0/settings
wget https://ark.sudovanilla.org/Korbs/Quick-Linux-Setup/raw/branch/main/configs/blackbox.keyfile
sudo rm keyfile
@ -85,24 +112,11 @@ cd ~/Downloads/
wget https://extensions.gnome.org/extension-data/gsconnectandyholmes.github.io.v57.shell-extension.zip
wget https://extensions.gnome.org/extension-data/rounded-window-cornersfxgn.v3.shell-extension.zip
gnome-extensions enable gsconnect@andyholmes.github.io
gnome-extensions enable rounded-window-corners@fxgn
clear
echo "Restarting GNOME is required, please restart the session soon."
echo "After restarting the session, run 'sh ./enable-extensions.sh'"
sleep 5
# Apply GNOME Settings
clear
echo "Changing settings for GNOME..."
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'flat'
gsettings set org.gnome.desktop.privacy recent-files-max-age 7
gsettings set org.gnome.desktop.privacy old-files-age 7
gsettings set org.gnome.desktop.privacy remove-old-temp-files true
gsettings set org.gnome.desktop.privacy remove-old-trash-files true
gsettings set org.gnome.desktop.interface enable-hot-corners false
# Ending-Run
clear
echo "Finishing up..."