2021-10-02 22:50:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-01-08 16:56:42 +00:00
|
|
|
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
|
|
|
|
|
2022-01-08 15:24:17 +00:00
|
|
|
echo "Configuring directories..."
|
|
|
|
cd -- "$(dirname -- $0)"
|
2022-01-08 20:59:42 +00:00
|
|
|
mkdir -p "$HOME/.config/zsh" # Symlink only the individual files instead of the entire directory
|
2021-12-22 23:55:07 +00:00
|
|
|
sleep 0.5
|
2022-01-08 16:56:42 +00:00
|
|
|
|
2022-01-08 15:24:17 +00:00
|
|
|
echo "Creating the symlinks with stow..."
|
2021-10-02 22:50:53 +00:00
|
|
|
|
2022-01-08 17:43:03 +00:00
|
|
|
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
|
2022-01-08 20:59:42 +00:00
|
|
|
for pkg in "$@"; do
|
2022-01-08 17:43:03 +00:00
|
|
|
echo "* Stowing $pkg"
|
|
|
|
stow -t "$HOME" --ignore="README.md" "$pkg"
|
|
|
|
sleep 0.1
|
2022-01-08 15:24:17 +00:00
|
|
|
done
|
2021-10-02 22:50:53 +00:00
|
|
|
|
2022-01-08 16:56:42 +00:00
|
|
|
sleep 0.4
|
2022-01-08 15:24:17 +00:00
|
|
|
echo "Making scripts executable..."
|
2021-10-02 22:50:53 +00:00
|
|
|
|
2022-01-08 15:24:17 +00:00
|
|
|
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
|
2021-12-22 23:55:07 +00:00
|
|
|
sleep 0.5
|
2022-01-08 16:56:42 +00:00
|
|
|
|
2022-01-08 15:24:17 +00:00
|
|
|
echo "Done!"
|