1
0
forked from extern/nix-config
donovanglover-nix-config/.archlinux/bootstrap.sh
Donovan Glover e7f00aa7f8
archlinux: Run xdg-user-dirs-update during bootstrap.sh
Note that the directories generated can be changed with
user-dirs.dirs, and should respect the user's locale.
2018-12-11 14:32:16 -05:00

51 lines
940 B
Bash
Executable File

#!/bin/sh
# End the script on any errors
set -e
# Change the working directory to this one
cd "$(dirname "$0")"
# Get administrative privileges
sudo -v
# Keep pinging sudo until this script finishes
# Source: https://gist.github.com/cowboy/3118588
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Refresh GPG keys before installing packages
make refresh-keys
# Install PKGBUILDs
make package=tari-core
make package=color-scripts
make package=xeventbind
# Install yay
make aur package=yay
# Install aur packages with yay
yay -S rtv
yay -S polybar
yay -S shotgun
yay -S ranger-git
# Additional settings
make fontconfig
make yarnconfig
# Revoke privileges
sudo -K
# Install dotfiles
make -C ..
# Change the color scheme to a sane default
wal --theme base16-tomorrow-night
# Create the user's home directories
xdg-user-dirs-update
# Run vim for the first time (i.e. install plugins and exit)
nvim