#!/usr/bin/env bash # Prints the current htbbox target for the tmux status bar (empty if none). # Same state files as $TARGET/$BOX; `htbbox clear` empties it. d="${XDG_STATE_HOME:-$HOME/.local/state}/htb" [ -s "$d/target" ] || exit 0 ip=$(head -1 "$d/target"); box=target [ -s "$d/box" ] && box=$(head -1 "$d/box") printf ' %s %s ' "$box" "$ip"