readme;agents.md;zellij niri and alacritty

This commit is contained in:
2026-02-19 20:35:26 +00:00
parent 690875fb21
commit d418f4eb67
10 changed files with 2538 additions and 0 deletions

27
niri/files/niri-watcher.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Paths
TEMPLATE_FILE="$HOME/.config/niri/config.tmpl.kdl"
COLORS_FILE="$HOME/.config/niri/colors.conf"
OUTPUT_FILE="$HOME/.config/niri/config.kdl"
# Call ./generate-config.sh
generate_config() {
"$HOME/.config/niri/generate-config.sh"
}
generate_config
# Watch for changes
echo "Watching for changes in $TEMPLATE_FILE and $COLORS_FILE..."
inotifywait -m -e modify,create,delete,move,close_write \
"$(dirname "$TEMPLATE_FILE")" \
"$(dirname "$COLORS_FILE")" |
while read -r path events filename; do
if [[ "$path$filename" == "$TEMPLATE_FILE" || "$path$filename" == "$COLORS_FILE" ]]; then
echo "Detected change: $events in $path$filename"
sleep 0.2
generate_config
fi
done