2016-10-19 07:56:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
PWD=$(dirname $0)
|
2016-11-03 10:51:32 -07:00
|
|
|
pacman="sudo pacman --needed --noconfirm -S"
|
|
|
|
pacaur="sudo pacaur --needed --noconfirm -s"
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-11-03 10:51:32 -07:00
|
|
|
## Bootstrap
|
|
|
|
$pacman git
|
|
|
|
if ! command -v pacaur >/dev/null
|
2016-10-31 07:32:02 -07:00
|
|
|
then
|
2016-11-03 10:51:32 -07:00
|
|
|
pushd $(mktemp -d)
|
|
|
|
git clone https://aur.archlinux.org/pacaur.git && cd pacaur && makepkg -sri
|
|
|
|
TEMP=$(pwd)
|
2016-10-31 07:32:02 -07:00
|
|
|
popd
|
|
|
|
rm -rf "$TEMP"
|
|
|
|
fi
|
|
|
|
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-11-03 10:51:32 -07:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# GUI+Desktop
|
|
|
|
#
|
|
|
|
########################################
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-10-31 07:32:02 -07:00
|
|
|
$pacman xorg-init xorg-server xorg-xandr xorg-xrdb xorg-xmodmap \
|
2016-11-03 10:51:32 -07:00
|
|
|
xorg-fonts-75dpi xorg-xset xorg-xfd xdotool
|
|
|
|
$pacaur xdo-git
|
2016-10-31 07:32:02 -07:00
|
|
|
|
2016-11-03 10:51:32 -07:00
|
|
|
# Fonts
|
|
|
|
$pacman ttf-dejavu ttf-inconsolata ttf-liberation ttf-ubuntu-font-family terminus-font
|
|
|
|
# Taskbar
|
|
|
|
$pacaur lemonbar lemonbar-xft-git siji-git clock sutils-git
|
2016-10-31 07:32:02 -07:00
|
|
|
# Window manager
|
|
|
|
$pacman lightdm lightdm-webkit2-greeter bspwm sxhkd compton
|
|
|
|
|
|
|
|
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2016-11-03 10:51:32 -07:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# System/Shell
|
|
|
|
#
|
|
|
|
########################################
|
2016-10-31 07:32:02 -07:00
|
|
|
|
2016-11-03 10:51:32 -07:00
|
|
|
# Essentials
|
|
|
|
$pacman wget curl make tmux rsync tree the_silver_searcher bc xsel
|
2016-10-31 07:32:02 -07:00
|
|
|
|
2016-11-02 16:59:20 -07:00
|
|
|
# Install hooks
|
|
|
|
hookdest=/etc/pacman.d/hooks
|
2016-11-03 10:51:32 -07:00
|
|
|
for hook in $PWD/pacman.d/hooks/*.hook
|
2016-11-02 16:59:20 -07:00
|
|
|
do
|
|
|
|
[ -f $hookdest/$(basename "$hook") ] || ln -svf $hook $hookdest/
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install crontab
|
|
|
|
$pacman cronie
|
|
|
|
[ -f $PWD/crontab ] && crontab $PWD/crontab
|
2016-11-03 10:51:32 -07:00
|
|
|
|
|
|
|
# Utilities
|
|
|
|
$pacman feh youtube-dl rofi mpd mpc ncmpcpp redshift
|
|
|
|
$pacaur git-crypt fasd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Networking
|
|
|
|
#
|
|
|
|
########################################
|
|
|
|
|
|
|
|
ETH=$(basename $(echo /sys/class/net/enp*))
|
|
|
|
WLP=$(basename $(echo /sys/class/net/wlp*))
|
|
|
|
|
|
|
|
$pacman dhcpcd netctl
|
|
|
|
# Speed up connections on boot
|
|
|
|
if ! grep "^noarp$" /etc/dhcpcd.conf
|
|
|
|
then
|
|
|
|
echo "\nnoarp" | sudo tee -a /etc/dhcpcd.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $ETH ]]; then
|
|
|
|
$pacman ifplug
|
|
|
|
sudo systemctl enable netctl-ifplugd@$ETH.service
|
|
|
|
sudo systemctl start netctl-ifplugd@$ETH.service
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $WLP ]]; then
|
|
|
|
$pacman wpa_supplicant wpa_actiond dialog
|
|
|
|
sudo wifi-menu
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Apps & Customization
|
|
|
|
#
|
|
|
|
########################################
|
|
|
|
|
|
|
|
# Applications
|
|
|
|
$pacman rxvt-unicode firefox obs-studio chromium
|
|
|
|
|
|
|
|
# GTK theme
|
|
|
|
[[ -d /usr/share/themes/Arc-Dark ]] || $pacaur gtk-theme-arc
|
|
|
|
|