This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Simple Claude Code StatusLine Script | |
| Shows context usage/progress with colored bar | |
| Uses current_usage field for accurate context window calculations | |
| BUG WORKAROUND (remove when fixed): | |
| https://github.com/anthropics/claude-code/issues/13783 | |
| The statusline API's context_window data is inaccurate. This script parses | |
| the transcript JSONL as a workaround. When bug #13783 is fixed, delete: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Simple Claude Code StatusLine Script | |
| # Shows only context usage/progress information | |
| # System-agnostic version using Python instead of jq | |
| # add to your .claude/settings.json (I use it as global) | |
| # | |
| # { | |
| # …, | |
| # "statusLine": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @use "sass:math"; | |
| @function clampDimension( | |
| $minViewportWidthPx, | |
| $minDimensionRem, | |
| $maxViewportWidthPx, | |
| $maxDimensionRem, | |
| $remSize: 16px | |
| ) { | |
| $minWidth: math.div($minViewportWidthPx, $remSize); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .upload-detail-preview, | |
| .upload-dialog-thumbnail:has(.img), | |
| .FilePreview { | |
| background: repeating-conic-gradient(hsl(0 0% 60%) 0% 25%, hsl(0 0% 70%) 0% 50%) 50% / 20px 20px; | |
| } | |
| .info-filesize { | |
| color: white; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // init variables globally | |
| // The !global flag (we use later) may only be used to set a variable | |
| // that has already been declared at the top level of a file. | |
| // It may not be used to declare a new variable. | |
| $w: null; | |
| $h: null; | |
| $p: null; | |
| $z: null; | |
| // create a new scope to work in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "_css-sass2css": "node-sass --source-map-embed true --precision 6 --source-map-root \"/\" ./scss/style.scss ./css-temp/style.css", | |
| "_css-postcss": "postcss ./css-temp/style.css --use autoprefixer --output ./css-temp/style.css", | |
| "_css-minify": "csso --input ./css-temp/style.css --output ./css-temp/style.css --source-map ./css-temp/style.css.map", | |
| "_css-move": "ncp ./css-temp/ ./css/", | |
| "_css-cleanup": "rimraf ./css-temp", | |
| "css-compile": "npm run _css-sass2css && npm run _css-postcss && npm run _css-minify && npm run _css-move && npm run _css-cleanup", | |
| } |