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

70 lines
2.8 KiB
Bash
Raw Normal View History

2024-12-19 21:02:20 +00:00
#!/usr/bin/env bash
2024-12-20 20:05:31 +00:00
set -e
2024-12-19 20:51:55 +00:00
# RaveOS Setup Script
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 19:03:37 +00:00
sudo pacman -S gnome-terminal gnome-session gdm gnome-disk-utility gnome-system-monitor eog flatpak base-devel bash-completion firefox gedit gnome-calculator baobab ffmpeg git gnome-control-center gnome-browser-connector xdg-desktop-portal xdg-desktop-portal-gnome xdg-desktop-portal-gtk xdg-desktop-portal-wlr ttf-ubuntu-font-family gnome-settings-daemon unzip wget glib2 glib2-devel spice-vdagent rsync hblock --noconfirm
2024-12-19 20:51:55 +00:00
sudo systemctl enable gdm.service
2024-12-20 20:48:36 +00:00
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target geoclue.service
2024-12-19 20:51:55 +00:00
git clone https://aur.archlinux.org/yay-bin.git
2024-12-19 21:15:09 +00:00
cd yay-bin
2024-12-20 21:30:55 +00:00
makepkg -si --noconfirm
2024-12-19 22:19:05 +00:00
cd -
rm -rf yay-bin
2024-12-19 20:51:55 +00:00
2024-12-21 19:39:35 +00:00
yay -S gdm-tools --noconfirm --sudoloop --save
2024-12-20 18:36:24 +00:00
2024-12-19 22:41:15 +00:00
git clone https://aur.archlinux.org/yaru.git
cd yaru
2024-12-20 21:30:55 +00:00
makepkg -si --noconfirm
2024-12-19 22:41:15 +00:00
cd -
rm -rf yaru
2024-12-19 21:34:04 +00:00
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"
mkdir cosmetics
cd cosmetics
2024-12-19 21:07:34 +00:00
wget -O cosmetics.zip https://files.rp1.hu/api/public/dl/R_0cJkKL/
2024-12-19 20:51:55 +00:00
unzip cosmetics.zip
2024-12-20 20:05:31 +00:00
sudo chown -R $USER:$GROUP /home/$USER/cosmetics/
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/
sudo cp -a overrides /home/$USER/.local/share/flatpak/
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-20 18:36:24 +00:00
2024-12-21 19:03:37 +00:00
sudo sed -i 's/ %wheel ALL=(ALL:ALL) ALL/# %wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
sudo sed -i 's/ %wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers
groups $USER
#reboot