2021-06-17 21:37:49 +02:00
|
|
|
#!/bin/bash
|
2022-01-04 20:43:30 +01:00
|
|
|
source ./scripts/common.sh
|
2021-06-17 21:37:49 +02:00
|
|
|
|
2022-01-04 20:43:30 +01:00
|
|
|
if [ -f .env ]; then
|
|
|
|
# Load Environment Variables
|
|
|
|
export $(cat .env | grep -v '#' | awk '/=/ {print $1}')
|
|
|
|
echo "[INFO] Environment file loaded"
|
|
|
|
fi
|
|
|
|
export OS_NAME=`cat /etc/os-release | grep "^NAME=" | sed 's/NAME=//g' | sed 's/"//g'`
|
|
|
|
export OS_NAME=${OS_NAME,,} # LOWERCASE
|
|
|
|
export CWD=$(pwd)
|
|
|
|
|
|
|
|
# Initialize
|
|
|
|
|
|
|
|
## Detect current package manager
|
|
|
|
command_exists pacman && export PM=pacman
|
|
|
|
|
|
|
|
if ! [[ -z "${PM}" ]]; then
|
|
|
|
echo "[INFO] Package manager set to : $PM"
|
|
|
|
else
|
|
|
|
echo '[ERROR] No package manager found. Aborting...' >&2
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
find ./scripts -type f -iname "*.sh" -exec chmod +x {} \;
|
|
|
|
|
|
|
|
# Install and configure functionality
|
2022-01-04 21:32:15 +01:00
|
|
|
./scripts/tools/neovim/install.sh
|
2022-01-04 22:49:42 +01:00
|
|
|
./scripts/tools/rofi/install.sh
|
2022-01-11 22:32:30 +01:00
|
|
|
./scripts/tools/alacritty/install.sh
|
2022-01-18 22:03:51 +01:00
|
|
|
./scripts/tools/tmux/install.sh
|
2022-01-21 22:15:58 +01:00
|
|
|
./scripts/tools/picom/install.sh
|
2022-01-04 21:32:15 +01:00
|
|
|
./scripts/window_manager/awesome/install.sh
|
2022-01-11 22:14:41 +01:00
|
|
|
./scripts/window_manager/i3/install.sh
|
2022-01-18 22:03:51 +01:00
|
|
|
./scripts/tools/fonts/install.sh
|