Files
dotfiles/install.sh
2024-05-02 18:36:52 +01:00

48 lines
1.2 KiB
Bash
Executable File

#! /bin/bash
source dotfiles/.bashrc
# Install Paru
if [ ! $(command -v paru) ]; then
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd ..
rm -rf paru
fi
# Install script dependencies
paru -Sy curl git stow bat fzf less nextcloud-client
# Install GUI Apps
paru -Sy foot signal-desktop gnome-calendar gnome-podcasts brave-bin
# Install CLI Apps
paru -Sy dd w3m newsboat iamb tmux ollama vim transmission-cli mutt gpg pass
if [ $(pwd) != "$HOME/dotfiles" ]; then
cd $HOME
git clone https://github.com/TrudeEH/dotfiles --depth=1
cd dotfiles
fi
echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}"
stow -v -t $HOME dotfiles --adopt
git diff
git reset --hard
# dconf reset -f /
dconf load / < dconf-settings
xdg-settings set default-web-browser brave-browser.desktop
# Import Files, Passwords and Keys
ncs
gpg --import-ownertrust ~/Nextcloud/SYNC/exported-keys/private.pgp
gpg --import-ownertrust ~/Nextcloud/SYNC/exported-keys/public.pgp
gpg --import-ownertrust < ~/Nextcloud/SYNC/exported-keys/trustlevel.txt
ln -s ~/Nextcloud/SYNC/password-store/ ~/.password-store
echo
echo -e "${GREEN}[I] Done.${ENDCOLOR}"