ccusageの代替として作った、jq + bashベースの高速(~60ms)なstatusline。
Opus 4.6 | main +156/-23 | ~/src/github.com/kazuph/reviw
¥669 ▓▓▓▓▓▓░░░░░░░░░ 41%/200k | 30m45s (api 33%)
| #!/bin/bash | |
| input=$(cat) | |
| USD_JPY=150 # Fixed rate — update occasionally | |
| # --- Usage Limits (API fetch with cache) --- | |
| USAGE_CACHE="/tmp/claude-statusline-usage.json" | |
| USAGE_STAMP="/tmp/claude-statusline-usage.stamp" | |
| USAGE_LOCK="/tmp/claude-statusline-usage.lock" | |
| USAGE_CACHE_AGE=300 # seconds between successful refreshes |
| { | |
| "global": { "show_profile_name_in_menu_bar": true }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "rules": [ | |
| { | |
| "description": "F24 -> Fn (globe) + switch to moNa2", | |
| "manipulators": [ | |
| { |
| # Claude Code Hooks | |
| ## stop-send-notification.js | |
| Claudeがメッセージ生成を停止した時にmacOS通知を送るフック。 | |
| ### 設定 | |
| `~/.claude/settings.json` に以下を追加: |
Alfred workflow for translating selected text or clipboard content using plamo-translate.
Cmd+Shift+T| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>音符当てクイズ</title> | |
| <style> | |
| body { | |
| font-family: sans-serif; | |
| display: flex; |
| { | |
| "global": { | |
| "ask_for_confirmation_before_quitting": true, | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": true, | |
| "show_profile_name_in_menu_bar": true, | |
| "unsafe_ui": false | |
| }, | |
| "profiles": [ | |
| { |