Skip to content

Commit ffac019

Browse files
committed
statusline: restore % on usage bars, match bolt→fidgetflo gap to brain→Brain² (one space)
1 parent 3daa2bc commit ffac019

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

step-4/step-4-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ fi
996996
# --- fidgetflo CHECK ---
997997
fidgetflo=""
998998
if pgrep -f "fidgetflo.*mcp" >/dev/null 2>&1 || pgrep -f "fidgetflo/bin/cli" >/dev/null 2>&1 || pgrep -f "fidgetflo" >/dev/null 2>&1; then
999-
fidgetflo="⚡️fidgetflo"
999+
fidgetflo="⚡️ fidgetflo"
10001000
fi
10011001
10021002
# --- SWARM CHECK (only shows when actively running) ---
@@ -1074,7 +1074,7 @@ usage_seg() {
10741074
local dim=$'\033[38;5;240m' reset=$'\033[0m'
10751075
while [ $i -lt $filled ]; do fill="${fill}█"; i=$((i+1)); done
10761076
i=0; while [ $i -lt $empty ]; do emp="${emp}█"; i=$((i+1)); done
1077-
printf '%s %s%s%s%s%s' "$label" "$c" "$fill" "$dim" "$emp" "$reset"
1077+
printf '%s %s%s%s%s%s %s%%' "$label" "$c" "$fill" "$dim" "$emp" "$reset" "$p"
10781078
}
10791079
10801080
U5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty' 2>/dev/null)

step-final/step-final-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fi
120120
# --- fidgetflo CHECK ---
121121
fidgetflo=""
122122
if pgrep -f "fidgetflo.*mcp" >/dev/null 2>&1 || pgrep -f "fidgetflo/bin/cli" >/dev/null 2>&1 || pgrep -f "fidgetflo" >/dev/null 2>&1; then
123-
fidgetflo="⚡️fidgetflo"
123+
fidgetflo="⚡️ fidgetflo"
124124
fi
125125
126126
# --- SWARM CHECK (only shows when actively running) ---
@@ -198,7 +198,7 @@ usage_seg() {
198198
local dim=$'\033[38;5;240m' reset=$'\033[0m'
199199
while [ $i -lt $filled ]; do fill="${fill}█"; i=$((i+1)); done
200200
i=0; while [ $i -lt $empty ]; do emp="${emp}█"; i=$((i+1)); done
201-
printf '%s %s%s%s%s%s' "$label" "$c" "$fill" "$dim" "$emp" "$reset"
201+
printf '%s %s%s%s%s%s %s%%' "$label" "$c" "$fill" "$dim" "$emp" "$reset" "$p"
202202
}
203203
204204
U5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty' 2>/dev/null)

templates/INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Close and reopen Claude Code for the status line to take effect.
4747
| 👑 Hive | Active hive-mind session |
4848
| 🍯 Mini | Active mini swarm session |
4949

50-
It also appends your current model, session duration, context-window usage, and Claude rate-limit bars for the **5h** and **7-day** windows — `5h █░░░░ · 7d █░░░░` — color-graded green → yellow → red as you approach each limit. The fill comes from Claude Code's own `rate_limits` data passed to the script on stdin, so there's no API token or network call. (Bars are number-free by design; to show the percent, see the script's `usage_seg` `printf`.)
50+
It also appends your current model, session duration, context-window usage, and Claude rate-limit bars for the **5h** and **7-day** windows — `5h █░░░░ 13% · 7d █░░░░ 24%` — color-graded green → yellow → red as you approach each limit. The fill comes from Claude Code's own `rate_limits` data passed to the script on stdin, so there's no API token or network call.
5151

5252
## Swarm/Hive Lock Files
5353

templates/statusline.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646
# --- fidgetflo CHECK ---
4747
fidgetflo=""
4848
if pgrep -f "fidgetflo.*mcp" >/dev/null 2>&1 || pgrep -f "fidgetflo/bin/cli" >/dev/null 2>&1 || pgrep -f "fidgetflo" >/dev/null 2>&1; then
49-
fidgetflo="️fidgetflo"
49+
fidgetflo="️ fidgetflo"
5050
fi
5151

5252
# --- SWARM CHECK (only shows when actively running) ---
@@ -124,7 +124,7 @@ usage_seg() {
124124
local dim=$'\033[38;5;240m' reset=$'\033[0m'
125125
while [ $i -lt $filled ]; do fill="${fill}"; i=$((i+1)); done
126126
i=0; while [ $i -lt $empty ]; do emp="${emp}"; i=$((i+1)); done
127-
printf '%s %s%s%s%s%s' "$label" "$c" "$fill" "$dim" "$emp" "$reset"
127+
printf '%s %s%s%s%s%s %s%%' "$label" "$c" "$fill" "$dim" "$emp" "$reset" "$p"
128128
}
129129

130130
U5=$(echo "$input" | jq -r '.rate_limits.five_hour.used_percentage // empty' 2>/dev/null)

0 commit comments

Comments
 (0)