Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2e44c89
Fix Elsewhen migration for dev checkouts
dhh Sep 21, 2026
c261564
Merge pull request #12429 from omacom/owe-video-backgrounds
dhh Sep 21, 2026
7872ab8
Merge pull request #9446 from omacom/use-omasnap-for-screenshots
ryanrhughes Sep 21, 2026
03c1f60
Merge pull request #12739 from omacom/simplify/retired-copy-url-test
dhh Sep 21, 2026
255fa52
Merge pull request #12740 from omacom/simplify/shell-docs
dhh Sep 21, 2026
b1f1b25
Merge pull request #12744 from omacom/simplify/kernel-test-history
dhh Sep 21, 2026
4a05b28
Merge pull request #12745 from omacom/simplify/locate-test-history
dhh Sep 21, 2026
a440a16
Merge pull request #12746 from omacom/simplify/about-test-environment
dhh Sep 21, 2026
f050e80
Merge pull request #12747 from omacom/simplify/pacman-test-environment
dhh Sep 21, 2026
3df59dd
Merge pull request #12748 from omacom/simplify/network-qr-test-enviro…
dhh Sep 21, 2026
560fab3
Merge pull request #12758 from omacom/simplify/test-skip-reporting
dhh Sep 21, 2026
dada3b6
Merge pull request #10280 from Kenny1291/patch-1
bjarneo Sep 21, 2026
84325ff
Merge pull request #12839 from Bartok9/fix/drop-libretro-database-on-…
bjarneo Sep 21, 2026
5b2962d
Merge pull request #9125 from animadito/dropbox-requires-sudo
bjarneo Sep 21, 2026
c59d736
Merge pull request #9656 from Chessing234/fix/sublime-default-editor-…
bjarneo Sep 21, 2026
24839c3
Adapt lock-face test for the OWE feed Loader
cursoragent Sep 21, 2026
abc89af
Merge pull request #12853 from omacom/elsewhen-migration-absent-shell
spencerbull Sep 22, 2026
05bee51
Merge pull request #12861 from omacom/elsewhen-migration-rerun
spencerbull Sep 22, 2026
cf3d865
Merge pull request #11495 from lalvarezt/command-operands-as-literal
ErikMelton Sep 22, 2026
6a5ff02
Merge pull request #12915 from omacom/terminal-clipboard-shortcuts
ryanrhughes Sep 22, 2026
9399347
Merge pull request #10033 from vjohansen/fix-sublime-text-and-emacs-i…
bjarneo Sep 22, 2026
7761de9
Merge pull request #10217 from omacom/security/ocaml-removal-no-update
ErikMelton Sep 22, 2026
c0f3e62
Merge pull request #10016 from ivanskodje/fix/vscode-theme-invisible-…
bjarneo Sep 23, 2026
f084f9f
Merge pull request #9964 from ivanskodje/fix/vscode-theme-invisible-s…
bjarneo Sep 23, 2026
7adcc6e
Merge pull request #12864 from anandude/fix-catppuccin-colorscheme
bjarneo Sep 23, 2026
66eea2d
Merge pull request #10134 from Macho0x/fix/vscode-theme-reload
bjarneo Sep 23, 2026
e13b0ae
Merge pull request #7718 from OldJobobo/feature/remember-theme-wallpa…
bjarneo Sep 23, 2026
f8890d7
Adapt CLI vscode theme test for the copied, content-versioned extension
cursoragent Sep 23, 2026
7538496
Fix Fastfetch swap label spacing
MicahelE Sep 21, 2026
2cc01c0
Merge pull request #11690 from Yarlord/fix-hybrid-nvidia-vaapi
ryanrhughes Sep 25, 2026
f173752
Merge pull request #12844 from omacom/hermes-desktop-default-agent
spencerbull Sep 25, 2026
9d03271
Document automatic screenshot saving (#13218)
dhh Sep 25, 2026
460a0de
Merge pull request #13046 from AFOliveira/fix/color-reference-cycles-…
ErikMelton Sep 25, 2026
451f467
Merge pull request #9467 from AFOliveira/codex/om-sec-12-update-inhib…
ErikMelton Sep 25, 2026
7cffeee
Merge pull request #11486 from omacom/fix-remote-neovim-yanks
ryanrhughes Sep 25, 2026
3c04239
Keep Grok Bot and Cursor in the OM-SEC-12 update tail
cursoragent Sep 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Three documentation trees, split by genre and audience:
- Prefer `(( ))` over numeric operators inside `[[ ]]` (e.g., `(( count < 50 ))`, not `[[ $count -lt 50 ]]`)
- Prefer a full `if`/`else` conditional for simple two-path control flow; don't rely on `exec` or `exit` in one branch to make following statements unreachable
- For strings/paths with spaces, quote them instead of escaping spaces with `\ ` (e.g., `"$APP_DIR/Disk Usage.desktop"`, not `$APP_DIR/Disk\ Usage.desktop`)
- Shebangs must use `#!/bin/bash` consistently (never `#!/usr/bin/env bash`)
- Shebangs must use `#!/bin/bash` consistently (never `#!/usr/bin/env bash`). A security-sensitive entrypoint may use the exact `#!/bin/bash -p` form only when it must suppress `BASH_ENV` and exported-function startup injection before its first command; that exception must be explained at the boundary and covered by a regression that rejects an ordinary Bash launch with a decoy `-p` argument.
- Scripts under `install/` and `migrations/` may be sourced and intentionally omit shebangs

# Command Naming
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Read more at [omarchy.org](https://omarchy.org).

## The Omarchy Manual

The manual lives in [`manual/`](manual/), which is its authoritative source. It's
mirrored to [learn.omacom.io](https://learn.omacom.io/2/the-omarchy-manual), where
its screenshots are also hosted.
The manual lives in [`manual/`](manual/), which is its authoritative source.

- [Welcome to Omarchy!](manual/01-welcome-to-omarchy.md)

Expand Down
5 changes: 1 addition & 4 deletions agents/skills/visual-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ Take a full-screen screenshot without opening the editor:
omarchy capture screenshot fullscreen save
```

The command prints the saved path and writes to the configured Pictures
directory. Use `omarchy screenshot` for the interactive smart-region flow.
Capture reference and candidate states as separate images when changing a
layer-shell surface or layout, then compare both.
The command writes to Omasnap's configured screenshot directory. Use `omarchy screenshot` for the interactive capture flow, which copies the capture and shows a timed preview. Use `omarchy screenshot --editor=overlay` to test annotation before output. Capture reference and candidate states as separate images when changing a layer-shell surface or layout, then compare both.

Record a short full-screen video for animation, transition, timing, capture, or
screen-recording changes:
Expand Down
81 changes: 11 additions & 70 deletions bin/omarchy-capture-screenshot
Original file line number Diff line number Diff line change
Expand Up @@ -2,81 +2,22 @@

# omarchy:summary=Take a screenshot
# omarchy:group=capture
# omarchy:args=[smart|region|windows|fullscreen] [slurp|copy|save] [--editor=<name>]
# omarchy:args=[smart|region|windows|fullscreen|scroll] [copy|save]
# omarchy:examples=omarchy screenshot | omarchy capture screenshot region
# omarchy:aliases=omarchy screenshot

[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-${XDG_PICTURES_DIR:-$HOME/Pictures}}"

if [[ ! -d $OUTPUT_DIR ]]; then
mkdir -p "$OUTPUT_DIR"
omarchy-notification-send "Created screenshot directory: $OUTPUT_DIR" -t 2000
if [[ -n ${OMARCHY_SCREENSHOT_DIR:-} && -z ${OMASNAP_SCREENSHOT_DIR:-} ]]; then
export OMASNAP_SCREENSHOT_DIR="$OMARCHY_SCREENSHOT_DIR"
fi

pkill slurp && exit 0

SCREENSHOT_EDITOR="${OMARCHY_SCREENSHOT_EDITOR:-tensaku-edit}"

# Parse --editor flag from any position
ARGS=()
omasnap_args=()
for arg in "$@"; do
if [[ $arg == --editor=* ]]; then
SCREENSHOT_EDITOR="${arg#--editor=}"
else
ARGS+=("$arg")
fi
case "$arg" in
copy) omasnap_args+=(--copy) ;;
save) omasnap_args+=(--save) ;;
slurp) ;;
*) omasnap_args+=("$arg") ;;
esac
done
set -- "${ARGS[@]}"

MODE="${1:-smart}"
PROCESSING="${2:-slurp}"

# The picker leaves the screen freeze running (PID on its first output line)
# so grim captures the frozen overlay rather than live content shifting
# during teardown.
#
# Software-composited cursors (Hyprland's fallback on GPUs without working
# hardware cursors) are baked into the frames grim captures, so force
# hardware cursors until after grim runs and restore the setting on exit.
NO_HW_CURSORS=$(hyprctl getoption cursor:no_hardware_cursors -j | jq '.int')

set_no_hw_cursors() {
hyprctl eval "hl.config({ cursor = { no_hardware_cursors = $1 } })" &>/dev/null ||
hyprctl keyword cursor:no_hardware_cursors "$1" &>/dev/null
}

cleanup() {
[[ -n $FREEZE_PID ]] && kill $FREEZE_PID 2>/dev/null
set_no_hw_cursors "$NO_HW_CURSORS"
}
trap cleanup EXIT

set_no_hw_cursors 0
{ read -r FREEZE_PID; read -r SELECTION; } < <(omarchy-capture-region "$MODE" --keep-freeze)

[[ -z $SELECTION ]] && exit 0

FILENAME="screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png"
FILEPATH="$OUTPUT_DIR/$FILENAME"

case "$PROCESSING" in
slurp)
grim -g "$SELECTION" "$FILEPATH" || exit 1
echo "$FILEPATH"
wl-copy --type image/png <"$FILEPATH"

# Best-effort: the screenshot is already saved and on the clipboard, so a
# notification outage must not report the capture itself as failed.
omarchy-notification-send "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" \
--image "$FILEPATH" \
--exec "$SCREENSHOT_EDITOR" "$FILEPATH" || true
;;
copy)
grim -g "$SELECTION" - | wl-copy --type image/png
;;
save)
grim -g "$SELECTION" "$FILEPATH" || exit 1
echo "$FILEPATH"
;;
esac
exec omasnap "${omasnap_args[@]}"
57 changes: 52 additions & 5 deletions bin/omarchy-channel-set
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
#!/bin/bash
#!/bin/bash -p

# omarchy:summary=Set the Omarchy package channel.
# omarchy:args=<stable|rc|edge|dev>
# omarchy:requires-sudo=true

if [[ $- != *p* ]]; then
echo "Refusing an unsafe Bash startup for channel switching." >&2
exit 126
fi
security_entrypoint=$(/usr/bin/readlink -e -- "${BASH_SOURCE[0]}") || exit 126
source "${security_entrypoint%/*}/omarchy-security-functions" || exit 126
omarchy_security_require_privileged_bash_startup || exit 126
set -euo pipefail
omarchy_security_sanitize_bash_environment "$0" "$@"
omarchy_security_require_source_root "$0"
user_path=$PATH
# Traps first, so a signal or failure during the entry revocation still
# exits through the cleanup path.
omarchy_security_install_sudo_cleanup_traps
omarchy_security_revoke_sudo_timestamp || exit 1
omarchy_security_enable_no_update_sudo

usage() { echo "Usage: omarchy-channel-set [stable|rc|edge|dev]"; }
fail() { echo "Error: $*" >&2; exit 1; }
Expand Down Expand Up @@ -33,12 +48,40 @@ validate_dev_checkout() {
}

link_dev_checkout() {
local checkout="$1"
local checkout="$1" required
[[ -d $checkout/.git ]] || git clone https://github.com/omacom/omarchy.git "$checkout"

# Check the destination before changing /etc/omarchy.conf or sudo's path.
# An existing checkout is not pulled automatically and may predate this policy.
for required in bin/omarchy-security-functions bin/omarchy-update bin/omarchy-refresh-pacman default/omarchy/sudo-no-update/sudo; do
if [[ ! -f $checkout/$required || ! -r $checkout/$required ||
( $required != "bin/omarchy-security-functions" && ! -x $checkout/$required ) ]]; then
fail "Update the checkout before switching to dev; missing required update support in $required."
fi
done

omarchy-dev-link "$checkout" --no-reboot
}

# A packaged destination cannot be inspected before its package is installed,
# and a package transaction can replace the running tree with a release that
# predates the command-scoped wrapper. After that, a bare sudo would resolve to
# /usr/bin/sudo and publish a timestamp, and the destination's own updater
# authenticates the same way. Neither may run from a flow that has just run
# user hooks: stop at a consistent point and say how to finish from a fresh
# session.
stop_for_older_destination() {
cat >&2 <<EOF
The destination predates command-scoped sudo, so this switch stops before its update.
Packages are switched. Run 'omarchy update' from a new terminal to finish, then reboot if prompted.
EOF
exit 3
}

wrapper_present() {
[[ -f $OMARCHY_PATH/default/omarchy/sudo-no-update/sudo && -x $OMARCHY_PATH/default/omarchy/sudo-no-update/sudo ]]
}

(( $# > 0 )) || { usage; exit 1; }

dev_checkout=""
Expand Down Expand Up @@ -83,13 +126,16 @@ fi
if [[ -n $dev_checkout ]]; then
link_dev_checkout "$dev_checkout"
export OMARCHY_PATH="$dev_checkout"
export PATH="$OMARCHY_PATH/bin:$PATH"
omarchy_security_enable_no_update_sudo
omarchy-state set reboot-required
fi

omarchy-refresh-pacman "$pacman_channel"
OMARCHY_UPDATE_USER_PATH="$user_path" omarchy-refresh-pacman "$pacman_channel"
# Each transaction can have replaced this tree; check before the next sudo.
wrapper_present || stop_for_older_destination
# --ask 4 accepts omarchy <-> omarchy-dev replacement prompts without file overwrites.
omarchy-update-pacman -S --needed --noconfirm --ask 4 "${packages[@]}"
wrapper_present || stop_for_older_destination

if [[ -z $dev_checkout ]]; then
omarchy-dev-unlink --no-reboot
Expand All @@ -98,6 +144,7 @@ if [[ -z $dev_checkout ]]; then
if (( leaving_dev )); then
omarchy-state set reboot-required
fi
omarchy_security_enable_no_update_sudo 2>/dev/null || stop_for_older_destination
fi

omarchy-update -y
OMARCHY_UPDATE_USER_PATH="$user_path" "$OMARCHY_PATH/bin/omarchy-update" -y
2 changes: 1 addition & 1 deletion bin/omarchy-clipboard-open
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ open_image() {
local path="$1"

[[ -r $path ]] || exit 1
exec tensaku-edit "$path"
exec omasnap "$path"
}

open_text() {
Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-cmd-missing
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# omarchy:summary=Check whether any required commands are missing

for cmd in "$@"; do
if ! command -v "$cmd" &>/dev/null; then
if ! command -v -- "$cmd" &>/dev/null; then
exit 0
fi
done
Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-cmd-present
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# omarchy:summary=Check whether all required commands are available

for cmd in "$@"; do
command -v "$cmd" &>/dev/null || exit 1
command -v -- "$cmd" &>/dev/null || exit 1
done

exit 0
24 changes: 12 additions & 12 deletions bin/omarchy-default-agent
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,17 @@ if [[ $agent == "cursor-agent" ]]; then
else
agent_package=${agent_package:-$agent}

# Hermes reaches mise through its own installer rather than straight from
# here: it needs its interpreter pinned, and a bare `mise use` has nowhere to
# say so. See omarchy-install-hermes-cli. OpenClaw comes from its pacman
# package the same way; see omarchy-install-openclaw-cli.
# Hermes and OpenClaw are not mise tools: Hermes is the desktop app's
# self-updating runtime and OpenClaw comes from its pacman package. Each has
# its own installer with the same --check/--now contract mise-backed agents
# get from mise; see omarchy-install-hermes-cli and omarchy-install-openclaw-cli.
if [[ -n ${agent_installer:-} ]]; then
# Not omarchy-cmd-present: the stub is on PATH from first boot and says
# nothing about whether Hermes is installed behind it. Treating a cold stub
# as installed skips the floating terminal and runs the minute-long install
# inside the menu action instead.
# Not omarchy-cmd-present: a command on PATH says nothing about whether the
# install behind it finished or runs the sessions omarchy-agent starts.
# Treating it as installed would skip the floating terminal and run a
# minutes-long install inside the menu action instead.
agent_present() { "$agent_installer" --check; }
agent_install() { "$agent_installer" --now; }
install_failure="Could not install $name"
else
# Anything at the wrapper's path other than the wrapper is the user's own
# install, such as the symlink Cursor's installer leaves. A mise copy would
Expand All @@ -91,16 +90,17 @@ else
}
agent_present() { user_install || mise where "$agent_package" &>/dev/null; }
agent_install() { user_install || mise use -g "$agent_package"; }
install_failure="Could not install $name with mise"
fi

if [[ $installing == "false" ]] && ! agent_present; then
exec omarchy-launch-floating-terminal-with-presentation omarchy-default-agent --install "$agent"
fi

if ! agent_install; then
if [[ $installing == "true" ]]; then
echo "$install_failure" >&2
if [[ $installing == "true" && -n ${agent_installer:-} ]]; then
echo "Could not install $name" >&2
elif [[ $installing == "true" ]]; then
echo "Could not install $name with mise" >&2
else
echo "Could not set $name as the default coding agent" >&2
fi
Expand Down
7 changes: 5 additions & 2 deletions bin/omarchy-default-editor
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ if (($# == 0)); then
read -r editor <"$editor_file"
fi

# sublime-text-4 ships `subl`; older defaults stored `sublime_text`.
[[ $editor == sublime_text ]] && editor=subl

[[ -n $editor ]] && echo "$editor" || echo "nvim"
exit 0
fi
Expand All @@ -25,10 +28,10 @@ case "$1" in
code) selection="code"; editor="code"; name="VSCode"; glyph= ;;
cursor) selection="cursor"; editor="cursor"; name="Cursor"; glyph= ;;
zed | zeditor) selection="zed"; editor="zeditor"; name="Zed"; glyph= ;;
sublime_text) selection="sublime_text"; editor="sublime_text"; name="Sublime Text"; glyph= ;;
sublime_text | subl) selection="sublime_text"; editor="subl"; name="Sublime Text"; glyph= ;;
helix) selection="helix"; editor="helix"; name="Helix"; glyph= ;;
vim) selection="vim"; editor="vim"; name="Vim"; glyph= ;;
emacs) selection="emacs"; editor="emacs"; name="Emacs"; glyph= ;;
emacs) selection="emacs"; editor="emacs"; name="Emacs"; glyph= ;;
nvim) selection="nvim"; editor="nvim"; name="Neovim"; glyph= ;;
*)
echo "Usage: omarchy-default-editor <code|cursor|zed|sublime_text|helix|vim|emacs|nvim>"
Expand Down
4 changes: 2 additions & 2 deletions bin/omarchy-hook-install
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [[ -z $HOOK_TYPE || $HOOK_TYPE == */* || $HOOK_TYPE == "." || $HOOK_TYPE == "
fi

HOOK_DIR="$HOME/.config/omarchy/hooks/$HOOK_TYPE.d"
HOOK_NAME=$(basename "$HOOK_FILE")
HOOK_NAME=$(basename -- "$HOOK_FILE")
HOOK_PATH="$HOOK_DIR/$HOOK_NAME"

if [[ ! -f $HOOK_FILE ]]; then
Expand All @@ -36,7 +36,7 @@ if [[ ! -f $HOOK_FILE ]]; then
fi

mkdir -p "$HOOK_DIR"
cp "$HOOK_FILE" "$HOOK_PATH"
cp -- "$HOOK_FILE" "$HOOK_PATH"
chmod 755 "$HOOK_PATH"

echo "Installed $HOOK_TYPE hook: $HOOK_PATH"
4 changes: 2 additions & 2 deletions bin/omarchy-hw-match
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# omarchy:summary=Match against the computer's DMI product name or product family (case-insensitive).
# omarchy:args=<pattern>

grep -qi "$1" /sys/class/dmi/id/product_name 2>/dev/null ||
grep -qi "$1" /sys/class/dmi/id/product_family 2>/dev/null
grep -qi -- "$1" /sys/class/dmi/id/product_name 2>/dev/null ||
grep -qi -- "$1" /sys/class/dmi/id/product_family 2>/dev/null
45 changes: 45 additions & 0 deletions bin/omarchy-hw-nvidia-display
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash

# omarchy:summary=Detect whether NVIDIA drives the display (rather than a hybrid iGPU).

# On hybrid laptops the display is usually wired to the integrated GPU while
# the NVIDIA card only handles offloaded rendering. Forcing NVIDIA's VA-API and
# GLX drivers globally then breaks Chromium-based browsers (black video with
# audio still playing), so the Hyprland NVIDIA env only applies when NVIDIA is
# the display GPU.
#
# sysfs exposes which VGA device drives the display via boot_vga. When no
# device claims it (attribute missing or unreadable), assume NVIDIA is the
# display GPU to preserve the current behavior on machines we cannot tell.
#
# Read the cached sysfs IDs rather than lspci, which reads PCI config space and
# resumes runtime-suspended GPUs.
pci_devices_path="${OMARCHY_PCI_DEVICES_PATH:-/sys/bus/pci/devices}"

shopt -s nullglob

nvidia_boot=0
other_boot=0

for device in "$pci_devices_path"/*; do
[[ $(< "$device/class") == 0x03* ]] || continue
boot_vga=0
if [[ -f $device/boot_vga ]]; then
boot_vga=$(< "$device/boot_vga")
fi
if [[ $(< "$device/vendor") == "0x10de" ]]; then
if (( boot_vga == 1 )); then
nvidia_boot=1
fi
else
if (( boot_vga == 1 )); then
other_boot=1
fi
fi
done

if (( other_boot == 1 && nvidia_boot == 0 )); then
exit 1
else
exit 0
fi
Loading