29 lines
999 B
Bash
Executable File
29 lines
999 B
Bash
Executable File
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
|
WALLPAPER_DIR=$(scripts/install/wallpaper_dir.sh)
|
|
|
|
copy_missing() {
|
|
local dest="$1"
|
|
local filename
|
|
filename="$(basename "$dest")"
|
|
local src="$SCRIPT_DIR/examples/$filename.example"
|
|
|
|
if [ -e "$dest" ]; then
|
|
echo "Already exists: $dest"
|
|
else
|
|
echo "Creating: $dest"
|
|
cp "$src" "$dest"
|
|
fi
|
|
}
|
|
|
|
copy_missing "$SCRIPT_DIR/user_config/monitor.conf"
|
|
copy_missing "$SCRIPT_DIR/user_config/input.conf"
|
|
copy_missing "$SCRIPT_DIR/user_config/workspace.conf"
|
|
copy_missing "$SCRIPT_DIR/scripts/autostart/workspace"
|
|
copy_missing "$SCRIPT_DIR/user_config/bind.conf"
|
|
copy_missing "$SCRIPT_DIR/user_config/input.conf"
|
|
copy_missing "$SCRIPT_DIR/hyprlock.conf"
|
|
copy_missing "$SCRIPT_DIR/hyprpaper.conf"
|
|
copy_missing "$SCRIPT_DIR/config/autostart.conf"
|
|
|
|
echo "The script will now install dependencies via pacman"
|
|
sudo pacman -S --needed hyprland-qt-support hyprcursor hypridle hyprlock hypridle |