From 66d8000284620149667d212e0ea4ecee6eaf80e5 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 31 Jul 2022 19:42:34 -0400 Subject: [PATCH] FIX use scripts dir when calling helper FIX xinit package name REF add install scripts docs --- README.md | 30 ++++++++++++++++++++++++++++++ scripts/aur_deps | 4 +++- scripts/pacman_deps | 6 ++++-- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d22d8b..2a19071 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,33 @@ Built just for me...although you may fork if you like it ;) * selecting Wifi networks (networkmanager_dmenu) * clipboard management (greenclip) * mounting disks + +# Installation + +The "easy" way will only work on Arch out of the box. + +After cloning this repo, move to the root of this repo and install the build +dependency packages: + +``` +pacman -S --needed - < make_pkgs +``` + +Build/install xmonad/xmobar binaries: + +``` +stack install +``` + +Install official runtime dependencies: + +``` +pacman -S --needed $(./scripts/pacman_deps) +``` + +Install unofficial runtime dependencies with your favorite AUR helper (which is +obviously yay): + +``` +yay -S $(./scripts/aur_deps) +``` diff --git a/scripts/aur_deps b/scripts/aur_deps index a410aeb..581d27f 100755 --- a/scripts/aur_deps +++ b/scripts/aur_deps @@ -2,7 +2,9 @@ # Print list of packages to be installed via yay -mapfile -t local < <(./.query_pkgs "AUR") +this_dir=$(dirname "$0") + +mapfile -t local < <("$this_dir/.query_pkgs" "AUR") if ! yay -Si "${local[@]}" > /dev/null; then echo "At least one local package doesn't exist." diff --git a/scripts/pacman_deps b/scripts/pacman_deps index 30431b8..3f49869 100755 --- a/scripts/pacman_deps +++ b/scripts/pacman_deps @@ -4,9 +4,11 @@ # these are extra packages that pertain to processes outside xmonad but are # still required/desired to make it work correctly -xmonad_pkgs=(xinit autorandr picom) +xmonad_pkgs=(xorg-xinit autorandr picom) -mapfile -t official < <(./.query_pkgs "Official") +this_dir=$(dirname "$0") + +mapfile -t official < <("$this_dir/.query_pkgs" "Official") if ! pacman -Si "${official[@]}" > /dev/null; then echo "At least one official package doesn't exist."