2018-12-08 19:45:05 +01:00
|
|
|
#!/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 &
|
|
|
|
|
2018-12-10 05:54:41 +01:00
|
|
|
# Refresh GPG keys before installing packages
|
|
|
|
make refresh-keys
|
|
|
|
|
2018-12-08 19:45:05 +01:00
|
|
|
# Install PKGBUILDs
|
|
|
|
make package=tari-core
|
|
|
|
make package=color-scripts
|
|
|
|
make package=xeventbind
|
|
|
|
|
2018-12-10 05:46:46 +01:00
|
|
|
# Install yay
|
2018-12-08 19:45:05 +01:00
|
|
|
make aur package=yay
|
2018-12-10 05:46:46 +01:00
|
|
|
|
|
|
|
# Install aur packages with yay
|
|
|
|
yay -S rtv
|
|
|
|
yay -S polybar
|
|
|
|
yay -S shotgun
|
|
|
|
yay -S ranger-git
|
2018-12-11 20:39:09 +01:00
|
|
|
yay -S shantz-xwinwrap-bzr
|
2018-12-08 19:45:05 +01:00
|
|
|
|
|
|
|
# Additional settings
|
|
|
|
make fontconfig
|
|
|
|
make yarnconfig
|
|
|
|
|
2018-12-11 21:06:52 +01:00
|
|
|
# Enable the lightweight X11 display manager
|
2018-12-11 21:52:27 +01:00
|
|
|
systemctl enable lxdm.service
|
2018-12-11 21:06:52 +01:00
|
|
|
|
2018-12-08 19:45:05 +01:00
|
|
|
# Revoke privileges
|
|
|
|
sudo -K
|
|
|
|
|
|
|
|
# Install dotfiles
|
|
|
|
make -C ..
|
|
|
|
|
|
|
|
# Change the color scheme to a sane default
|
|
|
|
wal --theme base16-tomorrow-night
|
|
|
|
|
2018-12-11 20:26:47 +01:00
|
|
|
# Create the user's home directories
|
|
|
|
xdg-user-dirs-update
|
|
|
|
|
2018-12-08 19:45:05 +01:00
|
|
|
# Run vim for the first time (i.e. install plugins and exit)
|
|
|
|
nvim
|