add niri setup

This commit is contained in:
2025-10-02 05:44:34 +02:00
parent cc537fc029
commit 7d07282234
27 changed files with 2105 additions and 95 deletions

21
.scripts/config-switch Executable file
View File

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