Refined Productivity Rainbow Statusline
Battle-tested setting for colorful, celebration, your, coding. Includes structured workflows, validation checks, and reusable patterns for statusline.
Refined Productivity Rainbow Statusline
Dynamic rainbow-colored statusline with time-cycling colors, energy levels based on time of day, and productivity streak tracking.
When to Use This Setting
Apply this setting when you need to:
- Add a visually dynamic, color-shifting statusline that changes hue with each passing second
- Track your coding energy levels through time-of-day awareness with morning, afternoon, and evening indicators
- Maintain a productivity streak counter derived from the calendar day to motivate consistent coding habits Consider alternatives when:
- You find constantly shifting colors distracting during focused deep work sessions
- Your terminal environment renders emoji colors inconsistently across different display configurations
Quick Start
Configuration
name: refined-productivity-rainbow-statusline type: setting category: statusline
Example Application
claude setting:apply refined-productivity-rainbow-statusline
Example Output
Setting applied. Changes:
- statusLine.type: command
- statusLine.command: bash rainbow-productivity inline
- color_cycle: 6 colors rotating per second
- energy_levels: Morning(<12h), Afternoon(12-18h), Evening(>18h)
- streak_calc: day_of_year modulo 100
Core Concepts
Productivity Rainbow Overview
| Aspect | Details |
|---|---|
| Color Cycling | Six rainbow colors (red, orange, yellow, green, blue, purple) rotating based on current seconds |
| Energy Detection | Morning energy before noon, afternoon between 12-18h, evening after 18h |
| Streak Metric | Day of year modulo 100 providing a varying streak number for variety |
| Rainbow Symbol | Persistent rainbow icon as the statusline theme anchor element |
| Model Context | Displays active Claude model name alongside the dynamic color and energy fields |
Rainbow Cycle Architecture
+-------------------+ +---------------------+ +------------------+
| System Clock |---->| Color Index Calc |---->| Energy Detector |
| date +%S, +%H | | seconds % 6 = idx | | hour thresholds |
+-------------------+ +---------------------+ +------------------+
| |
v v
+---------------------+ +------------------+
| Streak Calculator | | Status Assembler |
| day_of_year % 100 |--->| rainbow+color+ |
+---------------------+ | energy+streak |
+------------------+
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
| color_count | integer | 6 | Number of rainbow colors in the rotation cycle |
| morning_threshold | integer | 12 | Hour threshold below which energy shows morning mode |
| evening_threshold | integer | 18 | Hour threshold above which energy shows evening mode |
| streak_modulo | integer | 100 | Modulo value applied to day of year for streak variety |
| show_rainbow_icon | boolean | true | Display the rainbow anchor icon in the statusline |
Best Practices
- Use streak values as personal milestones - Although the streak is derived from the day of year, you can mentally map it to your actual consecutive coding days. Some developers keep a separate log and compare against the displayed streak for motivation.
- Adjust energy thresholds to your schedule - If you work night shifts or non-standard hours, modify morning_threshold and evening_threshold to match your actual productive periods so the energy indicator reflects your real work rhythm.
- Reduce color rotation on sensitive displays - If you experience eye strain from the per-second color changes, modify the color index calculation to use minutes instead of seconds, reducing the visual cycling to once per minute while preserving the rainbow effect.
- Combine with focus timer tools - The energy and streak indicators complement Pomodoro or focus timer tools. Seeing your time-of-day energy level alongside a Pomodoro count creates a comprehensive productivity awareness system.
- Customize the color palette for colorblind accessibility - Replace the default six colors with a colorblind-safe palette using distinguishable hues. This ensures the cycling remains visually meaningful for all team members regardless of color vision differences.
Common Issues
- Color always shows the same value - The seconds-based cycling depends on
date +%Sreturning the current second. If your system clock is frozen or the date command is aliased, the color index will not advance. Verify withdate +%Sin your terminal. - Energy shows incorrect time of day - Your system timezone may be misconfigured. Check
date +%Hto verify the current hour matches your local time, and set the TZ environment variable if needed. - Streak number seems random - The streak is intentionally derived from day_of_year modulo 100, not actual consecutive days. This is by design to provide variety. If you want a true streak counter, modify the script to use a persistent counter file.
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Project Standards Config
Claude Code settings preset that enforces consistent coding standards. Configures TypeScript strict mode, ESLint rules, Prettier formatting, and naming conventions.
Bedrock Configuration Blueprint
All-in-one setting covering configure, claude, code, amazon. Includes structured workflows, validation checks, and reusable patterns for api.
Refined Corporate Preset
Production-ready setting that handles configure, proxy, settings, corporate. Includes structured workflows, validation checks, and reusable patterns for api.