Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5f0704a
Launch claude and codex agents with auto-review instead of full bypas…
dhh Aug 15, 2026
8433675
Fix Windows VM launch never opening an RDP window (#6893)
DataDave-Dev Aug 15, 2026
33d7363
Fix o.shell_succeeds() always returning false inside Hyprland
dhh Aug 15, 2026
1867dca
Repair foot.ini configs holding a literal \n[text-bindings] line (#6938)
dhh Aug 15, 2026
9f7cdf6
Keep mise wrappers from writing to stdout (#6940)
dhh Aug 15, 2026
ac1bdbf
Stop the bar sticking in move mode after a press-and-hold on a widget…
dhh Aug 15, 2026
eb201d0
Fix Clone Plugin failing with "unknown clone option" (#6942)
dhh Aug 15, 2026
2d3826a
Keep the calendar's day names in English (#6988)
dhh Aug 15, 2026
5c2fb68
Format the whole speed test dial for the locale (#6994)
dhh Aug 15, 2026
8b979e0
Fix passwordless OWE Wi-Fi handling (#7238)
dhh Aug 17, 2026
39c2797
Decode UTF-16 clipboard text (#7249)
dhh Aug 17, 2026
f6b4183
Switch to the mise-bin package (#7244)
omarchybot Aug 17, 2026
6245965
Decode mixed UTF-16 clipboard text (#7466)
dhh Aug 19, 2026
9e79b24
Decode webp in the shell (#7477)
dhh Aug 23, 2026
9434f22
Switch DNS providers without a password prompt (#7472)
omarchybot Aug 19, 2026
2487fbc
Fall back to polkit when the DNS sudoers grant is missing (#7492)
dhh Aug 19, 2026
9b19225
Leave an auto-scaled internal panel alone in clamshell recovery (#7581)
fuchsblau Aug 22, 2026
1626405
Switch back to the packaged quickshell now that 0.3.1 kills synchrono…
omarchybot Aug 22, 2026
d0aefc1
Only offer Update > Extra Themes when there is one (#7775)
omarchybot Aug 22, 2026
64c5c02
[Security] Stop a video title from becoming the Download Video play c…
acrogenesis Aug 23, 2026
f2a2973
Stop an installed theme from running code (#7884)
omarchybot Aug 23, 2026
286b8c2
Run notification click actions as safe argv (backport of #7926)
ryanrhughes Aug 23, 2026
2b1d3c4
Stop a psmouse quirk from failing every install (backport of #7236)
omarchybot Aug 24, 2026
7fa32bb
Remove the sudo lockout reset command (backport of #8046)
omarchybot Aug 24, 2026
c0b593b
Don't put the user in the docker group; make it opt-in (backport of #…
omarchybot Aug 24, 2026
7b89780
Flag a reboot when the docker group changes (backport of #8080)
omarchybot Aug 24, 2026
0f4abee
Wait for the keypress ourselves instead of asking gum to (backport of…
dhh Aug 24, 2026
b3028f9
Guard plugin-add against git transport-helper URLs (backport of #8067)
bastidotnet Aug 25, 2026
c7af36d
Offer to reboot when toggling sudoless Docker; show only the relevant…
omarchybot Aug 24, 2026
e713ff3
Share the git URL check, and refuse the transports Omarchy does not c…
omarchybot Aug 25, 2026
07adef8
Let a received Taildrop file wait to be answered (backport of #7953)
omarchybot Aug 23, 2026
0f836c0
Renumber the README manual TOC after Extra themes was dropped (backpo…
samirpokharel Aug 24, 2026
c6d676f
Pin trusted PATH in privileged DNS helper (backport of #8172)
mdisec Aug 25, 2026
2e989e3
[Security] Stop USB device names from being executed as Hyprland Lua …
acrogenesis Aug 25, 2026
13f18b2
[Security] Stop the FIDO2 setup staging its authfile at a predictable…
mdisec Aug 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
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,18 @@ its screenshots are also hosted.
- [Prompt](manual/40-prompt.md)
- [Branding](manual/41-branding.md)
- [Common tweaks](manual/42-common-tweaks.md)
- [Extra themes](manual/43-extra-themes.md)
- [Making your own theme](manual/44-making-your-own-theme.md)
- [Making your own theme](manual/43-making-your-own-theme.md)

**The Rest**

- [Mac support](manual/45-mac-support.md)
- [Troubleshooting](manual/46-troubleshooting.md)
- [FAQ](manual/47-faq.md)
- [System snapshots](manual/48-system-snapshots.md)
- [Security](manual/49-security.md)
- [Omarchy on...](manual/50-omarchy-on.md)
- [Dual Boot Install](manual/51-dual-boot-install.md)
- [Unattended Installs](manual/52-unattended-installs.md)
- [Mac support](manual/44-mac-support.md)
- [Troubleshooting](manual/45-troubleshooting.md)
- [FAQ](manual/46-faq.md)
- [System snapshots](manual/47-system-snapshots.md)
- [Security](manual/48-security.md)
- [Omarchy on...](manual/49-omarchy-on.md)
- [Dual Boot Install](manual/50-dual-boot-install.md)
- [Unattended Installs](manual/51-unattended-installs.md)

## License

Expand Down
2 changes: 1 addition & 1 deletion applications/Docker.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Name=Docker
Exec=xdg-terminal-exec --app-id=TUI.tile -e lazydocker
Exec=xdg-terminal-exec --app-id=TUI.tile -e omarchy-launch-docker-tui
Terminal=false
Type=Application
Icon=docker
Expand Down
10 changes: 7 additions & 3 deletions bin/omarchy-agent
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@ crush)
command=(crush --yolo)
fi
;;
claude | grok)
command=("$agent" --permission-mode bypassPermissions)
claude)
command=(claude --permission-mode auto)
[[ -n ${prompt:-} ]] && command+=(-- "$prompt")
;;
grok)
command=(grok --permission-mode bypassPermissions)
[[ -n ${prompt:-} ]] && command+=(-- "$prompt")
;;
codex)
command=(codex --dangerously-bypass-approvals-and-sandbox)
command=(codex --approve-for-me)
[[ -n ${prompt:-} ]] && command+=(-- "$prompt")
;;
omp)
Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-capture-screenrecording
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ stop_screenrecording() {

omarchy-notification-send "Screen recording saved" "Open with Super + Alt + , (or click this)" \
-t 10000 --image "${preview:-$filename}" \
--exec "$(printf 'mpv %q' "$filename")"
--exec mpv -- "$filename"

# The shell loads the thumbnail into memory when the toast appears and never
# re-reads the file, so the preview only has to outlive that load -- not the
Expand Down
2 changes: 1 addition & 1 deletion bin/omarchy-capture-screenshot
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ case "$PROCESSING" in
# 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 "$(printf '%q %q' "$SCREENSHOT_EDITOR" "$FILEPATH")" || true
--exec "$SCREENSHOT_EDITOR" "$FILEPATH" || true
;;
copy)
grim -g "$SELECTION" - | wl-copy --type image/png
Expand Down
80 changes: 67 additions & 13 deletions bin/omarchy-chromium-ytdlp-host
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,51 @@ valid_url() {
[[ $1 =~ ^https?:// ]]
}

# A printed path is only usable if it is a regular file inside DOWNLOAD_DIR.
# Forged records (leading-dash mpv options, paths with control chars, or
# anything that escaped the download directory) must not reach the click command.
resolve_download_file() {
local candidate=$1 file_real dir_real

[[ -n $candidate ]] || return 1
[[ $candidate != *$'\n'* && $candidate != *$'\r'* && $candidate != *$'\t'* ]] || return 1
[[ -f $candidate ]] || return 1

# Read to a NUL: command substitution strips trailing newlines, which would
# resolve a name ending in one to a different file that may well exist.
IFS= read -r -d '' file_real < <(realpath -ze -- "$candidate") || return 1
IFS= read -r -d '' dir_real < <(realpath -ze -- "$DOWNLOAD_DIR") || return 1

[[ $file_real != *$'\n'* && $file_real != *$'\r'* && $file_real != *$'\t'* ]] || return 1
# Trim the slash so a download directory of "/" still leaves a usable prefix.
[[ $file_real == "${dir_real%/}"/* ]] || return 1

printf '%s' "$file_real"
}

# yt-dlp prints the title JSON-encoded, so a newline or tab in page metadata is an
# escape sequence rather than a record boundary. This is toast text, never a command.
decode_title() {
local decoded

decoded=$(jq -r 'if type == "string" then . else empty end' <<<"$1" 2>/dev/null) || return 1
decoded=${decoded%%[[:cntrl:]]*} # keep what a person would read, drop the forgery
[[ -n $decoded && $decoded != -* ]] || return 1

printf '%s' "$decoded"
}

title_from_file() {
local name=${1##*/}
name=${name%.*}
name=${name//[$'\n\r\t']/}
if [[ -z $name || $name == -* ]]; then
printf '%s' "Video"
else
printf '%s' "$name"
fi
}

# Drive the Quickshell OSD — a single overlay that updates in place (like the
# volume/brightness bar), so download progress never stacks like notifications.
osd_progress() {
Expand All @@ -41,16 +86,19 @@ download_url() {
mkdir -p "$DOWNLOAD_DIR"

# Don't show anything until yt-dlp confirms there's actually a video to grab.
if ! yt-dlp --no-playlist --simulate --quiet --no-warnings "$url" >/dev/null 2>&1; then
if ! yt-dlp --no-playlist --simulate --quiet --no-warnings --no-exec --no-exec-before-download -- "$url" >/dev/null 2>&1; then
omarchy-notification-send -u critical -g 󰅖 "No video found for download" "$url"
exit 0
fi

osd_progress 0

# Stream the download: OMARCHY_PROG carries the percent (drives the OSD),
# OMARCHY_FILE (printed only after a successful move) carries title + path.
local line rest pct intpct last="" er nowms lastms=0 title="" filepath=""
# Stream the download: OMARCHY_PROG carries the percent (drives the OSD), and
# OMARCHY_FILE and OMARCHY_TITLE (printed only after a successful move) carry the
# path and the title. The title is JSON-encoded so metadata cannot forge a record,
# and the file is named after it: yt-dlp strips control characters from a filename
# with or without --restrict-filenames, so a record is still only ever one line.
local line pct intpct last="" er nowms lastms=0 title="" filepath="" resolved
while IFS= read -r line; do
case $line in
OMARCHY_PROG*)
Expand All @@ -67,22 +115,26 @@ download_url() {
osd_progress "$intpct"
;;
OMARCHY_FILE*)
rest=${line#OMARCHY_FILE$'\t'}
title=${rest%%$'\t'*}
filepath=${rest#*$'\t'}
resolved=$(resolve_download_file "${line#OMARCHY_FILE$'\t'}") || continue
filepath=$resolved
;;
OMARCHY_TITLE*)
title=$(decode_title "${line#OMARCHY_TITLE$'\t'}") || title=""
;;
esac
done < <(PYTHONUNBUFFERED=1 yt-dlp --no-playlist --restrict-filenames --no-simulate \
--quiet --no-warnings --progress --newline \
done < <(PYTHONUNBUFFERED=1 yt-dlp --no-playlist --no-simulate \
--quiet --no-warnings --no-exec --no-exec-before-download --progress --newline \
--progress-template $'download:OMARCHY_PROG\t%(progress._percent_str)s' \
--paths "$DOWNLOAD_DIR" -o '%(title)s [%(id)s].%(ext)s' \
--print $'after_move:OMARCHY_FILE\t%(title)s\t%(filepath)s' \
"$url" 2>&1)
--paths "$DOWNLOAD_DIR" -o '%(title)s.%(ext)s' \
--print $'after_move:OMARCHY_FILE\t%(filepath)s' \
--print $'after_move:OMARCHY_TITLE\t%(title)j' \
-- "$url" 2>&1)

osd_close

# after_move only prints on a successful download+move, so a captured path == success.
if [[ -n $filepath ]]; then
[[ -n $title ]] || title=$(title_from_file "$filepath")
((${#title} > 50)) && title="${title:0:50}…" # keep the toast compact

# Square, center-cropped thumbnail so the notification preview isn't stretched.
Expand All @@ -94,9 +146,11 @@ download_url() {

# Best-effort: the download already succeeded, and under `set -e` a failed
# toast would exit before the thumbnail cleanup below is ever scheduled.
# `--` keeps mpv from parsing a leading-dash filename as an option; the path
# is one discrete argument, so it never reaches a shell.
omarchy-notification-send -g 󰄬 "Download complete" "$title" \
-t 10000 --image "${preview:-$filepath}" \
--exec "$(printf 'mpv %q' "$filepath")" || true
--exec mpv -- "$filepath" || true

# The shell loads the thumbnail into memory when the toast appears and never
# re-reads the file, so the preview only has to outlive that load, not the
Expand Down
14 changes: 7 additions & 7 deletions bin/omarchy-crash-watch
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ readonly ignore_pattern=${OMARCHY_CRASH_IGNORE:-}
declare -A last_notified

announce() {
local comm=$1 pid=$2 exe=$3 signal=$4 exec_command

exec_command=$(printf 'omarchy-agent-crash %q %q %q %q' "$pid" "$comm" "$exe" "$signal")
local comm=$1 pid=$2 exe=$3 signal=$4

# The shell owns org.freedesktop.Notifications, so a shell crash takes the
# notification server down with it and a toast sent into that gap is lost.
Expand All @@ -35,14 +33,16 @@ announce() {
omarchy-notification-wait || return 1

# --exec rather than a libnotify action: the shell runs clicks from its own
# omarchy-exec hint and never emits ActionInvoked. Keeps the default
# "omarchy-action" app name too, the only one shouldBypassDnd() lets through.
# hint and never emits ActionInvoked. Keeps the default "omarchy-action" app
# name, the only one shouldBypassDnd() lets through. Crash details ride as
# discrete argv words, so a hostile process name can't be reparsed as a
# command. --exec consumes the rest of the line, so it comes last.
omarchy-notification-send \
--urgency critical \
--glyph "$CRASH_GLYPH" \
--exec "$exec_command" \
"Process crashed: $comm" \
"Click to diagnose with AI"
"Click to diagnose with AI" \
--exec omarchy-agent-crash "$pid" "$comm" "$exe" "$signal"
}

# -n 0 so a restart does not re-announce crashes already dealt with.
Expand Down
39 changes: 32 additions & 7 deletions bin/omarchy-dns
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@

set -euo pipefail

# Whenever this runs as root — invoked directly through the passwordless
# sudoers rule, or re-execed by require_root below — sudo's secure_path decides
# where a bare helper resolves, and a dev link (etc/sudoers.d/omarchy-dev-path)
# prepends a user-writable checkout bin/ to it. Every helper this script calls
# by bare name (dirname, install, tee, rm, nmcli, systemctl, awk) is a system
# tool, never an omarchy-* command, so pin PATH to trusted system directories
# and keep root from resolving one out of that checkout. The unprivileged
# wrapper phase keeps the caller's PATH so it can still find sudo/pkexec.
if (( EUID == 0 )); then
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
fi

NM_DNS_CONF=/etc/NetworkManager/conf.d/20-omarchy-dns.conf

provider_from_arg() {
Expand All @@ -28,19 +40,32 @@ provider_from_arg() {
esac
}

self_path() {
readlink -f "$OMARCHY_PATH/bin/${BASH_SOURCE[0]##*/}"
# The path etc/sudoers.d/omarchy-dns names. The privileged half always runs from
# there rather than from whichever copy was invoked, so the rule matches even
# where $OMARCHY_PATH points at a checkout.
PACKAGED_PATH=/usr/bin/omarchy-dns

# True when sudo would run this exact command without stopping for a password.
# `sudo -l` on its own reports whether a command is permitted, which the blanket
# %wheel rule answers yes to for everything; the long listing prints the matched
# entry's tags, so !authenticate is the grant in etc/sudoers.d/omarchy-dns and
# nothing else. Listing runs nothing and, under -n, prompts for nothing, so a
# machine whose omarchy-settings predates that file falls through to polkit
# instead of dying on a password prompt it has no terminal to show.
sudo_grants_passwordless() {
sudo -n -l -l "$PACKAGED_PATH" "$@" 2>/dev/null | grep -q '!authenticate'
}

require_root() {
if (( EUID == 0 )); then
return
fi

if [[ -t 0 ]]; then
exec sudo "$(self_path)" "$@"
elif [[ -t 0 ]] || sudo_grants_passwordless "$@"; then
# A terminal can carry sudo's own password prompt. Without one, sudo is
# right only where the grant reaches; polkit can at least put a prompt on
# screen, and offer to authenticate as someone else.
exec sudo "$PACKAGED_PATH" "$@"
else
exec pkexec "$(self_path)" "$@"
exec pkexec "$PACKAGED_PATH" "$@"
fi
}

Expand Down
50 changes: 50 additions & 0 deletions bin/omarchy-git-url-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

# omarchy:summary=Check that a git URL names a repository, not a transport helper
# omarchy:args=<git-url>
# omarchy:hidden=true

set -euo pipefail

# git picks a remote helper -- an executable it runs at clone time -- out of a URL
# in exactly two shapes, and no others: `<helper>::<address>`, and
# `<scheme>://<address>` for any scheme git does not handle itself. A single
# colon is always scp-style ssh, and a bare path is always a path; neither can
# reach a helper. So constraining those two shapes covers the whole surface.
#
# The `::` shape is refused outright, because no helper reachable that way is one
# a theme or plugin URL has business naming, and `ext::` runs a shell command.
# The `://` shape cannot be refused the same way, since it is also how every
# legitimate URL arrives -- so it is allowlisted instead. The list is the
# transports git still connects itself, `git+ssh` and `ssh+git` included: those
# two are spelled like a helper but are read as plain ssh. `ext` and `fd` are
# left out deliberately -- git ships a helper for each, and `ext` runs whatever
# command the URL carries.
TRANSPORTS=(ssh git git+ssh ssh+git http https ftp ftps file)

fail() {
echo "omarchy-git-url-check: $*" >&2
exit 1
}

url="${1-}"

if [[ -z $url ]]; then
fail "a git URL is required"
fi

if [[ $url == -* || $url =~ ^[A-Za-z0-9][A-Za-z0-9+.-]*:: ]]; then
fail "'$url' names a git option or transport helper, not a repository."
fi

if [[ $url =~ ^([A-Za-z0-9][A-Za-z0-9+.-]*):// ]]; then
scheme="${BASH_REMATCH[1]}"

for transport in "${TRANSPORTS[@]}"; do
if [[ $scheme == "$transport" ]]; then
exit 0
fi
done

fail "'$url' names the '$scheme' transport, which Omarchy does not clone from."
fi
Loading