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.
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).
I have a Month sub but im Not that happy. But for Kovalainen usage it would be really nice.
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:Did you write this post with AI too? What's with the emojis?
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.
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.
According to the reviews, I should lie next time. A lot of nerdy people here don’t understand the backlash their behavior causes.
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.
What other people Write about is Not their descision. Maybe lemmy shoud have a checkbox for AI content?