R

Refined Productivity Rainbow Statusline

Battle-tested setting for colorful, celebration, your, coding. Includes structured workflows, validation checks, and reusable patterns for statusline.

SettingClipticsstatuslinev1.0.0MIT
0 views0 copies

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

AspectDetails
Color CyclingSix rainbow colors (red, orange, yellow, green, blue, purple) rotating based on current seconds
Energy DetectionMorning energy before noon, afternoon between 12-18h, evening after 18h
Streak MetricDay of year modulo 100 providing a varying streak number for variety
Rainbow SymbolPersistent rainbow icon as the statusline theme anchor element
Model ContextDisplays 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

ParameterTypeDefaultDescription
color_countinteger6Number of rainbow colors in the rotation cycle
morning_thresholdinteger12Hour threshold below which energy shows morning mode
evening_thresholdinteger18Hour threshold above which energy shows evening mode
streak_modulointeger100Modulo value applied to day of year for streak variety
show_rainbow_iconbooleantrueDisplay the rainbow anchor icon in the statusline

Best Practices

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

  1. Color always shows the same value - The seconds-based cycling depends on date +%S returning the current second. If your system clock is frozen or the date command is aliased, the color index will not advance. Verify with date +%S in your terminal.
  2. Energy shows incorrect time of day - Your system timezone may be misconfigured. Check date +%H to verify the current hour matches your local time, and set the TZ environment variable if needed.
  3. 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.
Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates