.s/scripts/install.sh

84 lines
2.2 KiB
Bash
Raw Normal View History

2023-03-27 20:58:00 -04:00
#!/bin/sh
# after archinstall...
# 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 \
2023-08-12 11:50:10 -04:00
lxappearance wl-clipboard python-hatchling
# VARS
USER=lizzy
MACHINE_ZSH=~/scripts/machine-specific-zsh/$(hostname).zsh
CURSOR_THEME="Oxygen 19 Pink Blossom"
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-08-12 11:50:10 -04:00
nerd-fonts-cozette-ttf ttf-font-awesome cozette-ttf waybar \
swaybg emacs-gcc-wayland-devel-bin swaylock-corrupter \
2023-04-30 15:36:01 -04:00
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 && \
2023-08-12 11:50:10 -04:00
echo 'KERNEL=="uinput", GROUP="input", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/99-input.rules
2023-03-27 20:58:00 -04:00
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
2023-08-12 11:50:10 -04:00
asdf install nodejs latest:18
asdf global nodejs latest:18
2023-04-04 12:47:14 -04:00
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"