.s/scripts/install.sh

83 lines
2.2 KiB
Bash
Raw Permalink Normal View History

2023-03-27 20:58:00 -04:00
#!/bin/sh
# after archinstall...
USER=lizzy
MACHINE_ZSH=~/scripts/machine-specific-zsh/$(hostname).zsh
2023-03-29 16:39:02 -04:00
CURSOR_THEME="Oxygen 19 Pink Blossom"
2023-03-27 20:58:00 -04:00
# Some packages
2023-03-27 21:14:18 -04:00
sudo pacman -S git vim \
2023-03-27 20:58:00 -04:00
networkmanager firefox alacritty zsh \
sway inetutils playerctl rustup tmux \
openssl-1.1 bluez bluez-utils wget \
base-devel dunst wofi noto-fonts-emoji \
light brightnessctl pass docker \
2023-03-30 02:18:04 -04:00
pavucontrol seahorse man xorg xorg-xwayland \
lxappearance wl-clipboard
2023-03-27 20:58:00 -04:00
# rustup
rustup default stable
# Submodules - zsh stuff and pikaur
git submodule init
git submodule sync
2023-03-31 18:45:44 -04:00
git submodule update
2023-03-27 20:58:00 -04:00
# pikaur
cd ~/src/pikaur
makepkg -si
cd ~
# AUR packages
pikaur -S xremap-x11-bin spotify-tui-bin \
betterdiscord-installer-bin discord obs-studio \
2023-03-27 21:08:21 -04:00
nerd-fonts-cozette-ttf ttf-font-awesome ttf-cozette \
2023-04-30 15:36:01 -04:00
waybar swaybg emacs-gcc-wayland-devel-bin swaylock-corrupter \
waybar-mpris-git
2023-03-29 16:39:02 -04:00
# Copy cursors
sudo cp -r ~/.icons/"$CURSOR_THEME" /usr/share/icons
2023-03-27 20:58:00 -04:00
# xremap
sudo groupadd input
lsmod | grep uinput || echo 'uinput' | sudo tee /etc/modules-load.d/uinput.conf && \
echo 'KERNEL=="uinput", GROUP="input", MODE="0660"' | sudo tee /etc/udev/rules.d/99-input.rules
sudo usermod -aG input $USER
systemctl enable --user xremap
# spotifyd
pikaur -S spotifyd
systemctl enable --user spotifyd
# chsh to zsh
chsh $USER --shell /bin/zsh
# Docker
sudo systemctl enable --now docker
sudo groupadd docker
sudo usermod -aG docker $USER
2023-03-27 20:58:00 -04:00
# Setup asdf-vm, thefuck
pikaur -S asdf-vm thefuck
echo ". /opt/asdf-vm/asdf.sh" >> $MACHINE_ZSH
echo "eval \$(thefuck --alias)" >> $MACHINE_ZSH
2023-04-04 12:47:14 -04:00
# setup node versions
. /opt/asdf-vm/asdf.sh
asdf plugin add nodejs
asdf install nodejs lts-gallium
asdf global nodejs lts-gallium
2023-03-27 20:58:00 -04:00
# Now, generate ssh key
ssh-keygen -t ed25519
echo "Now, you still need to:"
echo " . Import your GPG key and --edit-key with ultimate trust"
echo " . pass --init <gpg-key-id>"
echo " . Setup spotify-tui with client id from spotify.com"
echo " . Put spotify password in `pass insert spotify` for spotifyd"
echo " . Login to firefox"
echo " . Put ssh key into GitHub, change remote origin in ~"
echo " . Add waybar config in .config/waybar/local.d"
2023-04-30 15:36:01 -04:00
echo " . If streaming, install v4l2loopback-dkms, obs-studio-tytan652"