omarchy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOmarchy Skill
Omarchy 技能
Manage Omarchy Linux systems - a beautiful, fun, agentic Arch Linux distribution with Hyprland.
This skill is for end-user customization on installed systems.
It is not for contributing to Omarchy source code.
管理 Omarchy Linux 系统——一款搭载 Hyprland、美观有趣且具备 Agent 能力的 Arch Linux 发行版。
本技能用于已安装系统的终端用户自定义,不适用于 Omarchy 源码贡献场景。
When This Skill MUST Be Used
必须使用本技能的场景
ALWAYS invoke this skill for end-user requests involving ANY of these:
- Editing ANY file in (window rules, animations, keybindings, monitors, etc.)
~/.config/hypr/ - Editing (status bar layout, widgets)
~/.config/omarchy/shell.json - Editing terminal configs (alacritty, foot, kitty, ghostty)
- Editing ANY file in
~/.config/omarchy/ - Window behavior, animations, opacity, blur, gaps, borders
- Layer rules, workspace settings, display/monitor configuration
- Themes, backgrounds, fonts, appearance changes
- User-facing commands (
omarchy,omarchy theme ...,omarchy refresh ..., etc.)omarchy restart ... - Screenshots, screen recording, reminders, night light, idle behavior, lock screen
If you're about to edit a config file in ~/.config/ on this system, STOP and use this skill first.
Do NOT use this skill for Omarchy development tasks (editing the Omarchy source tree, creating migrations, or running workflows).
omarchy dev ...当用户需求涉及以下任意场景时,务必调用本技能:
- 编辑 下的任意文件(窗口规则、动画、快捷键、显示器等)
~/.config/hypr/ - 编辑 (状态栏布局、小组件)
~/.config/omarchy/shell.json - 编辑终端配置(alacritty、foot、kitty、ghostty)
- 编辑 下的任意文件
~/.config/omarchy/ - 窗口行为、动画、透明度、模糊、间距、边框
- 层规则、工作区设置、显示/显示器配置
- 主题、背景、字体、外观修改
- 面向用户的 命令(
omarchy、omarchy theme ...、omarchy refresh ...等)omarchy restart ... - 截图、录屏、提醒、夜灯、闲置行为、锁屏
如果你即将编辑本系统中 ~/.config/ 下的配置文件,请先停止操作并使用本技能。
请勿将本技能用于 Omarchy 开发任务(编辑 Omarchy 源码树、创建迁移脚本或运行 工作流)。
omarchy dev ...Topic Guides
主题指南
Deeper instructions for common areas live next to this file. Read the
matching guide before starting:
- - keybindings, monitors, window rules, and other Hyprland config
hyprland.md - - the Omarchy shell: bar layout, widgets, plugins, idle behavior
plugins.md - - themes, backgrounds, and fonts
theming.md - - automation hooks that run on system events
hooks.md - - screenshots, screen recordings, OCR text capture, and file sharing
capture.md - - reporting Omarchy bugs and submitting fixes upstream
contributing.md
常见领域的详细说明位于本文件同级目录下。开始操作前请阅读对应的指南:
- - 快捷键、显示器、窗口规则及其他 Hyprland 配置
hyprland.md - - Omarchy shell:状态栏布局、小组件、插件、闲置行为
plugins.md - - 主题、背景与字体
theming.md - - 系统事件触发的自动化钩子
hooks.md - - 截图、录屏、OCR 文字提取与文件分享
capture.md - - 上报 Omarchy 漏洞及向上游提交修复
contributing.md
Critical Safety Rules
关键安全规则
For privileged commands, follow the Privilege Escalation rules below: when a terminal is available for the password prompt, when it is not. Do not wrap commands that already manage privilege elevation themselves.
sudopkexecFor end-user customization tasks, NEVER modify anything in - but READING is safe and encouraged.
/usr/share/omarchy/This directory is owned by the omarchy package. Any local changes will be
overwritten on the next .
omarchy update/usr/share/omarchy/ # READ-ONLY - NEVER EDIT (reading is OK)
├── bin/ # Command source (packaged binaries are on PATH)
├── config/ # Default config templates
├── themes/ # Stock themes
├── default/ # System defaults
├── shell/ # Omarchy shell source and defaults
├── migrations/ # Update migrations
└── install/ # Installation scriptsReading is SAFE and useful - do it freely to:
/usr/share/omarchy/- Understand how omarchy commands work: or
omarchy theme set --helpcat $(which omarchy-theme-set) - See default configs before customizing:
cat "$OMARCHY_PATH/config/omarchy/shell.json" - Check stock theme files to copy for customization
- Reference default hyprland settings:
cat /usr/share/omarchy/default/hypr/*
Always use these safe locations instead:
- - User configuration (safe to edit)
~/.config/ - - Custom themes
~/.config/omarchy/themes/<custom-name>/ - - Custom automation hooks
~/.config/omarchy/hooks/
If the request is to develop Omarchy itself, this skill is out of scope. Follow repository development instructions instead of this skill.
对于特权命令,请遵循下方的权限提升规则:当终端可用于密码输入时使用 ,否则使用 。不要对本身已具备权限提升能力的命令再做封装。
sudopkexec对于终端用户自定义任务,切勿修改 下的任何内容——但读取是安全且被鼓励的。
/usr/share/omarchy/该目录归 omarchy 软件包所有,任何本地修改都会在下次执行 时被覆盖。
omarchy update/usr/share/omarchy/ # 只读 - 切勿编辑(可读取)
├── bin/ # 命令源码(打包后的二进制文件在 PATH 中)
├── config/ # 默认配置模板
├── themes/ # 官方自带主题
├── default/ # 系统默认值
├── shell/ # Omarchy shell 源码与默认配置
├── migrations/ # 更新迁移脚本
└── install/ # 安装脚本读取 是安全且有用的——你可以放心读取以实现以下目的:
/usr/share/omarchy/- 了解 omarchy 命令的工作原理:或
omarchy theme set --helpcat $(which omarchy-theme-set) - 在自定义前查看默认配置:
cat "$OMARCHY_PATH/config/omarchy/shell.json" - 复制官方主题文件用于自定义
- 参考 Hyprland 默认设置:
cat /usr/share/omarchy/default/hypr/*
请始终使用以下安全位置进行修改:
- - 用户配置(可安全编辑)
~/.config/ - - 自定义主题
~/.config/omarchy/themes/<custom-name>/ - - 自定义自动化钩子
~/.config/omarchy/hooks/
如果需求是开发 Omarchy 本身,则不在本技能的覆盖范围内,请遵循仓库开发说明而非本技能的指引。
Privilege Escalation
权限提升
For an interactive script or command run in a visible terminal, use for
privileged work. Omarchy may grant passwordless access to particular
commands, and the terminal is the appropriate place to request a password
when one is needed.
sudosudoUse only when the caller cannot interact with a terminal or cannot
enter a password there, such as a command launched by an agent or a graphical
background process. Do not replace with merely because a
command changes system state.
pkexecsudopkexec对于在可见终端中运行的交互式脚本或命令,执行特权操作时请使用 。Omarchy 可能会为特定命令授予免密 权限,而当需要输入密码时,终端是合适的请求位置。
sudosudo仅当调用方无法与终端交互或无法在终端中输入密码时(例如由 Agent 启动的命令或图形化后台进程),才使用 。不要仅因为命令会修改系统状态就用 替换 。
pkexecpkexecsudoSystem Architecture
系统架构
Omarchy is built on:
| Component | Purpose | Config Location |
|---|---|---|
| Arch Linux | Base OS | |
| Hyprland | Wayland compositor/WM | |
| Omarchy shell | Status bar + notifications (Quickshell) | |
| Launcher/menus | Quickshell menu | |
| Alacritty/Foot/Kitty/Ghostty | Terminals | |
| Omarchy OSD | On-screen display | Quickshell plugin |
Omarchy 基于以下组件构建:
| 组件 | 用途 | 配置位置 |
|---|---|---|
| Arch Linux | 基础操作系统 | |
| Hyprland | Wayland 合成器/窗口管理器 | |
| Omarchy shell | 状态栏 + 通知(基于 Quickshell) | |
| 启动器/菜单 | Quickshell 菜单 | |
| Alacritty/Foot/Kitty/Ghostty | 终端 | |
| Omarchy OSD | 屏幕上显示(OSD) | Quickshell 插件 |
Command Discovery
命令查找
Omarchy ships a single CLI that dispatches to all binaries via . Always prefer this form — it is self-documenting and stable. The underlying binaries still exist on and remain safe to read for source.
omarchyomarchy-*omarchy <group> <action>omarchy-*PATHbash
undefinedOmarchy 提供了统一的 CLI,通过 的形式调度所有 二进制文件。请始终优先使用这种形式——它具备自文档化特性且稳定可靠。底层的 二进制文件仍存在于 中,可安全读取其源码。
omarchyomarchy <组> <操作>omarchy-*omarchy-*PATHbash
undefinedList every documented command and its summary (--all includes hidden commands)
列出所有有文档的命令及其摘要(--all 包含隐藏命令)
omarchy commands
omarchy commands
Show the commands inside a group
查看某个命令组下的所有命令
omarchy theme --help
omarchy refresh --help
omarchy restart --help
omarchy theme --help
omarchy refresh --help
omarchy restart --help
Show help for a specific command (does not execute it)
查看特定命令的帮助(不会执行命令)
omarchy theme set --help
omarchy theme set --help
Machine-readable listing (binary, route, summary, args, aliases)
机器可读格式的命令列表(二进制文件、路由、摘要、参数、别名)
omarchy commands --json
omarchy commands --json
Read a command's source to understand it
读取命令源码了解其实现逻辑
cat $(which omarchy-theme-set)
undefinedcat $(which omarchy-theme-set)
undefinedCommand Groups
命令组
Run for the full list. The most common groups:
omarchy --help| Group | Purpose | Example |
|---|---|---|
| Reset config to defaults (backs up first) | |
| Restart a service/app | |
| Toggle feature on/off | |
| Theme management | |
| Bar layout and widgets | |
| Manage/clone shell plugins | |
| Install automation hooks | |
| Install optional software / packages | |
| Launch apps | |
| Screenshots and recordings | |
| Desktop notification reminders | |
| Package management | |
| Interactive setup wizards | |
| System updates | |
运行 查看完整列表。最常用的命令组:
omarchy --help| 命令组 | 用途 | 示例 |
|---|---|---|
| 将配置重置为默认值(会先备份) | |
| 重启服务/应用 | |
| 切换功能开关 | |
| 主题管理 | |
| 状态栏布局与小组件 | |
| 管理/克隆 shell 插件 | |
| 安装自动化钩子 | |
| 安装可选软件/软件包 | |
| 启动应用 | |
| 截图与录屏 | |
| 桌面通知提醒 | |
| 软件包管理 | |
| 交互式设置向导 | |
| 系统更新 | |
Configuration Locations
配置位置
Hyprland config lives in — see .
The Omarchy shell (bar, notifications, plugins, idle) is configured in
— see .
~/.config/hypr/hyprland.md~/.config/omarchy/shell.jsonplugins.mdHyprland 配置位于 ——参见 。Omarchy shell(状态栏、通知、插件、闲置行为)在 中配置——参见 。
~/.config/hypr/hyprland.md~/.config/omarchy/shell.jsonplugins.mdTerminals
终端
~/.config/alacritty/alacritty.toml
~/.config/foot/foot.ini
~/.config/kitty/kitty.conf
~/.config/ghostty/configCommand:
omarchy restart terminal~/.config/alacritty/alacritty.toml
~/.config/foot/foot.ini
~/.config/kitty/kitty.conf
~/.config/ghostty/config命令:
omarchy restart terminalOther Configs
其他配置
| App | Location |
|---|---|
| btop | |
| fastfetch | |
| lazygit | |
| starship | |
| git | |
| 应用 | 位置 |
|---|---|
| btop | |
| fastfetch | 默认位于 |
| lazygit | |
| starship | |
| git | |
Safe Customization Patterns
安全自定义模式
Edit User Config Directly
直接编辑用户配置
For simple changes, edit files in :
~/.config/bash
undefined对于简单修改,直接编辑 下的文件:
~/.config/bash
undefined1. Read current config
1. 读取当前配置
cat ~/.config/hypr/bindings.lua
cat ~/.config/hypr/bindings.lua
2. Backup before changes
2. 修改前备份
cp ~/.config/hypr/bindings.lua ~/.config/hypr/bindings.lua.bak.$(date +%s)
cp ~/.config/hypr/bindings.lua ~/.config/hypr/bindings.lua.bak.$(date +%s)
3. Make changes with Edit tool
3. 使用编辑工具进行修改
4. Apply changes
4. 应用更改
- Hyprland: auto-reloads on save, but MUST validate with hyprctl reload
and hyprctl configerrors
hyprctl reloadhyprctl configerrors- Hyprland:保存时自动重载,但必须通过 hyprctl reload
和 hyprctl configerrors
验证配置
hyprctl reloadhyprctl configerrors- Omarchy shell: shell.json and user plugin code under ~/.config/omarchy/plugins/ hot-reload on save
- Omarchy shell:保存时热重载 shell.json 和 ~/.config/omarchy/plugins/ 下的用户插件代码
- Menus/launcher: ~/.config/omarchy/extensions/omarchy-menu.jsonc hot-reloads on save
- 菜单/启动器:保存时热重载 ~/.config/omarchy/extensions/omarchy-menu.jsonc
- Terminals: apply with omarchy restart terminal
(reloads running terminals; foot picks changes up in new windows)
omarchy restart terminal- 终端:通过 omarchy restart terminal
应用(会重载正在运行的终端;foot 会在新窗口中生效)
omarchy restart terminalundefinedundefinedReset to Defaults -- ALWAYS SEEK USER CONFIRMATION BEFORE RUNNING
重置为默认值——运行前务必征得用户确认
When customizations go wrong:
bash
undefined当自定义出现问题时:
bash
undefinedReset specific config (creates backup automatically)
重置指定配置(自动创建备份)
omarchy refresh shell
omarchy refresh hyprland
omarchy refresh shell
omarchy refresh hyprland
The refresh command:
refresh 命令的执行流程:
1. Backs up current config with timestamp
1. 带时间戳备份当前配置
2. Copies default from $OMARCHY_PATH/config/
2. 从 $OMARCHY_PATH/config/ 复制默认配置
3. Restarts the component where the refresh needs it (e.g. refresh shell
)
refresh shell3. 重启需要刷新配置的组件(例如执行 refresh shell
时重启 shell)
refresh shellundefinedundefinedSystem Commands
系统命令
bash
omarchy update # Full system update
omarchy version # Show Omarchy version
omarchy debug --no-sudo --print # Debug info (ALWAYS use these flags)
omarchy system lock # Lock screen
omarchy system shutdown # Shutdown
omarchy system reboot # RebootIMPORTANT: Always run with flags to avoid interactive sudo prompts that will hang the terminal.
omarchy debug--no-sudo --printbash
omarchy update # 完整系统更新
omarchy version # 查看 Omarchy 版本
omarchy debug --no-sudo --print # 调试信息(请始终使用这些参数)
omarchy system lock # 锁屏
omarchy system shutdown # 关机
omarchy system reboot # 重启重要提示: 运行 时请始终带上 参数,避免交互式 sudo 提示导致终端挂起。
omarchy debug--no-sudo --printTroubleshooting
故障排查
bash
undefinedbash
undefinedGet debug information (ALWAYS use these flags to avoid interactive prompts)
获取调试信息(请始终使用这些参数以避免交互式提示)
omarchy debug --no-sudo --print
omarchy debug --no-sudo --print
Reset specific config to defaults
将指定配置重置为默认值
omarchy refresh <app>
omarchy refresh <app>
Refresh specific config file
刷新指定配置文件
config-file path is relative to ~/.config/
配置文件路径相对于 ~/.config/
eg. omarchy refresh config hypr/hyprland.lua
will refresh ~/.config/hypr/hyprland.lua
omarchy refresh config hypr/hyprland.lua例如:omarchy refresh config hypr/hyprland.lua
会刷新 ~/.config/hypr/hyprland.lua
omarchy refresh config hypr/hyprland.luaomarchy refresh config <config-file>
omarchy refresh config <config-file>
Full reinstall of configs (nuclear option)
完全重装配置(终极方案)
omarchy reinstall
undefinedomarchy reinstall
undefinedDecision Framework
决策框架
When user requests system changes:
- Is it a stock omarchy command? Use it directly
- Is it a config edit? Edit in , never
~/.config//usr/share/omarchy/ - Is it a theme customization? Follow ; create a NEW custom theme directory
theming.md - Is it automation? Follow ; use
hooks.mdand the hookomarchy hook installdirectories.d - Is it a package install? Use (or
omarchy pkg add <pkgs...>for AUR-only packages)omarchy pkg aur add <pkgs...> - Is it built-in shell/plugin code? Follow ; clone it with
plugins.md, never edit the packaged copyomarchy plugin clone - Unsure if command exists? Run (or
omarchy commandsfor one group)omarchy <group> --help
当用户提出系统修改需求时:
- 是否为 Omarchy 内置命令? 直接使用
- 是否为配置编辑? 在 下编辑,切勿修改
~/.config//usr/share/omarchy/ - 是否为主题自定义? 遵循 ;创建全新的自定义主题目录
theming.md - 是否为自动化需求? 遵循 ;使用
hooks.md和钩子omarchy hook install目录.d - 是否为软件包安装? 使用 (AUR 专属包使用
omarchy pkg add <pkgs...>)omarchy pkg aur add <pkgs...> - 是否为内置 shell/插件代码? 遵循 ;使用
plugins.md克隆,切勿编辑打包版本omarchy plugin clone - 不确定命令是否存在? 运行 (或查看单个命令组的帮助:
omarchy commands)omarchy <group> --help
Reminder Requests
提醒需求
When the user asks to set a reminder, use directly. Convert natural language durations to minutes and title-case short reminder labels when appropriate.
omarchy reminder <minutes> [message]bash
omarchy reminder 15 "Pickup Jack"
omarchy reminder 60 "Check laundry"
omarchy reminder show
omarchy reminder clear当用户要求设置提醒时,直接使用 。将自然语言描述的时长转换为分钟数,并在合适的情况下将简短提醒标签转为首字母大写格式。
omarchy reminder <分钟数> [消息]bash
omarchy reminder 15 "Pickup Jack"
omarchy reminder 60 "Check laundry"
omarchy reminder show
omarchy reminder clearOut of Scope
不在覆盖范围内
This skill intentionally does not cover Omarchy source development. Do not use this skill for:
- Editing files in (
/usr/share/omarchy/,bin/,config/,default/,shell/,themes/, etc.)migrations/ - Creating or editing migrations
- Running commands
omarchy dev ...
本技能刻意不覆盖 Omarchy 源码开发场景,请勿将本技能用于:
- 编辑 下的文件(
/usr/share/omarchy/、bin/、config/、default/、shell/、themes/等)migrations/ - 创建或编辑迁移脚本
- 运行 命令
omarchy dev ...
Example Requests
需求示例
- "Change my theme to catppuccin" ->
omarchy theme set catppuccin - "Add a keybinding for Super+E to open file manager" -> Check existing bindings first, then use to replace one or
o.rebindto add one ino.bind~/.config/hypr/bindings.lua - "Configure my external monitor" -> Edit
~/.config/hypr/monitors.lua - "Make the window gaps smaller" -> Edit
~/.config/hypr/looknfeel.lua - "Turn on night light" -> (for time-based schedules, edit
omarchy toggle nightlightprofiles, then~/.config/hypr/hyprsunset.conf)omarchy restart hyprsunset - "Set a reminder to pickup jack in 15 minutes" ->
omarchy reminder 15 "Pickup Jack" - "Show my reminders" ->
omarchy reminder show - "Clear all reminders" ->
omarchy reminder clear - "Customize the catppuccin theme colors" -> Overlay: put an edited in
colors.toml, then re-apply the theme (see~/.config/omarchy/themes/catppuccin/)theming.md - "Run a script every time I change themes" -> Install it with
omarchy hook install theme-set <script> - "Change how workspace labels are rendered" -> Clone , which switches the bar to
omarchy.workspaces, then edit the clone<username>.workspaces - "Lock after ten minutes" -> Set to
idle.lockin600~/.config/omarchy/shell.json - "Reset shell/bar to defaults" ->
omarchy refresh shell - "Record my screen" -> , then
omarchy screenrecord --fullscreen(seeomarchy screenrecord --stop-recording)capture.md - "Report this bug to Omarchy" -> Gather diagnostics and a capture of the problem, then file it (see )
contributing.md
- "把我的主题改成 catppuccin" ->
omarchy theme set catppuccin - "添加 Super+E 快捷键打开文件管理器" -> 先检查现有绑定,然后在 中使用
~/.config/hypr/bindings.lua替换或o.rebind新增o.bind - "配置我的外接显示器" -> 编辑
~/.config/hypr/monitors.lua - "把窗口间距调小" -> 编辑
~/.config/hypr/looknfeel.lua - "打开夜灯" -> (如需定时 schedule,编辑
omarchy toggle nightlight配置文件,然后执行~/.config/hypr/hyprsunset.conf)omarchy restart hyprsunset - "设置15分钟后提醒我接 jack" ->
omarchy reminder 15 "Pickup Jack" - "查看我的提醒" ->
omarchy reminder show - "清除所有提醒" ->
omarchy reminder clear - "自定义 catppuccin 主题的颜色" -> 覆盖方式:将编辑后的 放入
colors.toml,然后重新应用主题(参见~/.config/omarchy/themes/catppuccin/)theming.md - "每次切换主题时运行一个脚本" -> 使用 安装
omarchy hook install theme-set <script> - "修改工作区标签的渲染方式" -> 克隆 ,状态栏会切换为
omarchy.workspaces,然后编辑克隆后的版本<username>.workspaces - "十分钟后自动锁屏" -> 在 中设置
~/.config/omarchy/shell.json为idle.lock600 - "将 shell/状态栏重置为默认值" ->
omarchy refresh shell - "录制我的屏幕" -> ,结束时执行
omarchy screenrecord --fullscreen(参见omarchy screenrecord --stop-recording)capture.md - "向 Omarchy 上报这个 bug" -> 收集诊断信息和问题截图,然后提交 issue(参见 )
contributing.md