Random aside, but ZAI is having a sale on GLM 4.6 API. Its dirt cheap, and open weights (unlike claude), and awesome.
Even better, you can host it locally fairly easily with a decent gaming PC, and get a fairly close approximation to the remote API (for free, privately).
This guide shows how to configure Waybar (for Wayland/Hyprland) with live status displays for Claude Code and Codex. The modules show current usage and rate limits in real-time in the status bar.
πΈ Example
Waybar displays two modules:
CC (Claude Code): Shows 5h-block status with progress bar
COD (Codex): Shows rate-limit status with progress bar
Example output:
CC π2h45m 67% βββββββββ β COD π4h12m 23% ββββββββ
π§ Prerequisites
System
Waybar (for Wayland/Hyprland)
Linux (Arch Linux, Ubuntu, etc.)
Bash Shell
jq (JSON Processor)
Node.js Tools
One of the following package managers:
npx (comes with Node.js)
bunx (Bun)
pnpm
Claude Code & Codex Tools
ccusage: npm install -g ccusage or via npx ccusage
@ccusage/codex: npm install -g @ccusage/codex or via npx @ccusage/codex
π File Structure
~/.config/waybar/
βββ config.jsonc # Waybar main configuration
βββ style.css # Waybar styling
βββ scripts/
βββ ccusage-statusline.sh # Claude Code status script
βββ codex-statusline.sh # Codex status script
βββ api-config.sh (optional) # API configuration
π Step 1: Waybar Configuration
Open ~/.config/waybar/config.jsonc and add the two modules:
I think it is great that you're transparent about your AI usage. I'd assume most of the down votes are because most people don't want to see it on their Lemmy feed. What is the added benefit? If they wanted an AI generated config they'd generate it themselves, not search online for an AI generated one.
So I don't believe that the generally 'negative' reponse reflects on you, just most users' desire to not have AI content on their feed.
9 Comments
brucethemoose@lemmy.world · 2 pts · 263d
Random aside, but ZAI is having a sale on GLM 4.6 API. Its dirt cheap, and open weights (unlike claude), and awesome.
Even better, you can host it locally fairly easily with a decent gaming PC, and get a fairly close approximation to the remote API (for free, privately).
Banthex@feddit.org · 1 pts · 263d
I have a Month sub but im Not that happy. But for Kovalainen usage it would be really nice.
Banthex@feddit.org · -6 pts · 265d
Waybar with Claude Code & Codex Usage Display
This guide shows how to configure Waybar (for Wayland/Hyprland) with live status displays for Claude Code and Codex. The modules show current usage and rate limits in real-time in the status bar.
πΈ Example
Waybar displays two modules:
Example output:
π§ Prerequisites
System
jq(JSON Processor)Node.js Tools
One of the following package managers:
npx(comes with Node.js)bunx(Bun)pnpmClaude Code & Codex Tools
npm install -g ccusageor vianpx ccusagenpm install -g @ccusage/codexor vianpx @ccusage/codexπ File Structure
π Step 1: Waybar Configuration
Open
~/.config/waybar/config.jsoncand add the two modules:1.1 Add modules to modules-center
Explanation:
exec: Path to the script that provides the datainterval: Update interval in seconds (300s = 5min)format: Display format (here directly the script output)on-click: Clicking triggers a manual script updateπ Step 2: Waybar Styling
Add the styling for the modules in
~/.config/waybar/style.css:Customizations:
color: Text color (can be changed as desired)font-family: Nerd Font for icons (install JetBrainsMono Nerd Font)font-size: Adjust font sizeπ Step 3: Create Scripts
3.1 Create script directory
3.2 Claude Code Script
Create
~/.config/waybar/scripts/ccusage-statusline.sh:3.3 Codex Script
Create
~/.config/waybar/scripts/codex-statusline.sh:HappyFrog@lemmy.blahaj.zone · 7 pts · 265d
Did you write this post with AI too? What's with the emojis?
Banthex@feddit.org · 0 pts · 265d
Yes but its all checked. I'm transparent into this. Even if a lot of people dont like it. I gonna tell others when i use AI and when not.
HappyFrog@lemmy.blahaj.zone · 4 pts · 265d
That's good :3 I don't personally like using AI, but I think that people and content that is AI generated should be labeled as such.
Banthex@feddit.org · -1 pts · 264d
According to the reviews, I should lie next time. A lot of nerdy people here donβt understand the backlash their behavior causes.
Faalangst_26@feddit.nl · 1 pts · 264d
I think it is great that you're transparent about your AI usage. I'd assume most of the down votes are because most people don't want to see it on their Lemmy feed. What is the added benefit? If they wanted an AI generated config they'd generate it themselves, not search online for an AI generated one. So I don't believe that the generally 'negative' reponse reflects on you, just most users' desire to not have AI content on their feed.
Banthex@feddit.org · 1 pts · 263d
What other people Write about is Not their descision. Maybe lemmy shoud have a checkbox for AI content?