← back to Terminal Status

integrations/working-state.sh

11 lines

#!/usr/bin/env bash
# One status update per user prompt; no heat colors or background title writers.
set -eu
engine="$HOME/Projects/terminal-status/terminal_status.py"
case "${1:-}" in
  on) exec python3 "$engine" set green WORKING --quiet ;;
  off) exec python3 "$engine" repaint --quiet ;;
  _watch|_idle_watch) exit 0 ;;
  *) echo "usage: working-state.sh {on|off}" >&2; exit 2 ;;
esac