From 6d195b54a9e623830ad6a68c8907a3f36764478b Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Tue, 20 Feb 2024 18:40:18 +0100 Subject: [PATCH] Add script to help with first install --- tree/.local/bin/arch-firstinstall | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 tree/.local/bin/arch-firstinstall diff --git a/tree/.local/bin/arch-firstinstall b/tree/.local/bin/arch-firstinstall new file mode 100755 index 0000000..b2a275f --- /dev/null +++ b/tree/.local/bin/arch-firstinstall @@ -0,0 +1,66 @@ +#!/bin/bash + +set -e + +if [ "$(id -u)" -eq 0 ]; then echo "Do not run as root." >&2; exit 1; fi + +sudo pacman -Syu +sudo pacman --needed -S \ + alacritty \ + base-devel \ + bat \ + bluez \ + bluez-utils \ + brightnessctl \ + curl \ + difftastic \ + dunst \ + dust \ + exa \ + fd \ + fish \ + git \ + git-delta \ + grim \ + htop \ + hyprland \ + neovim \ + nerd-fonts \ + noto-fonts \ + noto-fonts-emoji \ + noto-fonts-extra \ + nushell \ + ripgrep \ + rustup \ + tig \ + vim \ + waybar \ + wget \ + wl-clipboard \ + zathura + +# install nvim packer +git clone --depth 1 https://github.com/wbthomason/packer.nvim \ + ~/.local/share/nvim/site/pack/packer/start/packer.nvim \ + || true # command will fail if packer is already installed + +rustup default stable + +if ! command -v paru &> /dev/null; then + echo "`paru` not found, installing..." + sleep 1 + + cd "$(mktemp -d)" + git clone https://aur.archlinux.org/paru.git + cd paru + makepkg -si +fi + +paru -S hyprpaper-git findex-bin wdisplays eww-wayland + +cargo install --locked --git https://git.nubo.sh/hulthe/lockscreen-blur.git + +# cargo binstall +curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + +cargo binstall cargo-watch