From 683db2c1bd66867c387aca1e784d49b9c6fad1a7 Mon Sep 17 00:00:00 2001 From: randomuser Date: Sat, 24 Dec 2022 00:38:08 -0600 Subject: [PATCH] add automatic package installation to deploy.sh added automatic package installation to deploy.sh. this by default installs pacman and pip packages. in the future, we'll detect if we are running in termux and install termux packages instead. --- depends.pacman | 33 +++++++++++++++++++++++++++++++++ depends.pip | 2 ++ deploy.sh | 10 ++++++++++ 3 files changed, 45 insertions(+) create mode 100644 depends.pacman create mode 100644 depends.pip diff --git a/depends.pacman b/depends.pacman new file mode 100644 index 0000000..b63f316 --- /dev/null +++ b/depends.pacman @@ -0,0 +1,33 @@ +linux +linux-firmware +wpa_supplicant +dhcpcd +networkmanager +pulseaudio +git +base +base-devel +curl +xorg +bspwm +sxhkd +xorg-xrandr +imagemagick +mpv +feh +neovim +tig +python +openssh +tmux +fzy +tor +torsocks +firefox +chromium +jq +remind +ledger +cmus +yt-dlp +python-pip diff --git a/depends.pip b/depends.pip new file mode 100644 index 0000000..6eb2539 --- /dev/null +++ b/depends.pip @@ -0,0 +1,2 @@ +neovim +spotify-dl diff --git a/deploy.sh b/deploy.sh index bf12a63..e3f548f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -8,6 +8,16 @@ for i in $modules; do ln -sf "$(pwd)/$i" "$HOME/gitt/" done +if [ -f /etc/arch-release ]; then + pacman_packages=$(cat depends.pacman | tr '\n' ' ') + sudo pacman -Syu $pacman_packages +fi + +pip_packages=$(cat depends.pip | tr '\n' ' ') +pip install $pip_packages + +exit + cd dot make echo "### WARNING: you need to install environment hooks and firefox setup later. please do that. ###"