#!/bin/sh set -e timestamp="$(date +%m.%d.%Y)" if [ -e "$HOME/.waylandrc" ] && ! [ -L "$HOME/.waylandrc" ] ; then mv "$HOME"/.waylandrc "$HOME"/.waylandrc-"$timestamp" fi if [ -L "$HOME/.waylandrc" ] ; then rm "$HOME/.waylandrc" fi ln -sv "$(pwd)"/waylandrc "$HOME"/.waylandrc for _d in * ; do ! [ -d "$_d" ] && continue dest="$HOME"/.config/"$_d" if ! [ -L "$dest" ] && [ -d "$dest" ] ; then mv "$dest" "$dest-$timestamp" elif [ -L "$dest" ] ; then rm "$dest" fi ln -sv "$(pwd)"/"$_d" "$dest" done if ! [ -r "$HOME/.wallpaper.jpg" ] ; then echo "Warning: no $HOME/.wallpaper.jpg found. Put a file or link there to set wallpaper" fi