This commit is contained in:
2025-10-23 22:08:33 +02:00
parent e70ca40449
commit 9325e055da
9 changed files with 337 additions and 250 deletions

View File

@@ -13,14 +13,14 @@ for item in "kitty" "ghostty" "wlogout"; do
if [ -L "$HOME/.config/$target" ]; then
rm -v "$HOME/.config/$target"
elif [ -e "$HOME/.config/$target" ]; then
echo "Error: $HOME/.config/$target is not a symlink." >&2
echo "Error: $HOME/.config/$target exists and is not a symlink." >&2
exit 1
fi
done
if [ "$desktop" = "niri" ]; then
ln -sv "$path/../config/$item-niri" "$HOME/.config/$item"
ln -sv "$(realpath --relative-to="$HOME/.config" "$path/../config/$item-niri")" "$HOME/.config/$item"
else
ln -sv "$path/../config/$item" "$HOME/.config/$item"
ln -sv "$(realpath --relative-to="$HOME/.config" "$path/../config/$item")" "$HOME/.config/$item"
fi
done