{"id":50807624,"url":"https://github.com/hxreborn/waybar-claude-code","last_synced_at":"2026-06-13T02:33:40.978Z","repository":{"id":324261473,"uuid":"1095287831","full_name":"hxreborn/waybar-claude-code","owner":"hxreborn","description":"A lightweight Waybar custom module that displays Claude Code usage metrics","archived":false,"fork":false,"pushed_at":"2025-11-15T13:46:20.000Z","size":2270,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-30T00:40:49.427Z","etag":null,"topics":["awesome-claude-code","ccusage","claude","claude-code","go","linux","statusbar","waybar","waybar-module","wayland"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hxreborn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-12T21:09:53.000Z","updated_at":"2026-03-20T15:20:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hxreborn/waybar-claude-code","commit_stats":null,"previous_names":["hxreborn/waybar-claude-code"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hxreborn/waybar-claude-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxreborn%2Fwaybar-claude-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxreborn%2Fwaybar-claude-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxreborn%2Fwaybar-claude-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxreborn%2Fwaybar-claude-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hxreborn","download_url":"https://codeload.github.com/hxreborn/waybar-claude-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxreborn%2Fwaybar-claude-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34270414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome-claude-code","ccusage","claude","claude-code","go","linux","statusbar","waybar","waybar-module","wayland"],"created_at":"2026-06-13T02:33:40.192Z","updated_at":"2026-06-13T02:33:40.974Z","avatar_url":"https://github.com/hxreborn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# waybar-claude-code\n\n[![Go Version](https://img.shields.io/badge/go-1.21+-00ADD8.svg?logo=go)](https://go.dev/dl/)\n[![Zero Deps](https://img.shields.io/badge/deps-zero-success)]()\n![Nerd Fonts](https://img.shields.io/badge/nerd%20font-required-orange)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n\nA lightweight Waybar custom module written in Go that displays Claude Code usage metrics to your bar using [ccusage](https://github.com/ryoppippi/ccusage).\n\n## Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/demo.gif\" width=\"800\" alt=\"Demo\"\u003e\n\u003c/p\u003e\n\n\u003e [!NOTE]\n\u003e If you're using waybar for the first time checkout the [example configuration](examples).\n\n## Features\n\n- **CGO-disabled static binary** - Single 3MB Go executable with zero runtime dependencies. Runs anywhere without glibc or library conflicts.\n- **Live usage without daemons** - Executes ccusage on each poll to show current Claude Code stats without background processes hogging resources.\n- **Waybar-native JSON output** - Built-in tooltip support and CSS class integration. Works seamlessly with your existing bar configuration and theme.\n- **Microscopic overhead** - Spawns per interval, fetches stats and exits. ~10MB memory footprint with effectively zero CPU load.\n- **Configurable refresh rate** - Polls every 5 minutes by default. Change one config value to update faster or slower.\n\n## Requirements\n\n- [npm/npx](https://nodejs.org/) to run ccusage\n- [Waybar](https://github.com/Alexays/Waybar) for module integration\n- [Nerd Fonts](https://www.nerdfonts.com/) for icon display\n- Go 1.21 or later required for source compilation\n\n## Installation\n\n### Precompiled Binary Installation\n\nDownload and install to your Waybar modules directory. Releases follow the pattern `waybar-claude-code-v{version}-linux-{arch}.tar.gz`:\n\n```bash\n# Download latest release (replace {version} with actual version, e.g., v1.0.1)\ncurl -LO https://github.com/hxreborn/waybar-claude-code/releases/latest/download/waybar-claude-code-v{version}-linux-amd64.tar.gz\ntar -xzf waybar-claude-code-*.tar.gz\ninstall -Dm755 waybar-claude-code ~/.config/waybar/modules/waybar-claude-code\n```\n\nVerify installation:\n```bash\nwaybar-claude-code --version\n```\n\n### Arch Linux (AUR)\n\nIf you use an AUR helper like `yay`:\n\n```bash\nyay -S waybar-claude-code-bin\n```\n\n### Build from Source\n\n```bash\ngit clone https://github.com/hxreborn/waybar-claude-code.git /tmp/waybar-claude-code\ncd /tmp/waybar-claude-code\nmake install\n```\n\nIf this module keeps your workflow smoother, file an issue or star the repo so I know it's worth maintaining.\n\n## Configuration\n\n### Update Waybar Config\n\nAdd to `~/.config/waybar/config.jsonc`:\n\n```jsonc\n\"custom/claude-code\": {\n  \"return-type\": \"json\",\n  \"exec\": \"~/.config/waybar/modules/waybar-claude-code\",\n  \"format\": \"{text}\",\n  \"interval\": 300,\n  \"tooltip\": true,\n  \"on-click\": \"${TERMINAL:-kitty} -e claude\"\n}\n```\n\n**Note:** Uses `$TERMINAL` environment variable, falls back to `kitty` if unset.\n\n### Style Configuration\n\nAdd to `~/.config/waybar/style.css`:\n\n```css\n#custom-claude-code {\n  padding: 0 10px;\n  margin: 0 2px;\n  color: inherit;\n}\n\n#custom-claude-code:hover {\n  color: #ff8c00;\n}\n\ntooltip {\n  font-family: \"MesloLGSDZ Nerd Font\", monospace;\n}\n```\n\n**Note:** Tooltip icons require a [Nerd Font](https://www.nerdfonts.com/). See [examples/](examples/) for complete styling with active states and tooltip customization.\n\n## Usage\n\nHover over the 󰜡 icon to see detailed metrics:\n\n```\n Active Block (resets in 3h 45m - 18h30)\n Requests: 110\n Tokens: 2.8M (1.5M in / 1.3M out)\n Cost: $1.47 @ $0.38/h\n```\n\nReset time uses 24-hour format and rounds to the nearest hour if within 2 minutes (e.g., `17:59` → `18h`).\n\n## Troubleshooting\n\n**Icons show as boxes:** Install a [Nerd Font](https://www.nerdfonts.com/) and configure it in your terminal/Waybar settings\n\n**Module not appearing:** Verify binary is executable: `ls -lh ~/.config/waybar/modules/waybar-claude-code`\n\n**No tooltip on hover:** Add `\"tooltip\": true` to the module config in `~/.config/waybar/config.jsonc`\n\n**Module shows error state:** Run binary manually to see error output: `~/.config/waybar/modules/waybar-claude-code`\n\n## License\n\nMIT - see [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxreborn%2Fwaybar-claude-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhxreborn%2Fwaybar-claude-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxreborn%2Fwaybar-claude-code/lists"}