From 62b562557be7472c0a60fc794c00a1b807cdee23 Mon Sep 17 00:00:00 2001 From: Korbs Date: Thu, 12 Sep 2024 23:48:20 -0400 Subject: [PATCH] update --- configs/.npmrc | 0 configs/blackbox.keyfile | 16 +++++++++ configs/vscodium.json | 51 ++++++++++++++------------- run.sh | 74 ++++++++++++++++++++++++++++++++++++---- 4 files changed, 110 insertions(+), 31 deletions(-) create mode 100644 configs/.npmrc create mode 100644 configs/blackbox.keyfile diff --git a/configs/.npmrc b/configs/.npmrc new file mode 100644 index 0000000..e69de29 diff --git a/configs/blackbox.keyfile b/configs/blackbox.keyfile new file mode 100644 index 0000000..2984ddf --- /dev/null +++ b/configs/blackbox.keyfile @@ -0,0 +1,16 @@ +[com/raggesilver/BlackBox] +style-preference=0 +remember-window-size=false +show-headerbar=true +show-menu-button=false +headerbar-drag-area=true +floating-controls=false +floating-controls-hover-area=20 +terminal-padding=(11, 11, 11, 11) +opacity=95 +theme-dark='Pencil Dark' +theme-bold-is-bright=false +use-sixel=false +fill-tabs=true +terminal-bell=false +window-height=452 \ No newline at end of file diff --git a/configs/vscodium.json b/configs/vscodium.json index fe16f47..7196a2a 100644 --- a/configs/vscodium.json +++ b/configs/vscodium.json @@ -1,26 +1,29 @@ { - "terminal.integrated.defaultProfile.linux": "bash", - "terminal.integrated.profiles.linux": { - "bash": { - "path": "/app/bin/host-spawn", - "args": [ - "bash" - ], - "icon": "terminal-bash", - "overrideName": true - } - }, - "workbench.activityBar.location": "hidden", - "workbench.statusBar.visible": false, - "editor.minimap.enabled": false, - "breadcrumbs.enabled": false, - "editor.stickyScroll.enabled": false, - "editor.renderWhitespace": "none", - "editor.renderControlCharacters": false, - "window.menuBarVisibility": "toggle", - "workbench.startupEditor": "none", - "javascript.updateImportsOnFileMove.enabled": "never", - "git.openRepositoryInParentFolders": "never", - "liveServer.settings.donotShowInfoMsg": true, - "liveServer.settings.donotVerifyTags": true + "terminal.integrated.defaultProfile.linux": "bash", + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/app/bin/host-spawn", + "args": [ + "bash" + ], + "icon": "terminal-bash", + "overrideName": true + } + }, + "workbench.activityBar.location": "hidden", + "workbench.statusBar.visible": false, + "editor.minimap.enabled": false, + "breadcrumbs.enabled": false, + "editor.stickyScroll.enabled": false, + "editor.renderWhitespace": "none", + "editor.renderControlCharacters": false, + "workbench.startupEditor": "none", + "javascript.updateImportsOnFileMove.enabled": "never", + "git.openRepositoryInParentFolders": "never", + "liveServer.settings.donotShowInfoMsg": true, + "liveServer.settings.donotVerifyTags": true, + "window.customTitleBarVisibility": "auto", + "window.doubleClickIconToClose": true, + "window.titleBarStyle": "custom", + "workbench.layoutControl.enabled": false } \ No newline at end of file diff --git a/run.sh b/run.sh index 9fe2e51..0d928d7 100644 --- a/run.sh +++ b/run.sh @@ -1,39 +1,99 @@ #!/usr/bin/env bash set -e -# check for root access +# Check if it was ran with "sudo" or not if [[ $(id -u) != 0 ]]; then echo "Please run script with 'sudo'" exit 1 fi +# Init +clear +echo "Updating your system..." +sudo dnf update --quiet --refresh --allowerasing -y + # Uninstall Apps and Packages -sudo dnf remove -y firef* firew* anaconda document-scanner fedora-bookmarks fedora-chromium-config gnome-clocks gnome-color-manager gnome-contacts gnome-getting-started-docs gnome-initial-setup gnome-maps gnome-online-miners gnome-remote-desktop gnome-user-docs gnome-weather gnome-characters gnome-classic-session gnome-classic-session-xsession gnome-color-manager gnome-connections gnome-disk-utility gnome-font-viewer gnome-logs gnome-shell-extension-apps-menu gnome-shell-extension-background-logo gnome-shell-extension-common gnome-shell-extension-launch-new-instance gnome-shell-extension-places-menu gnome-shell-extension-window-list gnome-system-monitor gnome-terminal gnome-text-editor gnome-tour ibus-hangul ibus-kkc ibus-libpinyin ibus-libzhuyin ibus-m17n ibus-typing-booster khmeros-base-fonts libreoffice-calc libreoffice-impress libreport problem-reporting rhythmbox sane-airscan simple-scan speech-dispatcher thai-scalable-waree-fonts totem tracker yelp +clear +echo "Removing unused content and applications..." +sudo dnf remove --quiet -y firef* firew* anaconda document-scanner fedora-bookmarks fedora-chromium-config gnome-clocks gnome-color-manager gnome-contacts gnome-getting-started-docs gnome-initial-setup gnome-maps gnome-online-miners gnome-remote-desktop gnome-user-docs gnome-weather gnome-characters gnome-classic-session gnome-classic-session-xsession gnome-color-manager gnome-connections gnome-disk-utility gnome-font-viewer gnome-logs gnome-shell-extension-apps-menu gnome-shell-extension-background-logo gnome-shell-extension-common gnome-shell-extension-launch-new-instance gnome-shell-extension-places-menu gnome-shell-extension-window-list gnome-system-monitor gnome-terminal gnome-text-editor gnome-tour ibus-hangul ibus-kkc ibus-libpinyin ibus-libzhuyin ibus-m17n ibus-typing-booster khmeros-base-fonts libreoffice-calc libreoffice-impress libreport problem-reporting rhythmbox sane-airscan simple-scan speech-dispatcher thai-scalable-waree-fonts totem tracker yelp # Install Apps +clear +echo "Installing applications..." sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo -sudo dnf install -y gnome-console mullvad-vpn openssl -flatpak install -y com.mattjakeman.ExtensionManager com.vscodium.codium io.github.zen_browser.zen com.spotify.Client org.gnome.Showtime com.belmoussaoui.Obfuscate network.loki.Session org.videolan.VLC org.nickvision.tubeconverter cafe.avery.Delfin de.haeckerfelix.Fragments org.kde.kdenlive org.gnome.gitlab.YaLTeR.VideoTrimmer io.gitlab.adhami3310.Impression com.github.tchx84.Flatseal +sudo dnf install --quiet -y mullvad-vpn openssl +flatpak install -y com.vscodium.codium io.gitlab.librewolf-community com.spotify.Client com.belmoussaoui.Obfuscate network.loki.Session org.videolan.VLC org.nickvision.tubeconverter cafe.avery.Delfin de.haeckerfelix.Fragments org.gnome.gitlab.YaLTeR.VideoTrimmer com.github.tchx84.Flatseal org.shotcut.Shotcut com.raggesilver.BlackBox com.github.neithern.g4music net.nokyan.Resources # Install Packages -sudo dnf install -y nautilus adb fastboot +clear +echo "Installing Nautilus and ADB..." +sudo dnf install --quiet -y nautilus adb fastboot + +clear +echo "Installing Bun..." curl -fsSL https://bun.sh/install | bash 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 -# Patches +# Patches and Apply +clear +echo "Patching Spotify, Nautilus, and Librewolf..." + +## Spotify bash <(curl -sSL https://spotx-official.github.io/run.sh) -h -d +## Nautilus +git clone https://github.com/ppvan/nautilus-open-in-blackbox.git +cd nautilus-open-in-blackbox +./install.sh + +## 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 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 +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 +sudo mv blackbox.keyfile keyfile + # GNOME Extensions (Currently set for GNOME 46) +clear +echo "Installing GNOME extensions..." 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 \ No newline at end of file +wget https://extensions.gnome.org/extension-data/rounded-window-cornersfxgn.v3.shell-extension.zip + +# Ending-Run +clear +echo "Finishing up..." + +sudo dnf autoremove +sudo dnf clean all + +# After-Run +echo "Completed." +sleep 2 +echo "Don't forget to setup Git:" +echo 'git config --global user.name "USERNAME"' +echo 'git config --global user.email "email@example.org"' \ No newline at end of file