diff --git a/others/tsubuntumanjaro.sh b/others/tsubuntumanjaro.sh new file mode 100644 index 0000000..6f23965 --- /dev/null +++ b/others/tsubuntumanjaro.sh @@ -0,0 +1,136 @@ +#!/bin/bash +echo "┌──────────────────────────────────────────┐" +echo "│ Tsubuntu for Manjaro │" +echo "└──────────────────────────────────────────┘" + +# flatpak is preinstalled and so is everything else missing from here. Very cool +sudo pacman -Syu --noconfirm gnome-browser-connector unzip dconf-editor snapd +sudo systemctl enable --now snapd.socket +sudo ln -s /var/lib/snapd/snap /snap + +# echo "┌──────────────────────────────────────────┐" +# echo "│Adding Flathub... │" +# echo "└──────────────────────────────────────────┘" +# sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + +echo "┌──────────────────────────────────────────┐" +echo "│Enabling right click > new file... │" +echo "└──────────────────────────────────────────┘" + +# Manjaro has already set this up +# touch $HOME/Templates/NewFile.txt + +# extensions making gnome usable + +# Yes, this is necessary. It took me a long while to figure out why this damned script would only install one extension. +mkdir $HOME/.local/share/gnome-shell/extensions/ + +# still the same version +echo "┌──────────────────────────────────────────┐" +echo "│Installing clipboard history extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip1="clipboard-historyalexsaveau.dev.v45.shell-extension.zip" +linktozip1="https://extensions.gnome.org/extension-data/clipboard-historyalexsaveau.dev.v45.shell-extension.zip" +folder1="clipboard-history@alexsaveau.dev" + +mkdir $folder1 +cd $folder1 +wget $linktozip1 +unzip $downloadedzip1 +rm $downloadedzip1 +cd $HOME +mv $folder1 $HOME/.local/share/gnome-shell/extensions/ + + +echo "┌──────────────────────────────────────────┐" +echo "│Installing corner tiling extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip3="tiling-assistantleleat-on-github.v48.shell-extension.zip" +linktozip3="https://extensions.gnome.org/extension-data/tiling-assistantleleat-on-github.v48.shell-extension.zip" +folder3="tiling-assistant@leleat-on-github" + +mkdir $folder3 +cd $folder3 +wget $linktozip3 +unzip $downloadedzip3 +rm $downloadedzip3 +cd $HOME +mv $folder3 $HOME/.local/share/gnome-shell/extensions/ + +# echo "┌──────────────────────────────────────────┐" +# echo "│Adding (_)([])(X) buttons... │" +# echo "└──────────────────────────────────────────┘" + +# gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close" + +echo "┌──────────────────────────────────────────┐" +echo "│Tweaking the file manager... │" +echo "└──────────────────────────────────────────┘" +echo "file:///home/$USER/Desktop" >> ~/.config/gtk-3.0/bookmarks +gsettings set org.gnome.nautilus.preferences show-create-link 'true' +gsettings set org.gnome.nautilus.preferences show-delete-permanently 'true' +gsettings set org.gtk.Settings.FileChooser sort-directories-first 'true' +gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view' +echo "┌──────────────────────────────────────────┐" +echo "│Tweaking the text editor... │" +echo "└──────────────────────────────────────────┘" +gsettings set org.gnome.TextEditor show-line-numbers 'true' +gsettings set org.gnome.TextEditor spellcheck 'false' + +echo "┌──────────────────────────────────────────┐" +echo "│Remember numlock state... │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.desktop.peripherals.keyboard remember-numlock-state 'true' +echo "┌──────────────────────────────────────────┐" +echo "│Setting up shortcuts (try Super + E) │" +echo "└──────────────────────────────────────────┘" + + +gsettings set org.gnome.shell.keybindings screenshot "['Print']" +gsettings set org.gnome.shell.keybindings show-screenshot-ui "['s']" +gsettings set org.gnome.settings-daemon.plugins.media-keys home "['e']" + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'taskmanager' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'gnome-system-monitor' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'Escape' + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'gnome-terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 't' + + +# I know how stupid this looks but when I tried to put the content of dock-setup.sh into this echo section it would not work properly. +touch "$HOME/Desktop/Finish_Setup.sh" +chmod +x "$HOME/Desktop/Finish_Setup.sh" +echo '#!/bin/bash +gnome-extensions enable clipboard-history@alexsaveau.dev +sleep 1 +echo "Enabling the clipboard history extension..." +gnome-extensions enable gtk4-ding@smedius.gitlab.com +sleep 1 +echo "Enabling the desktop icons extension..." +gnome-extensions enable dash-to-dock@micxgx.gmail.com +sleep 1 +echo "Enabling the dash to dock extension..." +gnome-extensions enable tiling-assistant@leleat-on-github +sleep 1 +echo "Enabling the tiling assistant extension..." +gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com +sleep 1 +echo "Enabling tray icons..." +wget -q https://raw.githubusercontent.com/Tsu-gu/tsubuntu/main/dock-setup.sh && chmod +x dock-setup.sh && ./dock-setup.sh +' >> "$HOME/Desktop/Finish_Setup.sh" + +systemctl enable --now snapd.apparmor +# Change the dock's app launcher to be on the bottom of the panel rather than on the top. +dconf write /org/gnome/shell/extensions/dash-to-dock/show-apps-at-top false +echo "┌──────────────────────────────────────────┐" +echo "│Restart your PC and then run │" +echo "│Finish_Setup.sh, located on your desktop │" +echo "└──────────────────────────────────────────┘" +read -p "Press Enter to close...." diff --git a/others/tsubunturhel10.sh b/others/tsubunturhel10.sh new file mode 100644 index 0000000..383719d --- /dev/null +++ b/others/tsubunturhel10.sh @@ -0,0 +1,186 @@ +#!/bin/bash +echo "┌──────────────────────────────────────────┐" +echo "│ Tsubuntu for RHEL10 and derivatives │" +echo "└──────────────────────────────────────────┘" + +echo "┌──────────────────────────────────────────┐" +echo "│Adding EPEL... │" +echo "└──────────────────────────────────────────┘" +dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm +sudo dnf upgrade + +# This was quite the jumpscare. Rocky not having wget preinstalled by default. +sudo dnf install gnome-tweaks unzip gnome-extensions-app dconf-editor wget firewall-config -y + +echo "┌──────────────────────────────────────────┐" +echo "│Installing Snap... │" +echo "└──────────────────────────────────────────┘" +sudo yum install snapd -y +sudo systemctl enable --now snapd.socket +sudo ln -s /var/lib/snapd/snap /snap + +sudo dnf install gnome-tweaks unzip gnome-extensions-app dconf-editor snapd -y + +echo "┌──────────────────────────────────────────┐" +echo "│Adding Flathub... │" +echo "└──────────────────────────────────────────┘" +sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + +echo "┌──────────────────────────────────────────┐" +echo "│Enabling right click > new file... │" +echo "└──────────────────────────────────────────┘" +touch $HOME/Templates/NewFile.txt + +# extensions making gnome usable + +# Yes, this is necessary. It took me a long while to figure out why this damned script would only install one extension. +mkdir $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing clipboard history extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip1="clipboard-indicatortudmotu.com.v38.shell-extension.zip" +linktozip1="https://extensions.gnome.org/extension-data/clipboard-indicatortudmotu.com.v38.shell-extension.zip" +alternativelinktozip1="$extensionsrepo$downloadedzip1" +folder1="clipboard-indicator@tudmotu.com" + +mkdir $folder1 +cd $folder1 +wget --server-response $linktozip1 || wget $alternativelinktozip1 +unzip $downloadedzip1 +rm $downloadedzip1 +cd $HOME +mv $folder1 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing desktop icons extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip2="dingrastersoft.com.v63.shell-extension.zip" +linktozip2="https://extensions.gnome.org/extension-data/dingrastersoft.com.v63.shell-extension.zip" +folder2="ding@rastersoft.com" + +mkdir $folder2 +cd $folder2 +wget $linktozip2 +unzip $downloadedzip2 +rm $downloadedzip2 +cd $HOME +mv $folder2 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing corner tiling extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip3="tiling-assistantleleat-on-github.v32.shell-extension.zip" +linktozip3="https://extensions.gnome.org/extension-data/tiling-assistantleleat-on-github.v32.shell-extension.zip" +folder3="tiling-assistant@leleat-on-github" + +mkdir $folder3 +cd $folder3 +wget $linktozip3 +unzip $downloadedzip3 +rm $downloadedzip3 +cd $HOME +mv $folder3 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing dash to dock... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip4="dash-to-dockmicxgx.gmail.com.v84.shell-extension.zip" +linktozip4="https://extensions.gnome.org/extension-data/dash-to-dockmicxgx.gmail.com.v84.shell-extension.zip" +folder4="dash-to-dock@micxgx.gmail.com" + +mkdir $folder4 +cd $folder4 +wget $linktozip4 +unzip $downloadedzip4 +rm $downloadedzip4 +cd $HOME +mv $folder4 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing tray icons extension... │" +echo "└──────────────────────────────────────────┘" + +cd $HOME +downloadedzip4="appindicatorsupportrgcjonas.gmail.com.v53.shell-extension.zip" +linktozip4="https://extensions.gnome.org/extension-data/appindicatorsupportrgcjonas.gmail.com.v53.shell-extension.zip" +folder4="appindicatorsupport@rgcjonas.gmail.com" + +mkdir $folder4 +cd $folder4 +wget $linktozip4 +unzip $downloadedzip4 +rm $downloadedzip4 +cd $HOME +mv $folder4 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Adding (_)([])(X) buttons... │" +echo "└──────────────────────────────────────────┘" +gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close" + + +echo "┌──────────────────────────────────────────┐" +echo "│Tweaking the file manager... │" +echo "└──────────────────────────────────────────┘" +echo "file:///home/$USER/Desktop" >> ~/.config/gtk-3.0/bookmarks +gsettings set org.gnome.nautilus.preferences show-create-link 'true' +gsettings set org.gnome.nautilus.preferences show-delete-permanently 'true' +gsettings set org.gtk.Settings.FileChooser sort-directories-first 'true' +gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view' + +echo "┌──────────────────────────────────────────┐" +echo "│Remember numlock state... │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.desktop.peripherals.keyboard remember-numlock-state 'true' + +echo "┌──────────────────────────────────────────┐" +echo "│Setting up shortcuts (try Super + E) │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.settings-daemon.plugins.media-keys area-screenshot "['s']" +gsettings set org.gnome.settings-daemon.plugins.media-keys home "['e']" + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'taskmanager' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'gnome-system-monitor' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'Escape' + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'gnome-terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 't' + + +# I know how stupid this looks but when I tried to put the content of dock-setup.sh into this echo section it would not work properly. +touch "$HOME/Desktop/Finish_Setup.sh" +chmod +x "$HOME/Desktop/Finish_Setup.sh" +echo '#!/bin/bash +gnome-extensions enable clipboard-indicator@tudmotu.com +sleep 1 +echo "Enabling the clipboard history extension..." +gnome-extensions enable ding@rastersoft.com +sleep 1 +echo "Enabling the desktop icons extension..." +gnome-extensions enable dash-to-dock@micxgx.gmail.com +sleep 1 +echo "Enabling the dash to dock extension..." +gnome-extensions enable tiling-assistant@leleat-on-github +sleep 1 +echo "Enabling the tiling assistant extension..." +gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com +sleep 1 +echo "Enabling tray icons..." +wget -q https://raw.githubusercontent.com/Tsu-gu/tsubuntu/main/dock-setup.sh && chmod +x dock-setup.sh && ./dock-setup.sh +' >> "$HOME/Desktop/Finish_Setup.sh" + +echo "┌──────────────────────────────────────────┐" +echo "│Restart your PC and then run │" +echo "│Finish_Setup.sh, located on your desktop │" +echo "└──────────────────────────────────────────┘" +read -p "Press Enter to close...." diff --git a/others/tsubunturhel9.sh b/others/tsubunturhel9.sh new file mode 100644 index 0000000..132c727 --- /dev/null +++ b/others/tsubunturhel9.sh @@ -0,0 +1,193 @@ +#!/bin/bash +echo "┌──────────────────────────────────────────┐" +echo "│ Tsubuntu for RHEL9 and derivatives │" +echo "└──────────────────────────────────────────┘" + + +echo "┌──────────────────────────────────────────┐" +echo "│Adding EPEL... │" +echo "└──────────────────────────────────────────┘" +sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y +sudo dnf upgrade + +# This was quite the jumpscare. Rocky not having wget preinstalled by default. +sudo dnf install gnome-tweaks unzip gnome-extensions-app dconf-editor wget firewall-config -y + +echo "┌──────────────────────────────────────────┐" +echo "│Installing Snap... │" +echo "└──────────────────────────────────────────┘" +sudo yum install snapd -y +sudo systemctl enable --now snapd.socket +sudo ln -s /var/lib/snapd/snap /snap + +sudo dnf install gnome-tweaks unzip gnome-extensions-app dconf-editor snapd -y + + +echo "┌──────────────────────────────────────────┐" +echo "│Adding Flathub... │" +echo "└──────────────────────────────────────────┘" +sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + +echo "┌──────────────────────────────────────────┐" +echo "│Enabling right click > new file... │" +echo "└──────────────────────────────────────────┘" +touch $HOME/Templates/NewFile.txt + +# extensions making gnome usable + +# Yes, this is necessary. It took me a long while to figure out why this damned script would only install one extension. +mkdir $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing clipboard history extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip1="clipboard-indicatortudmotu.com.v38.shell-extension.zip" +linktozip1="https://extensions.gnome.org/extension-data/clipboard-indicatortudmotu.com.v38.shell-extension.zip" +alternativelinktozip1="$extensionsrepo$downloadedzip1" +folder1="clipboard-indicator@tudmotu.com" + +mkdir $folder1 +cd $folder1 +wget --server-response $linktozip1 || wget $alternativelinktozip1 +unzip $downloadedzip1 +rm $downloadedzip1 +cd $HOME +mv $folder1 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing desktop icons extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip2="dingrastersoft.com.v63.shell-extension.zip" +linktozip2="https://extensions.gnome.org/extension-data/dingrastersoft.com.v63.shell-extension.zip" +folder2="ding@rastersoft.com" + +mkdir $folder2 +cd $folder2 +wget $linktozip2 +unzip $downloadedzip2 +rm $downloadedzip2 +cd $HOME +mv $folder2 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing corner tiling extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip3="tiling-assistantleleat-on-github.v32.shell-extension.zip" +linktozip3="https://extensions.gnome.org/extension-data/tiling-assistantleleat-on-github.v32.shell-extension.zip" +folder3="tiling-assistant@leleat-on-github" + +mkdir $folder3 +cd $folder3 +wget $linktozip3 +unzip $downloadedzip3 +rm $downloadedzip3 +cd $HOME +mv $folder3 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing dash to dock... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip4="dash-to-dockmicxgx.gmail.com.v84.shell-extension.zip" +linktozip4="https://extensions.gnome.org/extension-data/dash-to-dockmicxgx.gmail.com.v84.shell-extension.zip" +folder4="dash-to-dock@micxgx.gmail.com" + +mkdir $folder4 +cd $folder4 +wget $linktozip4 +unzip $downloadedzip4 +rm $downloadedzip4 +cd $HOME +mv $folder4 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing tray icons extension... │" +echo "└──────────────────────────────────────────┘" + +cd $HOME +downloadedzip4="appindicatorsupportrgcjonas.gmail.com.v53.shell-extension.zip" +linktozip4="https://extensions.gnome.org/extension-data/appindicatorsupportrgcjonas.gmail.com.v53.shell-extension.zip" +folder4="appindicatorsupport@rgcjonas.gmail.com" + +mkdir $folder4 +cd $folder4 +wget $linktozip4 +unzip $downloadedzip4 +rm $downloadedzip4 +cd $HOME +mv $folder4 $HOME/.local/share/gnome-shell/extensions/ + + +echo "┌──────────────────────────────────────────┐" +echo "│Adding (_)([])(X) buttons... │" +echo "└──────────────────────────────────────────┘" +gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close" + + +echo "┌──────────────────────────────────────────┐" +echo "│Tweaking the file manager... │" +echo "└──────────────────────────────────────────┘" +echo "file:///home/$USER/Desktop" >> ~/.config/gtk-3.0/bookmarks +gsettings set org.gnome.nautilus.preferences show-create-link 'true' +gsettings set org.gnome.nautilus.preferences show-delete-permanently 'true' +gsettings set org.gtk.Settings.FileChooser sort-directories-first 'true' +gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view' + + +echo "┌──────────────────────────────────────────┐" +echo "│Remember numlock state... │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.desktop.peripherals.keyboard remember-numlock-state 'true' + +echo "┌──────────────────────────────────────────┐" +echo "│Setting up shortcuts (try Super + E) │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.settings-daemon.plugins.media-keys area-screenshot "['s']" +gsettings set org.gnome.settings-daemon.plugins.media-keys home "['e']" + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'taskmanager' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'gnome-system-monitor' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'Escape' + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'gnome-terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 't' + + +# I know how stupid this looks but when I tried to put the content of dock-setup.sh into this echo section it would not work properly. +touch "$HOME/Desktop/Finish_Setup.sh" +chmod +x "$HOME/Desktop/Finish_Setup.sh" +echo '#!/bin/bash +gnome-extensions enable clipboard-indicator@tudmotu.com +sleep 1 +echo "Enabling the clipboard history extension..." +gnome-extensions enable ding@rastersoft.com +sleep 1 +echo "Enabling the desktop icons extension..." +gnome-extensions enable dash-to-dock@micxgx.gmail.com +sleep 1 +echo "Enabling the dash to dock extension..." +gnome-extensions enable tiling-assistant@leleat-on-github +sleep 1 +echo "Enabling the tiling assistant extension..." +gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com +sleep 1 +echo "Enabling tray icons..." +wget -q https://raw.githubusercontent.com/Tsu-gu/tsubuntu/main/dock-setup.sh && chmod +x dock-setup.sh && ./dock-setup.sh +' >> "$HOME/Desktop/Finish_Setup.sh" + + + + +echo "┌──────────────────────────────────────────┐" +echo "│Restart your PC and then run │" +echo "│Finish_Setup.sh, located on your desktop │" +echo "└──────────────────────────────────────────┘" +read -p "Press Enter to close...." diff --git a/others/tsubuntutumbleweed.sh b/others/tsubuntutumbleweed.sh new file mode 100644 index 0000000..ec41ebe --- /dev/null +++ b/others/tsubuntutumbleweed.sh @@ -0,0 +1,199 @@ +#!/bin/bash +echo "┌──────────────────────────────────────────┐" +echo "│ Tsubuntu for OpenSUSE Tumbleweed │" +echo "└──────────────────────────────────────────┘" +# SUSE does not support gnome-software-plugin-snap + +sudo zypper --non-interactive addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed snappy +sudo zypper --non-interactive --gpg-auto-import-keys refresh +sudo zypper --non-interactive dup --from snappy -y + +sudo zypper --non-interactive install gnome-tweaks unzip gnome-extensions dconf-editor flatpak snapd + +sudo systemctl enable --now snapd +# Yes this is necessary +sleep 1 +snap list +snap warnings + +echo "┌──────────────────────────────────────────┐" +echo "│Adding Flathub... │" +echo "└──────────────────────────────────────────┘" +sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + +echo "┌──────────────────────────────────────────┐" +echo "│Enabling right click > new file... │" +echo "└──────────────────────────────────────────┘" + +touch $HOME/Templates/NewFile.txt + +# extensions making gnome usable + +# Yes, this is necessary. It took me a long while to figure out why this damned script would only install one extension. +mkdir $HOME/.local/share/gnome-shell/extensions/ + +# still the same version +echo "┌──────────────────────────────────────────┐" +echo "│Installing clipboard history extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip1="clipboard-historyalexsaveau.dev.v45.shell-extension.zip" +linktozip1="https://extensions.gnome.org/extension-data/clipboard-historyalexsaveau.dev.v45.shell-extension.zip" +folder1="clipboard-history@alexsaveau.dev" + +mkdir $folder1 +cd $folder1 +wget $linktozip1 +unzip $downloadedzip1 +rm $downloadedzip1 +cd $HOME +mv $folder1 $HOME/.local/share/gnome-shell/extensions/ + +# the version for this stayed the same. On extensions.gnome.org the version is labeled as 83. +echo "┌──────────────────────────────────────────┐" +echo "│Installing desktop icons extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip2="gtk4-dingsmedius.gitlab.com.v87.shell-extension.zip" +linktozip2="https://extensions.gnome.org/extension-data/gtk4-dingsmedius.gitlab.com.v87.shell-extension.zip" +folder2="gtk4-ding@smedius.gitlab.com" + +mkdir $folder2 +cd $folder2 +wget $linktozip2 +unzip $downloadedzip2 +rm $downloadedzip2 +cd $HOME +mv $folder2 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing corner tiling extension... │" +echo "└──────────────────────────────────────────┘" +cd $HOME +downloadedzip3="tiling-assistantleleat-on-github.v49.shell-extension.zip" +linktozip3="https://extensions.gnome.org/extension-data/tiling-assistantleleat-on-github.v49.shell-extension.zip" +folder3="tiling-assistant@leleat-on-github" + +mkdir $folder3 +cd $folder3 +wget $linktozip3 +unzip $downloadedzip3 +rm $downloadedzip3 +cd $HOME +mv $folder3 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing dash to dock... │" +echo "└──────────────────────────────────────────┘" + +cd $HOME +downloadedzip4="dash-to-dockmicxgx.gmail.com.v99.shell-extension.zip" +linktozip4="https://extensions.gnome.org/extension-data/dash-to-dockmicxgx.gmail.com.v99.shell-extension.zip" +folder4="dash-to-dock@micxgx.gmail.com" + +mkdir $folder4 +cd $folder4 +wget $linktozip4 +unzip $downloadedzip4 +rm $downloadedzip4 +cd $HOME +mv $folder4 $HOME/.local/share/gnome-shell/extensions/ + +echo "┌──────────────────────────────────────────┐" +echo "│Installing tray icons extension... │" +echo "└──────────────────────────────────────────┘" + +cd $HOME +downloadedzip4="appindicatorsupportrgcjonas.gmail.com.v59.shell-extension.zip" +linktozip4="https://extensions.gnome.org/extension-data/appindicatorsupportrgcjonas.gmail.com.v59.shell-extension.zip" +folder4="appindicatorsupport@rgcjonas.gmail.com" + +mkdir $folder4 +cd $folder4 +wget $linktozip4 +unzip $downloadedzip4 +rm $downloadedzip4 +cd $HOME +mv $folder4 $HOME/.local/share/gnome-shell/extensions/ + + + +https://extensions.gnome.org/extension-data/appindicatorsupportrgcjonas.gmail.com.v59.shell-extension.zip + + + +echo "┌──────────────────────────────────────────┐" +echo "│Adding (_)([])(X) buttons... │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close" + +echo "┌──────────────────────────────────────────┐" +echo "│Tweaking the file manager... │" +echo "└──────────────────────────────────────────┘" +echo "file:///home/$USER/Desktop" >> ~/.config/gtk-3.0/bookmarks +gsettings set org.gnome.nautilus.preferences show-create-link 'true' +gsettings set org.gnome.nautilus.preferences show-delete-permanently 'true' +gsettings set org.gtk.Settings.FileChooser sort-directories-first 'true' +gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view' +echo "┌──────────────────────────────────────────┐" +echo "│Tweaking the text editor... │" +echo "└──────────────────────────────────────────┘" +gsettings set org.gnome.TextEditor show-line-numbers 'true' +gsettings set org.gnome.TextEditor spellcheck 'false' + +echo "┌──────────────────────────────────────────┐" +echo "│Remember numlock state... │" +echo "└──────────────────────────────────────────┘" + +gsettings set org.gnome.desktop.peripherals.keyboard remember-numlock-state 'true' +echo "┌──────────────────────────────────────────┐" +echo "│Setting up shortcuts (try Super + E) │" +echo "└──────────────────────────────────────────┘" + + +gsettings set org.gnome.shell.keybindings screenshot "['Print']" +gsettings set org.gnome.shell.keybindings show-screenshot-ui "['s']" +gsettings set org.gnome.settings-daemon.plugins.media-keys home "['e']" + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'taskmanager' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'gnome-system-monitor' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'Escape' + +gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']" +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'gnome-terminal' +gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 't' + + +# I know how stupid this looks but when I tried to put the content of dock-setup.sh into this echo section it would not work properly. +touch "$HOME/Desktop/Finish_Setup.sh" +chmod +x "$HOME/Desktop/Finish_Setup.sh" +echo '#!/bin/bash +gnome-extensions enable clipboard-history@alexsaveau.dev +sleep 1 +echo "Enabling the clipboard history extension..." +gnome-extensions enable gtk4-ding@smedius.gitlab.com +sleep 1 +echo "Enabling the desktop icons extension..." +gnome-extensions enable dash-to-dock@micxgx.gmail.com +sleep 1 +echo "Enabling the dash to dock extension..." +gnome-extensions enable tiling-assistant@leleat-on-github +sleep 1 +echo "Enabling the tiling assistant extension..." +gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com +sleep 1 +echo "Enabling tray icons..." +wget -q https://raw.githubusercontent.com/Tsu-gu/tsubuntu/main/dock-setup.sh && chmod +x dock-setup.sh && ./dock-setup.sh +' >> "$HOME/Desktop/Finish_Setup.sh" + +# I simply don't question it. If the command is here snap doesn't bitch about the service not being enabled +sudo systemctl enable --now snapd.apparmor + +echo "┌──────────────────────────────────────────┐" +echo "│Restart your PC and then run │" +echo "│Finish_Setup.sh, located on your desktop │" +echo "└──────────────────────────────────────────┘" +read -p "Press Enter to close...."