Skip to content
Operations
Skill

/omarchy-make-plugin

Make a new plugin for the Omarchy shell: a bar widget, a popup card, or a keyboard-driven panel, written in QML in ~/.config/omarchy/plugins/<username>.<name>/, following the theme, the language and the shell's motion, checked with omarchy agent look plugin, and put on the bar.

From plugin
omarchy
47k7 skills18 agents

Claude Code

$ npx -y skills add omacom/omarchy --skill omarchy-make-plugin --agent claude-code

SKILL.md

omarchy-make-plugin.SKILL.md
name: omarchy-make-plugin
description: >
  Make a new plugin for the Omarchy shell: a bar widget, a popup card, or a keyboard-driven panel, written in QML in ~/.config/omarchy/plugins/<username>.<name>/, following the theme, the language and the shell's motion, checked with omarchy agent look plugin, and put on the bar. Also for writing QML in a cloned built-in plugin. Use when asked to make, build, or write a plugin, widget, bar indicator, or panel. Moving, adding, or removing existing widgets on the bar, and idle or lock settings, belong to the omarchy skill. Triggers: make a plugin, new widget, bar widget, show X in the bar, Quickshell, QML plugin, popup, panel.

Making an Omarchy Shell Plugin

The bar, notification daemon, settings panel, and assorted overlays all run inside a single long-running Quickshell process (`omarchy-shell`). A plugin is a folder of QML under `~/.config/omarchy/plugins/<plugin-id>/` that runs inside it. Saving any file under the plugin folder reloads it, and `omarchy-shell shell reloadPlugins` forces a reload if a change somehow fails to apply. The built-in plugins in `$OMARCHY_PATH/shell/plugins/` are the reference for anything bigger than the examples here.

A Bar Widget

A bar plugin is a folder `~/.config/omarchy/plugins/<username>.<name>/` (its id, e.g. `alice.counter`) with a manifest, the widget, and its strings:

{
  "schemaVersion": 1,
  "id": "alice.counter",
  "name": "Counter",
  "version": "1.0.0",
  "author": "alice",
  "description": "Counts clicks in the bar",
  "kinds": ["bar-widget"],
  "entryPoints": { "barWidget": "BarWidget.qml" },
  "barWidget": { "displayName": "Counter", "description": "Counts clicks in the bar", "category": "Tools", "allowMultiple": false, "defaultSection": "right" }
}

`BarWidget.qml` extends `BarWidget` and draws itself with `WidgetButton`, which gives it the bar's font, colors, hover, tooltip, and press feedback. Its `text` is the label (an icon-font glyph or words), `active: true` draws it in the urgent color, and `onPressed` gets the mouse button:

import QtQuick
import qs.Commons
import qs.Ui

BarWidget {
  id: root
  moduleName: "alice.counter"
  implicitWidth: button.implicitWidth
  implicitHeight: button.implicitHeight

  property int count: 0

  Translations { id: strings; directory: Qt.resolvedUrl("i18n") }

  WidgetButton {
    id: button
    anchors.fill: parent
    bar: root.bar
    text: String(root.count)
    tooltipText: strings.t("tooltip")
    onPressed: function(mouseButton) {
      if (mouseButton === Qt.RightButton) { root.count = 0 } else { root.count++ }
    }
  }
}
  • Keep state in QML properties and drive time with a `Timer` that runs only while something is counting; an idle widget starts no timers or processes. Don't name a property after one every item already has (`state`, `visible`, `enabled`, `width`, `opacity`): `property int state` collides with the item's own `state`, and assigning to it fails.
  • Run commands with `root.bar.run("omarchy-notification-send 'Counter' 'Reached 100'")`.
  • Icons are Nerd Font glyphs written straight into the label text, as the built-in widgets do (`text: "󰐊"`). Find one by name in Nerd Fonts' table rather than by drawing the font, preferring the `md-` (Material Design) set the bar uses, then look at the widget to check it:
  curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/glyphnames.json \
    | jq -r 'to_entries[] | select(.key | test("^md-.*timer")) | "\(.key) \(.value.char)"'
  • A card that opens on click, for details that don't fit the bar, is a `PopupCard` in the widget, the way the media widget shows the playing track. It grows from the widget and fades, closes when the user clicks anywhere else (by calling the widget's `close()`), and mirrors for right-to-left languages. In the counter above, left click opens it and right click resets:
  property bool popupOpen: false
  function close() { popupOpen = false }

  WidgetButton {
    // ...as above, with:
    onPressed: function(mouseButton) {
      if (mouseButton === Qt.RightButton) { root.count = 0 } else { root.popupOpen = !root.popupOpen }
    }
  }

  PopupCard {
    id: popup
    anchorItem: root
    bar: root.bar
    owner: root
    open: root.popupOpen
    contentWidth: popup.fittedContentWidth(Style.space(280))
    contentHeight: popup.fittedContentHeight(column.implicitHeight)

    Column {
      id: column
      width: parent.width
      spacing: Style.space(6)

      Text {
        textFormat: Text.PlainText
        text: strings.t("title")
        color: Commons.Color.popups.text
        font.family: Style.font.family
        font.pixelSize: Style.font.subtitle
        font.bold: true
      }
      Text {
        textFormat: Text.PlainText
        text: Commons.I18n.formatNumber(root.count)
        color: Commons.Color.popups.text
        font.family: Style.font.family
        font.pixelSize: Style.font.body
      }
    }
  }

This needs `import qs.Commons as Commons` beside `import qs.Commons`. A keyboard-driven panel that a hotkey summons is more: `$OMARCHY_PATH/shell/plugins/panels/clock/` is the reference for that, for settings from `shell.json`, and for IPC.

Then check it, look at it, and put it on the bar. `omarchy agent look plugin <dir>` renders the widget in a bar strip with the current theme, without touching the running bar, and lists the QML errors it logged; open the image it prints and fix what looks wrong. Saving any file under the plugin folder reloads it on the bar:

omarchy plugin validate ~/.config/omarchy/plugins/alice.counter
omarchy agent look plugin ~/.config/omarchy/plugins/alice.counter
omarchy bar put alice.counter --section right

Plugin UI Safety

Plugins run inside Omarchy's long-lived, unsandboxed shell. Treat text from network responses, files, IPC, settings, environment variables, and command output as untrusted.

  • QML `Text` defaults to `Text.AutoTe
Read more
@basecamp
Ships withomarchy

Omarchy is a beautiful, fun & agentic Linux distribution by DHH. Read more at omarchy.org.

47k7 skills18 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
47.2k
Star history of basecamp/omarchy on GitHub, a chart by star-history.com

Other skills on omarchy.

diagnose-crash

diagnose-crash

Diagnose why a program crashed on this machine, from a systemd-coredump core dump. Use when a process has segfaulted, aborted, or…

@basecamp@basecampInstall Skill
omarchy-contribute

omarchy-contribute

Report an Omarchy bug, suggest a feature, or submit a fix upstream to omacom/omarchy: deciding whether it is Omarchy's bug at…

@basecamp@basecampInstall Skill
omarchy-make-app

omarchy-make-app

Build a new desktop app for Omarchy the way Omarchy's own apps are built (Omacut, Monologue, Hype, Signed, Folio, Plain,…

@basecamp@basecampInstall Skill
omarchy-make-game

omarchy-make-game

Build a browser game or interactive 3D toy as a single HTML file with three.js, saved in ~/Games/vibes/<name>/ and played from…

@basecamp@basecampInstall Skill
omarchy-make-theme

omarchy-make-theme

Make a new Omarchy theme from a look, mood, or inspiration: a colors.toml palette that every app's colors are generated from, and…

@basecamp@basecampInstall Skill
omarchy

omarchy

REQUIRED for end-user customization of Linux desktop, window manager, or system config. Use when editing ANY file in ~/.config/,…

@basecamp@basecampInstall Skill

More skills from other plugins.

firewall-auditor

firewall-auditor

Audit UniFi firewall policies for conflicts, redundancies, security gaps, and best practices. Use when asked to review firewall…

unifi-mcp3d1.1k
@sirkirby@sirkirbyInstall Skill
add-custom-domain

add-custom-domain

Add a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the…

temps1d934
@gotempsh@gotempshInstall Skill
alert-analysis

alert-analysis

Investigate a specific Elastic Security detection alert: gather context, assess entity risk, classify the threat, document…

@elastic@elasticInstall Skill

Questions about omarchy-make-plugin.

Which coding agents can use omarchy-make-plugin?
omarchy-make-plugin installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.