This commit is contained in:
2023-09-12 07:57:14 +00:00
parent 0d4d7ec2e0
commit b44dd9785b

View File

@@ -3,6 +3,19 @@
# global var
DISTRO=""
export NEWT_COLORS="
root=,green
window=,black
shadow=,green
border=green,black
title=green,black
textbox=green,black
radiolist=black,black
label=black,green
checkbox=black,green
compactbutton=black,green
button=black,red"
function get_distribution() {
if [[ -e /etc/debian_version ]]; then
source /etc/os-release
@@ -68,6 +81,8 @@ function setup_repo() {
sudo add-apt-repository ppa:serge-rider/dbeaver-ce
sudo echo 'deb http://download.opensuse.org/repositories/hardware:/razer/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/hardware:razer.list
sudo curl -fsSL https://download.opensuse.org/repositories/hardware:razer/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/hardware_razer.gpg > /dev/null
wget https://dl.thorium.rocks/debian/dists/stable/thorium.list
sudo mv thorium.list /etc/apt/sources.list.d/
sudo apt update
elif [[ $DISTRO == "fedora" ]]; then
sudo dnf copr enable varlad/onefetch -y
@@ -158,11 +173,14 @@ function install_browser() {
if (whiptail --title "Web Browser" --yesno "Should we install web browsers?" 8 78); then
echo "Installing browsers..."
if [[ $DISTRO =~ (debian|ubuntu) ]]; then
sudo apt install firefox chromium torbrowser-launcher -y
sudo apt install firefox chromium torbrowser-launcher thorium-browser -y
wget https://github.com/Alex313031/Mercury/releases/download/v.115.2.0/mercury-browser_115.2.0_x64.deb
dpkg -i ./mercury-browser_115.2.0_x64.deb
elif [[ $DISTRO == "fedora" ]]; then
sudo dnf in firefox chromium tor torbrowser-launcher -y
elif [[ $DISTRO == "arch" ]]; then
sudo pacman -S --needed firefox chromium tor tor-browser --noconfirm
sudo pacman -S --needed firefox chromium tor torbrowser-launcher --noconfirm
yay -S --needed --noconfirm thorium-browser-bin mercury-browser-bin
fi
fi
}
@@ -183,7 +201,7 @@ function install_gaming() {
sudo flatpak install launcher.moe moe.launcher.the-honkers-railway-launcher -y --noninteractive --system
fi
elif [[ $DISTRO == "arch" ]]; then
sudo pacman -S --needed steam gamescope gamemode mangohud lutris discord protonup-qt heroic-games-launcher-bin an-anime-game-launcher-bin --noconfirm
sudo pacman -S --needed steam gamescope gamemode lib32-gamemode mangohud vkd3d lib32-vkd3d python-protobuf wine xorg-xgamma lutris discord protonup-qt heroic-games-launcher-bin an-anime-game-launcher-bin --noconfirm
yay -S --needed honkers-launcher-bin the-honkers-railway-launcher-bin --noconfirm
fi
fi
@@ -279,7 +297,7 @@ function install_gpu_drivers() {
elif pacman -Qs xf86-video-nouveau > /dev/null; then
sudo pacman -R --noconfirm xf86-video-nouveau
fi
sudo pacman -S --needed --noconfirm nvidia-open-dkms nvidia-settings nvidia-utils lib32-nvidia-utils libvdpau lib32-libvdpau
sudo pacman -S --needed --noconfirm nvidia-open-dkms nvidia-settings nvidia-utils lib32-nvidia-utils libvdpau lib32-libvdpau gst-libav gst-plugins-good lib32-gst-plugins-good
yay -S --needed --noconfirm libva-nvidia-driver
if [ -d "/sys/class/power_supply/BAT0" ]; then
sudo pacman -S --needed --noconfirm supergfxctl
@@ -293,7 +311,7 @@ function install_gpu_drivers() {
elif [[ $DISTRO == "fedora" ]]; then
sudo dnf in xorg-x11-drv-amdgpu mesa-vdpau-drivers mesa-va-drivers libavcodec-freeworld -y
elif [[ $DISTRO == "arch" ]]; then
sudo pacman -S --needed --noconfirm xf86-video-amdgpu libva-mesa-driver lib32-libva-mesa-driver vulkan-radeon lib32-vulkan-radeon mesa-vdpau lib32-mesa-vdpau
sudo pacman -S --needed --noconfirm xf86-video-amdgpu libva-mesa-driver lib32-libva-mesa-driver vulkan-radeon lib32-vulkan-radeon mesa-vdpau lib32-mesa-vdpau gst-libav gst-plugins-good lib32-gst-plugins-good
fi
fi
# INTEL
@@ -303,7 +321,7 @@ function install_gpu_drivers() {
elif [[ $DISTRO == "fedora" ]]; then
sudo dnf in xorg-x11-drv-intel intel-media-driver ffmpeg libavcodec-freeworld -y
elif [[ $DISTRO == "arch" ]]; then
sudo pacman -S --needed --noconfirm intel-media-driver linux-firmware vulkan-intel
sudo pacman -S --needed --noconfirm intel-media-driver linux-firmware vulkan-intel gst-libav gst-plugins-good lib32-gst-plugins-good
fi
fi
fi