mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-21 17:42:18 +01:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWYcmik6APnHfc9gEVy
30 lines
1.4 KiB
JSON
30 lines
1.4 KiB
JSON
{
|
|
"intent": "kuhy sees the active focus project in i3bar: a focus_project block renders the focus field daily-limits now writes to its cache.",
|
|
"scope": [
|
|
"linux_configuration/i3blocks/focus_project.sh, the [focus_project] stanza in linux_configuration/i3blocks/config, linux_configuration/tests/test_i3blocks_focus_project.sh",
|
|
"Non-goal: no focus logic here (focus_project.status() decides); daily-limits owns the cache"
|
|
],
|
|
"changes": [
|
|
"New block: `🎯 <name> <minutes>/<daily_minutes>`, green at the daily target, hidden with no project or a missing/stale/garbage cache; jq re-parse only on cache mtime change",
|
|
"Stanza has signal=11 so daily-limits can refresh it with pkill -RTMIN+11 -x i3blocks"
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "bash linux_configuration/tests/test_i3blocks_focus_project.sh",
|
|
"result": "pass",
|
|
"evidence": "focus_project block: all checks passed"
|
|
},
|
|
{
|
|
"command": "bash ~/.config/i3blocks/focus_project.sh (live cache after daily-limits.service)",
|
|
"result": "pass",
|
|
"evidence": "🎯 HackerRank prep 0/120, #F1FA8C"
|
|
}
|
|
],
|
|
"risks": [
|
|
"The running i3bar loads the stanza only after its next restart; until then the poke is harmless (i3blocks 1.5 survived an unconfigured RTMIN+11)"
|
|
],
|
|
"rollback": [
|
|
"git revert the commit and remove the symlink ~/.config/i3blocks/focus_project.sh"
|
|
]
|
|
}
|