better structure

This commit is contained in:
2025-10-19 00:14:19 +02:00
parent 057afc086e
commit 8733656ed9
630 changed files with 81 additions and 137 deletions

21
scripts/config-switch Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
path="$(dirname "$(readlink -f "$0")")"
if [ -z "$1" ]; then
desktop="$XDG_CURRENT_DESKTOP"
else
desktop="$1"
fi
for item in "kitty" "ghostty" "wlogout"; do
[ -L "$HOME/.config/$item" ] || exit 1
rm "$HOME/.config/$item"
if [ "$desktop" = "niri" ]; then
ln -s "$path/../config/$item-niri" "$HOME/.config/$item"
else
ln -s "$path/../config/$item" "$HOME/.config/$item"
fi
done