dotfiles/artix-install.sh
2022-01-08 18:43:03 +01:00

36 lines
971 B
Bash
Executable file

#!/bin/sh
if [ "$(lsb_release -si)" != "Artix" ]; then
echo "This script is only intended to be used for a full setup on Artix Linux. Quitting..."
exit 1
fi
echo "Configuring directories..."
cd -- "$(dirname -- $0)"
ZDOTDIR="$HOME/.config/zsh"
mkdir -p "$ZDOTDIR" # Symlink only the individual files instead of the entire directory
sleep 0.5
echo "Creating the symlinks with stow..."
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
for pkg in $PKGS; do
echo "* Stowing $pkg"
stow -t "$HOME" --ignore="README.md" "$pkg"
sleep 0.1
done
sleep 0.4
echo "Making scripts executable..."
chmod +x scripts/.local/bin/clear-clipboard.sh
chmod +x scripts/.local/bin/update.sh
chmod +x scripts/.local/bin/vfio.sh
chmod +x sway/.config/sway/autostart.sh
chmod +x waybar/.config/waybar/ivpn-reconnect.sh
chmod +x waybar/.config/waybar/ivpn-status.sh
chmod +x waybar/.config/waybar/mediaplayer.py
sleep 0.5
echo "Done!"