1
0
Fork 0
forked from RP1/RaveOS-arch
RaveOS-arch/rp-os-ae.sh

72 lines
2.4 KiB
Bash
Raw Normal View History

2024-12-19 21:02:20 +00:00
#!/usr/bin/env bash
2024-12-21 19:59:13 +00:00
2024-12-20 20:05:31 +00:00
set -e
2024-12-21 19:59:13 +00:00
2024-12-19 20:51:55 +00:00
# RaveOS Setup Script
2024-12-21 19:59:13 +00:00
# Text Colours
2024-12-19 20:51:55 +00:00
bold=$(tput bold) # ${bold}
normal=$(tput sgr0) # ${normal}
yellow=$(tput setaf 3) # ${yellow}
2024-12-21 19:03:37 +00:00
2024-12-21 19:29:36 +00:00
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-t
2024-12-21 19:03:37 +00:00
2024-12-19 20:51:55 +00:00
# Installing packages
2024-12-21 22:50:58 +00:00
sudo pacman -S wget uznip --noconfirm
2024-12-21 22:50:25 +00:00
2024-12-21 21:48:34 +00:00
# Downloading RavePkg
mkdir cosmetics
2024-12-21 21:58:22 +00:00
sudo chown -R $USER:$GROUP /home/$USER/cosmetics/
2024-12-21 21:48:34 +00:00
cd cosmetics
2024-12-21 22:06:16 +00:00
wget -O cosmetics.zip https://files.rp1.hu/api/public/dl/K7znaGkC/
2024-12-21 21:48:34 +00:00
unzip cosmetics.zip
2024-12-19 21:34:04 +00:00
2024-12-21 20:21:13 +00:00
echo
echo ---------------------------------------------
echo Installing ${bold}${yellow}CachyOS - Gaming Kernel${normal}
2024-12-21 21:20:54 +00:00
curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz
2024-12-21 22:49:23 +00:00
sudo cp /home/$USER/cosmetics/cachyos-repo.sh /home/$USER/cosmetics/cachyos-repo/
2024-12-21 21:37:23 +00:00
tar xvf cachyos-repo.tar.xz && cd cachyos-repo
2024-12-21 21:20:54 +00:00
sudo ./cachyos-repo.sh
cd -
2024-12-21 21:06:05 +00:00
sudo pacman -S linux-cachyos linux-cachyos-headers --noconfirm
2024-12-21 20:21:13 +00:00
echo ${bold}${yellow}CachyOS - Gaming Kernel ${normal}installed.
echo ---------------------------------------------
echo
2024-12-19 20:51:55 +00:00
# RaveOS Cosmetics
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-purple-dark'
gsettings set org.gnome.desktop.interface cursor-theme 'Yaru'
gsettings set org.gnome.desktop.interface icon-theme 'Yaru-purple-dark'
gsettings set org.gnome.desktop.sound theme-name 'Yaru'
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
2024-12-20 21:06:56 +00:00
sudo rsync -ap --info=progress2 gnome-shell /home/$USER/.local/share/
2024-12-19 20:51:55 +00:00
cp -a burn-my-windows /home/$USER/.config/
2024-12-20 18:36:24 +00:00
sudo cp -a rave-pp.png /usr/share/pixmaps/faces/
echo "[User]
Session=
Icon=/usr/share/pixmaps/faces/rave-pp.png
SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
sudo cp -a archlinux-logo-text-dark.svg /usr/share/pixmaps/
2024-12-20 21:56:24 +00:00
sudo cp -a view-app-grid-symbolic.svg /usr/share/icons/Yaru/scalable/actions/
2024-12-20 22:19:47 +00:00
dconf load / < raveui-eng
sudo mkdir -p /usr/share/backgrounds/
sudo cp -a raveos-bg.png /usr/share/backgrounds/
cp -a .icons /home/$USER/
cp -a .themes /home/$USER/
2024-12-20 22:31:19 +00:00
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/raveos-bg.png
2024-12-20 21:56:24 +00:00
2024-12-21 19:55:50 +00:00
sudo rm /etc/sudoers.d/99*
2024-12-21 19:59:13 +00:00
sudo rm -rf /home/$USER/cosmetics
2024-12-20 18:36:24 +00:00
2024-12-21 20:21:13 +00:00
2024-12-21 19:55:50 +00:00
reboot