Skip to content

About

Omarchy bar plugin: compact CPU, RAM, GPU and disk meters

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Resources for the Omarchy bar

Ko-fi

Four tiny meters in the Omarchy bar — CPU, RAM, GPU and disk — that show at a glance how busy the machine is, in about the room of one icon.

The meters next to the clock and the weather in the Omarchy bar

What you see

CPU load rising to 100 %, the CPU meter turning red after a few seconds, then everything settling again

From left to right: CPU, RAM, GPU, disk. Each meter is a small track that fills from the bottom with the current usage. A meter turns to the theme's urgent colour (red above) when it crosses its threshold:

Meter Shows Turns urgent at
CPU load over all cores since the previous poll 80 %, held for three polls in a row (6 s), so short spikes don't flash
RAM memory in use 50 %
GPU GPU utilisation (NVIDIA only) 50 %
Disk space used on the root filesystem / 70 %

The animation is a real recording at normal speed: a few seconds of full CPU load. The CPU meter fills at once and turns red after the third poll; the GPU meter flashes red while the compositor works harder.

Hover the meters for the exact numbers:

Tooltip: CPU 7 % · RAM 24 % · GPU 28 % · Disk 26 %

Click them to open Activity (btop, the same as Super + Ctrl + T).

The meters use the bar's own foreground and urgent colours, so they match any Omarchy theme.

Install

omarchy plugin add https://github.com/yesm1ke/omarchy-plugin-resources --enable

--enable asks which bar section to put it in. To move it later, for example right after the clock:

omarchy bar move io.github.yesm1ke.resources --after omarchy.clock

Update with omarchy plugin update.

Remove

omarchy plugin remove io.github.yesm1ke.resources

This takes the widget off the bar and deletes the plugin. It writes nothing else anywhere, so nothing is left behind.

Dependencies

Nothing to install on Omarchy. It uses:

  • free (procps-ng) and df (coreutils), present on every Arch system;
  • btop for the click, which Omarchy ships;
  • nvidia-smi, from the NVIDIA driver, only for the GPU meter. Without it the GPU meter is simply not shown.

How it works

Every two seconds one small shell command reads:

  • CPU: the first line of /proc/stat. Usage is the change between two samples, so the CPU meter reads 0 % for the first two seconds after the shell starts.
  • RAM: free -b (used of total).
  • GPU: nvidia-smi --query-gpu=utilization.gpu. Without an NVIDIA GPU (or with its driver down) it prints nothing and the GPU meter is not shown.
  • Disk: df --output=pcent /.

Each value is tagged in the output, so a missing nvidia-smi cannot shift the others. Nothing is written anywhere and nothing runs between polls. The thresholds are constants at the top of Resources.qml.

Made for a horizontal bar (top or bottom).

License

MIT, see LICENSE.

About

Omarchy bar plugin: compact CPU, RAM, GPU and disk meters

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages