A CPU/RAM System Monitor Widget for Omarchy

7 min read widgetsomarchyclaude

How I used Claude to setup a custom widget and info-panel for Omarchy v4. Displays processor-core load, memory usage and GPU-load  etc.

SysMon Widget and Clock etc in system-bar

A few months ago I took a leap-of-faith and backed up my Windows 11 laptop, then installed the latest (and much hyped) Linux distro on it; Omarchy. The install went smoothly and I have to admit, I'm very impressed and using it as my daily-driver. I'm not sure if I'll go back.

Part of what's making this Linux install succeed, where all others before it have failed, is Claude Code. Without it, a failed driver install, weird volume mount, bootloader wonk, or any number of Linux-frictions, will lead to many hours chasing solutions and tinkering. I like tinkering, just not when it takes over my life and means I can't use important tools (my laptop!) when things go wrong.

Another part that led me here was the use-case of using my laptop to drive my TV. I prefer the UX of driving my laptop to messing around with media servers or TV UIs. On my laptop, I can customize things more. Adblockers, HDR formats and profiles, whatever. And Windows won't undo things or harass me about an update whilst chilling on a Friday night in front of the TV.

So far, it's been working really well. A few customizations have made it much more comfy. And none of them are hard to persist across system updates or tweak if surfaces shift under/around them. Part of being comfy on a system is building an intuition for what is happening. For that I need to see telemetry that isn't distracting, is informative, and easy to drill into when I want to know more.

I found it really easy to create a System Monitor widget that can be expanded to show more detail. It even shows the GPU-load and swap/page memory details. I didn't one-shot it, but it's been serving me well for a few weeks now. Maybe this will inspire you to build something similar.

Omarchy System-Monitor Widget and Info Panel

This wasn't the first Omarchy customization I've built, but it's a core one, so it's first in the series of posts covering Omarchy Widgets and customizations I've done.

I used Claude Code and pointed it at some related code I already had that helps bridge the gaps between my way of talking about things, and the real names of the Omarchy components etc. Since Omarchy installs its own Skills, you just need to mention omarchy or use /omarchy and it'll check the docs and guides purpose-built for AI coding of customizations, sys-config, sys-troubleshooting etc. It's a new era 🤯🤖.

Things worth doing are worth keeping. Keeping it neat from Day 1 means you'll have it there for next time, and won't have to fight Claude et. al. when you're using it in the future.

I use a Git repo for keeping track of all my customizations. When you set it up you can tell Claude you want to "persists things across updates/upgrades". It tends to over-reach, so ask it to keep it "terse and simple" helps.

Here's the prompt I started with:

harness
Claude Code
model
Opus 5.5
btop is nice, but big and terminal. ubuntu has nice sys-monitor tool. this omarchy laptop needs something more "always on"; a widget on the rhs of the time in the "task bar" (a bit similar to the media-playing information on the lhs of the omarchy task-bar) that has 2 bars; ram and cpu with VERY careful and informative read-outs of the system load. the memory/ script has set our peaks for /tmp, and this monitor is our way to see what is actually happening

It took a little bit of iterating and a lot of requests for clean, potent, minimal and similar prompts.

harness
Claude Code
model
Opus 5.5
why does our sysmon say "8" and show almost full to the cap where z/swap occur? when we have 16GB??
harness
Claude Code
model
Opus 5.5
try it. the goal is neat and uncluttered, so a monochrome overlay or something feels right to me

The widget and the detail panel use the current theme colors, so it always harmonizes visually with the current theme.

The widget draws on a Glass Bg (like iOS etc) which helps it to remain clear when rendered on detailed backgrounds. You don't need the glass-bg when the UI is drawn in high-contrast. I wanted it to sit visually lower in the hierarchy so that when it updates, it doesn't grab my attention.

The biggest challenge I had when building it was when I noticed that my GPU-load was sitting well above 20% when it should have been idle. After investigating, it turned out to be an issue with the way that the updates/draws are done on Omarchy that meant that any updates to the widget were triggering a redraw of the full desktop. The way that I fixed it was to reduce the interval of updates and accept a laggier draw of the bar-charts that draw CPU/GPU load in the widget.

image

Seeing the widget here on this page makes it look wonky. I deliberately set the icon lower than middle so that the bars are more suffix-like. At actual size on my display, I like it and it looks balanced when positioned next to the power-indicator that has the same basic layout.