changed paru to paru-bin, separated gnome and gnome apps, added zsh to zsh setup, added remove tmp dir command, and added missing newline after confirming execution
This commit is contained in:
parent
2cfcfb0b73
commit
027eeee5b9
1 changed files with 17 additions and 5 deletions
22
setup.sh
22
setup.sh
|
@ -69,8 +69,8 @@ install_paru() {
|
||||||
smart_mkdir "$SCRIPT_DIR/tmp"
|
smart_mkdir "$SCRIPT_DIR/tmp"
|
||||||
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for paru installation" && exit 1)
|
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for paru installation" && exit 1)
|
||||||
sudo pacman --noconfirm -S --needed base-devel git
|
sudo pacman --noconfirm -S --needed base-devel git
|
||||||
git clone https://aur.archlinux.org/paru.git
|
git clone https://aur.archlinux.org/paru-bin.git
|
||||||
cd ./paru && makepkg -si
|
cd ./paru-bin && makepkg -si
|
||||||
|
|
||||||
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing paru" && exit 1)
|
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing paru" && exit 1)
|
||||||
}
|
}
|
||||||
|
@ -329,6 +329,8 @@ setup_gnome() {
|
||||||
nvidia `# nvidia GPU support` \
|
nvidia `# nvidia GPU support` \
|
||||||
optimus-manager-qt `# https://github.com/Shatur/optimus-manager-qt` \
|
optimus-manager-qt `# https://github.com/Shatur/optimus-manager-qt` \
|
||||||
|
|
||||||
|
setup_gnome_apps
|
||||||
|
|
||||||
sudo systemctl enable gdm
|
sudo systemctl enable gdm
|
||||||
|
|
||||||
# Not using power switching
|
# Not using power switching
|
||||||
|
@ -340,6 +342,10 @@ setup_gnome() {
|
||||||
|
|
||||||
# todo: add profile (Performance: 250, 650)
|
# todo: add profile (Performance: 250, 650)
|
||||||
|
|
||||||
|
POST_INSTALL+=("gnome: reboot")
|
||||||
|
}
|
||||||
|
|
||||||
|
setup_gnome_apps() {
|
||||||
# install gnome apps
|
# install gnome apps
|
||||||
package_install \
|
package_install \
|
||||||
baobab `# Disk usage analysis` \
|
baobab `# Disk usage analysis` \
|
||||||
|
@ -366,7 +372,6 @@ setup_gnome() {
|
||||||
nautilus `# gnome file manager` \
|
nautilus `# gnome file manager` \
|
||||||
sushi `# quick previewer for nautilus` \
|
sushi `# quick previewer for nautilus` \
|
||||||
|
|
||||||
POST_INSTALL+=("gnome: reboot")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_gnome_extensions() {
|
setup_gnome_extensions() {
|
||||||
|
@ -579,7 +584,7 @@ setup_vscode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_vim() {
|
setup_vim() {
|
||||||
package_install \
|
package_install \
|
||||||
vim-plug `# vim plugin manager` \
|
vim-plug `# vim plugin manager` \
|
||||||
|
|
||||||
cp .vimrc ~/.vimrc
|
cp .vimrc ~/.vimrc
|
||||||
|
@ -625,6 +630,9 @@ setup_zoom() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_zsh() {
|
setup_zsh() {
|
||||||
|
package_install \
|
||||||
|
zsh \
|
||||||
|
|
||||||
if [[ ! -d /home/pomp/.oh-my-zsh ]]; then
|
if [[ ! -d /home/pomp/.oh-my-zsh ]]; then
|
||||||
# install oh my zsh
|
# install oh my zsh
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
@ -639,7 +647,7 @@ setup_zsh() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# #################### [ INSTALL ] ####################
|
# #################### [ ETC ] ####################
|
||||||
|
|
||||||
backup() {
|
backup() {
|
||||||
TIMESTAMP=$(date +%s)
|
TIMESTAMP=$(date +%s)
|
||||||
|
@ -681,6 +689,9 @@ cd "$SCRIPT_DIR" || {
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# remove temporary files and folders that was not removed from previous run
|
||||||
|
rm -rf "./tmp"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
warn_no_label "NOTICE"
|
warn_no_label "NOTICE"
|
||||||
warn_no_label " This is not a completely hands off process."
|
warn_no_label " This is not a completely hands off process."
|
||||||
|
@ -692,6 +703,7 @@ if [[ $REPLY =~ ^[^Yy]$ ]]; then
|
||||||
echo
|
echo
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
|
||||||
# #################### [ MAIN ] ####################
|
# #################### [ MAIN ] ####################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue