---
name: omarchy-menu-order
description: Reorder items in an Omarchy menu (the System menu by default), or put a menu back to its default order. Use for requests like "move Lock to the top", "put Logout under Reboot", "move lock behind screensaver", "reset the system menu order", or /omarchy-menu-order. Works live from the machine's own Omarchy menu, so it stays correct across Omarchy updates.
argument-hint: "[what to move, e.g. 'lock to the top' | reset | status]"
---
# Reorder an Omarchy menu
The user wants to change the order of items in an Omarchy menu (Super + Esc opens the System menu), or undo that. Do the work yourself with the helper below. Don't hand the user commands to run or files to edit.
## How it works (know this, don't lecture it)
- Omarchy builds its menu from the stock file `/usr/share/omarchy/default/omarchy/omarchy-menu.jsonc` (owned by the omarchy package, overwritten on every update) merged with the user's file `~/.config/omarchy/extensions/omarchy-menu.jsonc`. The menu reloads the user's file on save, so no restart is needed.
- Overriding a stock item by id keeps its original position, so items can't be moved that way. The helper hides the stock items of one menu (`"when":"false"`) and adds copies back in the wanted order. It copies them from the **live stock file on this machine**, so icons, commands and conditions are always the current ones.
- Everything the helper writes sits between `// >>> omarchy-menu-order: