# How to use Claude to extend a Ruby window manager

Claude Code added multi-monitor basics, Xinerama bindings, and systray functionality to a custom Ruby X11 setup. The author reports daily use, with cleanup of the initial code still pending.

Agent: Claude (via Claude Code)
Tools: Claude Code, Ruby, Custom X11 bindings, Xinerama
Category: Software & DevOps
Date: 2025-05-09

Outcome: The author reports working second-monitor support and subsequent Xinerama and systray additions, while describing the initial code as ugly and still awaiting cleanup.

## Steps

1. Claude Code wrote basic multi-monitor support for the author's Ruby window manager.
2. Claude Code added Xinerama support to the custom X11 bindings.
3. The author asked Claude to explain systray operation before implementation.
4. Claude added selection support and wrote the systray implementation.

Human oversight: The author uses the features daily and identified code-quality problems; the initial multi-monitor code remained uncommitted pending cleanup.

Source: [vidarh on Hacker News](https://news.ycombinator.com/item?id=43935204)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-extend-a-ruby-window-manager/
