From 08dcac288c1b75f6b4957e0d0fd2c8c1cb2e740d Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 20 Dec 2021 19:12:53 -0600 Subject: [PATCH] add pkg installs --- bin/install-pkgs | 16 ++++++++++++++++ info/pkgs.yml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100755 bin/install-pkgs create mode 100644 info/pkgs.yml diff --git a/bin/install-pkgs b/bin/install-pkgs new file mode 100755 index 0000000..43cd671 --- /dev/null +++ b/bin/install-pkgs @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +if ! $(is-executable yq); then + echo "you will need to install yq" + echo "see here for more info: https://github.com/mikefarah/yq" +fi + +YAMLDOC="$HOME/.dotfiles/info/pkgs.yml" + +readarray pkgs < <(yq e '.["arch"] | .[] | ... comments=""' $YAMLDOC) + +sudo pacman -S $(echo ${pkgs[@]}) + +readarray pkgs < <(yq e '.["aur"] | .[] | ... comments=""' $YAMLDOC) + +paru -S $(echo ${pkgs[@]}) diff --git a/info/pkgs.yml b/info/pkgs.yml new file mode 100644 index 0000000..6da2449 --- /dev/null +++ b/info/pkgs.yml @@ -0,0 +1,38 @@ +arch: + # utils + - zsh + - nano + - vim + - curl + - wget + - git + - coreutils + - unzip + - openssh + - tmux + # system + - bluez-utils + - dhcpcd + # environment + - xorg-server + - xorg-apps + - xorg-xinit + - xf86-video-vesa + - lightdm + - rofi + - dunst + # tools + - alacritty + - vivaldi +aur: + # tools + - visual-studio-code-bin + # environment + - lightdm-mini-greeter + - leftwm + - leftwm-theme-git + - picom-git + - polybar + # fun + - macchina +