forked from RP1/RaveOS-arch
added zenity and changed progs script install
method
This commit is contained in:
parent
727b80e50f
commit
89642daa24
1 changed files with 21 additions and 13 deletions
34
rp-os-ae.sh
34
rp-os-ae.sh
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
Removed because the script is fully tested!
|
||||||
|
#set -e
|
||||||
|
|
||||||
# RaveOS Setup Script
|
# RaveOS Setup Script
|
||||||
|
|
||||||
|
@ -9,9 +10,9 @@ bold=$(tput bold) # ${bold}
|
||||||
normal=$(tput sgr0) # ${normal}
|
normal=$(tput sgr0) # ${normal}
|
||||||
yellow=$(tput setaf 3) # ${yellow}
|
yellow=$(tput setaf 3) # ${yellow}
|
||||||
|
|
||||||
# Deleting password for the script
|
# Deleting password for the script to run uninterrapted
|
||||||
|
|
||||||
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-t
|
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-$USER
|
||||||
echo "Defaults timestamp_timeout=-1" | sudo tee -a /etc/sudoers
|
echo "Defaults timestamp_timeout=-1" | sudo tee -a /etc/sudoers
|
||||||
|
|
||||||
# Making Makepkg a bit faster
|
# Making Makepkg a bit faster
|
||||||
|
@ -20,7 +21,7 @@ yellow=$(tput setaf 3) # ${yellow}
|
||||||
|
|
||||||
# Installing packages
|
# Installing packages
|
||||||
|
|
||||||
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 hblock nano qt5-wayland meson rsync --noconfirm
|
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 hblock nano qt5-wayland meson rsync zenity --noconfirm
|
||||||
sudo systemctl enable gdm.service
|
sudo systemctl enable gdm.service
|
||||||
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target geoclue.service
|
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target geoclue.service
|
||||||
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
|
@ -89,16 +90,17 @@ yellow=$(tput setaf 3) # ${yellow}
|
||||||
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
|
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
|
||||||
sudo rsync -ap --info=progress2 gnome-shell /home/$USER/.local/share/
|
sudo rsync -ap --info=progress2 gnome-shell /home/$USER/.local/share/
|
||||||
cp -a /home/$USER/cosmetics/burn-my-windows /home/$USER/.config/
|
cp -a /home/$USER/cosmetics/burn-my-windows /home/$USER/.config/
|
||||||
sudo cp -a /home/$USER/cosmetics/rave-pp.png /usr/share/pixmaps/faces/
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/rave-pp.png /usr/share/pixmaps/faces/
|
||||||
echo "[User]
|
echo "[User]
|
||||||
Session=
|
Session=
|
||||||
Icon=/usr/share/pixmaps/faces/rave-pp.png
|
Icon=/usr/share/pixmaps/faces/rave-pp.png
|
||||||
SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
||||||
sudo cp -a /home/$USER/cosmetics/archlinux-logo-text-dark.svg /usr/share/pixmaps/
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/archlinux-logo-text-dark.svg /usr/share/pixmaps/
|
||||||
sudo cp -a /home/$USER/cosmetics/view-app-grid-symbolic.svg /usr/share/icons/Yaru/scalable/actions/
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/view-app-grid-symbolic.svg /usr/share/icons/Yaru/scalable/actions/
|
||||||
dconf load / < raveui-eng
|
dconf load / < raveui-eng
|
||||||
|
echo raveui-eng dconf loaded
|
||||||
sudo mkdir -p /usr/share/backgrounds/
|
sudo mkdir -p /usr/share/backgrounds/
|
||||||
sudo cp -a raveos-bg.png /usr/share/backgrounds/
|
sudo rsync -ap --info=progress2 raveos-bg.png /usr/share/backgrounds/
|
||||||
cp -a /home/$USER/cosmetics/.icons /home/$USER/
|
cp -a /home/$USER/cosmetics/.icons /home/$USER/
|
||||||
cp -a /home/$USER/cosmetics/.themes /home/$USER/
|
cp -a /home/$USER/cosmetics/.themes /home/$USER/
|
||||||
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/raveos-bg.png
|
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/raveos-bg.png
|
||||||
|
@ -107,10 +109,12 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
||||||
echo ---------------------------------------------
|
echo ---------------------------------------------
|
||||||
echo Installing ${bold}${yellow}rave command.${normal}
|
echo Installing ${bold}${yellow}rave command.${normal}
|
||||||
echo
|
echo
|
||||||
sudo cp -a /home/$USER/cosmetics/rave /usr/local/bin/
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/rave /usr/local/bin/
|
||||||
sudo chmod +x /usr/local/bin/rave
|
sudo chmod +x /usr/local/bin/rave
|
||||||
sudo cp -a /home/$USER/cosmetics/rave-comp.sh /etc/bash_completion.d/
|
echo given privileges to run for rave
|
||||||
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/rave-comp.sh /etc/bash_completion.d/
|
||||||
sudo chmod +x /etc/bash_completion.d/rave-comp.sh
|
sudo chmod +x /etc/bash_completion.d/rave-comp.sh
|
||||||
|
echo given privileges to run for rave-comp.sh
|
||||||
echo
|
echo
|
||||||
echo ${bold}${yellow}Rave command with bash completion ${normal}installed.
|
echo ${bold}${yellow}Rave command with bash completion ${normal}installed.
|
||||||
echo ---------------------------------------------
|
echo ---------------------------------------------
|
||||||
|
@ -121,13 +125,17 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
||||||
echo
|
echo
|
||||||
mkdir -p /home/$USER/.config/autostart
|
mkdir -p /home/$USER/.config/autostart
|
||||||
sudo chown -R $USER:$GROUP /home/$USER/.config/autostart
|
sudo chown -R $USER:$GROUP /home/$USER/.config/autostart
|
||||||
sudo cp -a 3progs.sh.desktop /home/$USER/.config/autostart
|
echo Changed ownership to $USER /home/$USER/.config/autostart
|
||||||
|
sudo rsync -ap --info=progress2 3progs.sh.desktop /home/$USER/.config/autostart
|
||||||
echo Exec=/home/$USER/.progs/3progs.sh >> /home/$USER/.config/autostart/3progs.sh.desktop
|
echo Exec=/home/$USER/.progs/3progs.sh >> /home/$USER/.config/autostart/3progs.sh.desktop
|
||||||
sudo mkdir -p /home/$USER/.progs
|
sudo mkdir -p /home/$USER/.progs
|
||||||
|
echo Created .progs folder
|
||||||
sudo chown -R $USER:$GROUP /home/$USER/.progs
|
sudo chown -R $USER:$GROUP /home/$USER/.progs
|
||||||
sudo cp -a 3progs.sh /home/$USER/.progs
|
echo Changed ownership to $USER /home/$USER/.progs
|
||||||
|
curl -Ls https://links.rp1.hu/3progs -o 3progs.sh /home/$USER/.progs
|
||||||
sudo chmod +x /home/$USER/.progs/3progs.sh
|
sudo chmod +x /home/$USER/.progs/3progs.sh
|
||||||
sudo cp -a content/. /home/$USER/.progs
|
echo Changed ownership to $USER /home/$USER/.progs/3progs.sh
|
||||||
|
sudo rsync -ap --info=progress2 content/. /home/$USER/.progs
|
||||||
echo
|
echo
|
||||||
echo ${bold}${yellow}ProgramScript Autostart ${normal}installed.
|
echo ${bold}${yellow}ProgramScript Autostart ${normal}installed.
|
||||||
echo ---------------------------------------------
|
echo ---------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue