Rework colorsync file-watching using fswatch instead of watchman

This commit is contained in:
Martin Larsson 2025-08-28 23:00:23 +02:00
parent f74c830e88
commit de289309f7
5 changed files with 72 additions and 85 deletions

View file

@ -1,14 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$HOME/.local/state/colorsync"
TRIGGER_NAME="tmux_statusbar_color"
SCRIPT="$HOME/.config/tmux/tmux-statusbar-color.sh"
WATCHMAN="watchman"
"$WATCHMAN" watch-project "$ROOT" >/dev/null
"$WATCHMAN" -- trigger-del "$ROOT" "$TRIGGER_NAME" >/dev/null 2>&1 || true
"$WATCHMAN" -- trigger "$ROOT" "$TRIGGER_NAME" 'current' -- bash "$SCRIPT"
# watchman -- trigger "$HOME/.local/state/colorsync" tmux_statusbar_color 'current' -- bash "$HOME/.config/tmux/tmux-statusbar-color.sh"
# watchman watch-project "$HOME/.local/state/colorsync"