Skip to content
Merged
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
ee9e6d7
Run the background intro fixtures' steps in order (#16958)
emirb Oct 29, 2026
84e6810
Read whole outputs before grep -q in three tests (#16959)
emirb Oct 29, 2026
c488ce8
Test every pull request on a real Omarchy install (#16835)
emirb Oct 29, 2026
c4ef67a
Create the T3 Code mount file before the mounter runs (#16962)
emirb Oct 29, 2026
c8404fa
Offer rc on Apple Silicon (#16986)
maralcbr Oct 29, 2026
32b0071
Stop the hidden bar from catching clicks over fullscreen windows (#16…
dhh Oct 29, 2026
dc459b9
Fix file manager shortcut in hotkeys manual (#8006)
jovial-liu Oct 29, 2026
d8be77b
Document that resize Super+Minus/Equal are physical AE11/AE12 (#11026)
kvnloo Oct 29, 2026
acba5dd
Warn that a snapshot restore leaves migrations marked as run (#15159)
namespaceMarcello Oct 29, 2026
2f6d1fb
docs: document --prepare-only in menu-images usage (#13717)
kvnloo Oct 29, 2026
564f3ad
universal select all (#14307)
med502 Oct 29, 2026
3b8c9b4
Document ASUS Fn+Super Windows-key lock in troubleshooting (#11045)
rdoupe Oct 29, 2026
1451967
Draw inline code in the generated VS Code theme as foreground on a mu…
omarchybot Oct 29, 2026
f0db698
Update translations (#16994)
omarchybot Oct 29, 2026
b0e939e
Silence pgrep in font-set's terminal checks (#15820)
omarchybot Oct 29, 2026
e8dba82
Update translations (#16995)
omarchybot Oct 29, 2026
68003d5
Answer the webcam menu guard from udev instead of opening cameras (#1…
omarchybot Oct 29, 2026
149f71a
Keep the keyboard backlight level when the lock blanks again before a…
omarchybot Oct 29, 2026
7f6c68d
Keep bar icons level, centered, and at full size (#17003)
dhh Oct 29, 2026
b276d13
Return window opening to its earlier 410ms (#17001)
dhh Oct 29, 2026
3bb89c4
Fix slider knob stopping short of the track end (#9345)
erikrjohansson Oct 29, 2026
35296b3
fix: collapse dropdown toggle on second click (#6725)
felixzsh Oct 29, 2026
7269642
fix add built in transparency theme options (#6451)
mikemayuare Oct 29, 2026
a57959b
Measure hidden Buttons at their full width again (#15786)
dmkenney Oct 29, 2026
5fccbad
Include popup padding in dropdown height (#13916)
sprajs Oct 29, 2026
31560fe
Use accent color for VS Code list hover (#7240)
yacobmole Oct 29, 2026
ed26d7f
Tint the Claude Code diff panel with the Omarchy theme (#11131)
t4t5 Oct 29, 2026
965f154
Keep one pending-migrations reminder instead of one per login (#16981)
emirb Oct 29, 2026
491377f
Merge pull request #16805 from bjarneo/ethereal-roadster-gullwing
bjarneo Oct 29, 2026
8727cf6
Support the ASUS Zenbook A16's speakers, with ASUS's voicing (#17039)
dhh Oct 29, 2026
065d562
Let the installer's timezone picker always be searched by typing (#17…
emirb Oct 30, 2026
5ba4f1e
Seed the Quake console from workspace.created instead of on_created_e…
dhh Oct 30, 2026
724b1d2
Keep the still on screen until OWE takes a video background (#17082)
bjarneo Oct 30, 2026
5f89d39
Load the Glymur pin control and interconnect drivers before disk unlo…
jdvmi00 Oct 30, 2026
6eeabd8
Keep Hyprland off rtkit realtime until its RT watchdog kills are fixe…
shawnyeager Oct 30, 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
118 changes: 118 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Tests

# Runs ./test/all on a real Omarchy install: the VM image of the current
# release, booted fresh for the run, with this checkout's code copied in.
# The package recipes are checked out beside it, because some tests hold
# this repository's scripts against them. Nothing it runs holds a secret, so
# a fork's pull request runs the same way as ours.

on:
pull_request:
push:
branches: [quattro]

permissions:
contents: read

concurrency:
group: tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-26.04
timeout-minutes: 30
env:
SITE: https://nightly.omarchy.org
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: src/omarchy
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: omacom/omarchy-pkgs
path: src/omarchy-pkgs
persist-credentials: false

- name: Install the fetch tools
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq --no-install-recommends aria2 jq

# The image of the current release: an installed Omarchy with user
# omarchy, built and boot-tested by omarchy-iso. It is fetched from
# Cloudflare on every run, into RAM: runners write their disk at 200
# or 400 MB/s, which bound the fetch to 15-31 s, and /dev/shm took it
# in 7-12 s on eight runners. Restoring it from the Actions cache took
# 27-62 s.
- name: Fetch the VM image
run: |
mkdir -p /dev/shm/image && cd /dev/shm/image
curl -fsS --retry 3 -o latest.json "$SITE/stable/latest.json"
jq -r '"Image: Omarchy \(.omarchy_version), kernel \(.kernel)"' latest.json | tee -a "$GITHUB_STEP_SUMMARY"
unpacked=$(jq -r .vm.unpacked latest.json)
for file in vmlinuz initrd cmdline; do
curl -fsS --retry 3 -o "$file" "$unpacked$file"
done
url=$(jq -r .vm.url latest.json)
started=$SECONDS
aria2c --quiet -x 16 -s 16 -o base.qcow2 "$url"
echo "Fetched $(stat -c %s base.qcow2) bytes in $(( SECONDS - started )) s" | tee -a "$GITHUB_STEP_SUMMARY"
echo "$(jq -r .vm.sha256 latest.json) base.qcow2" | sha256sum -c -

# QEMU runs in an Arch container on the runner's KVM: Arch's current
# QEMU (11) instead of the runner's older one, the same as
# omarchy-iso's install test and an Omarchy workstation.
- name: Run the tests in the VM
run: |
sudo chmod 0666 /dev/kvm
docker run --rm --device /dev/kvm -v "$PWD:/w" -v /dev/shm/image:/image:ro -w /w -e VM_STATE_DIR=/tmp -e MEM=6G \
ghcr.io/archlinux/archlinux:latest bash -euo pipefail -c '
# pacman 7 fails every sync on a kernel without Landlock, which
# these runners have; omarchy-iso does the same.
if ! grep -qw landlock /sys/kernel/security/lsm 2>/dev/null; then
printf "#!/bin/sh\nexec /usr/bin/pacman --disable-sandbox \"\$@\"\n" >/usr/local/bin/pacman
chmod 0755 /usr/local/bin/pacman
fi
# Our own Arch mirror first, the public ones after it; a mirror
# that drops one file must not fail the run: try again.
sed -i "1i Server = https://mirror.omarchy.org/\$repo/os/\$arch" /etc/pacman.d/mirrorlist
for attempt in 1 2 3; do
if pacman -Syu --noconfirm --needed qemu-system-x86 qemu-hw-display-virtio-gpu qemu-hw-display-virtio-vga qemu-img openssh >/dev/null; then
break
elif (( attempt < 3 )); then
echo "pacman failed, attempt $attempt of 3; trying again in 15 s"
sleep 15
else
echo "::error::the test container could not install QEMU"
exit 1
fi
done
qemu-system-x86_64 --version | head -n 1
src/omarchy/test/ci-vm /image src out
'

# The container ran as root: its output belongs to root until here.
- name: Hand the results to the runner's user
if: always()
run: sudo chown -R "$(id -u):$(id -g)" out 2>/dev/null || true

- name: Summary
if: always()
run: |
if [[ -f out/run.log ]]; then
{
echo '```'
sed -n '/^Skipped checks in/,$p' out/run.log
echo '```'
} >>"$GITHUB_STEP_SUMMARY"
fi

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: tests-${{ github.run_id }}-${{ github.run_attempt }}
path: out/
if-no-files-found: ignore
retention-days: 14
26 changes: 24 additions & 2 deletions bin/omarchy-brightness-keyboard
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,33 @@ if [[ -z $device ]]; then
exit 1
fi

# The level from before the first "off" since the last "restore", so the lock
# blanking again after a resume cannot save its own 0 over it.
saved="${XDG_RUNTIME_DIR:-/tmp}/omarchy-brightness-keyboard-$device"

if [[ $direction == "off" || $direction == "restore" ]]; then
# The lock runs blank and wake as separate processes that can overlap.
exec {lock_fd}>"$saved.lock" || exit 1
flock "$lock_fd" || exit 1
fi

if [[ $direction == "off" ]]; then
brightnessctl -sd "$device" set 0 >/dev/null
if [[ ! -s $saved ]]; then
level="$(brightnessctl -d "$device" get)"
if [[ $level =~ ^[0-9]+$ ]] && ! echo "$level" >"$saved"; then
rm -f "$saved"
fi
fi
# Never blank a level there is no record of to restore.
[[ -s $saved ]] && brightnessctl -d "$device" set 0 >/dev/null
exit 0
elif [[ $direction == "restore" ]]; then
brightnessctl -rd "$device" >/dev/null
if [[ -f $saved ]]; then
level="$(<"$saved")"
if [[ ! $level =~ ^[0-9]+$ ]] || brightnessctl -d "$device" set "$level" >/dev/null; then
rm -f "$saved"
fi
fi
exit 0
fi

Expand Down
4 changes: 2 additions & 2 deletions bin/omarchy-font-set
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ XML

omarchy-restart-shell

if pgrep -x ghostty; then
if pgrep -x ghostty >/dev/null; then
omarchy-notification-send -g  "$(omarchy-i18n font.restartToSeeChange Ghostty)"
fi

if pgrep -x foot; then
if pgrep -x foot >/dev/null; then
omarchy-notification-send -g  "$(omarchy-i18n font.restartToSeeChange Foot)"
fi

Expand Down
38 changes: 38 additions & 0 deletions bin/omarchy-hw-webcam
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,42 @@

# omarchy:summary=Check whether a webcam is available

# The menu asks this on every open. Read the capture capability udev already
# recorded for each video node rather than opening the nodes with v4l2-ctl, which
# powers up every camera on the bus just to answer a menu guard. Without a recorded
# capture node (no udev database, as in a container) it falls back to asking them.
v4l_class_path="${OMARCHY_V4L_CLASS_PATH:-/sys/class/video4linux}"
udev_data_path="${OMARCHY_UDEV_DATA_PATH:-/run/udev/data}"
dev_path="${OMARCHY_DEV_PATH:-/dev}"

shopt -s nullglob
nodes=("$v4l_class_path"/video*)
shopt -u nullglob

((${#nodes[@]})) || exit 1

udev_capabilities() {
local line

while IFS= read -r line; do
if [[ $line == E:ID_V4L_CAPABILITIES=* ]]; then
printf '%s\n' "${line#E:ID_V4L_CAPABILITIES=}"
return
fi
done <"$1"
}

# udev records a node once, so a virtual camera (v4l2loopback, with no parent device),
# whose capabilities follow its producer, is left to the live query below.
for node in "${nodes[@]}"; do
[[ -e $node/device && -r $node/dev ]] || continue
# The picker lists only nodes it can open read-write, so a camera this user
# cannot open is no answer.
device="$dev_path/${node##*/}"
[[ -r $device && -w $device ]] || continue
data="$udev_data_path/c$(<"$node/dev")"
[[ -r $data && $(udev_capabilities "$data") == *:capture:* ]] && exit 0
done

# No capture node recorded: ask the devices.
[[ -n $(omarchy-capture-webcam-list) ]]
3 changes: 3 additions & 0 deletions bin/omarchy-install-ai-t3-code
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ T3CODE_APPIMAGE="$HOME/.local/share/t3code/T3-Code.AppImage"
t3_cli() {
local mount="" status=0
t3_cli_work=$(mktemp -d)
# The background job creates its output file only once it runs; made here,
# the loop below reads it empty instead of failing on a file not there yet.
: >"$t3_cli_work/mount"
"$T3CODE_APPIMAGE" --appimage-mount >"$t3_cli_work/mount" 2>/dev/null &
t3_cli_mounter=$!
# The runtime stays mounted until killed, and a background job ignores
Expand Down
4 changes: 2 additions & 2 deletions bin/omarchy-menu-images
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# omarchy:summary=Open a generic image selector menu
# omarchy:args=[--selected <image>] [--print-name] [--show-labels] [--filterable] [--lazy-thumbnails] [--preload] [--cache-only] [--print-rows] <image-dir>...
# omarchy:args=[--selected <image>] [--print-name] [--show-labels] [--filterable] [--lazy-thumbnails] [--preload] [--prepare-only] [--cache-only] [--print-rows] <image-dir>...

selected_image=""
print_name=false
Expand All @@ -15,7 +15,7 @@ print_rows=false
image_dirs=()

usage() {
echo "Usage: omarchy-menu-images [--selected <image>] [--print-name] [--show-labels] [--filterable] [--lazy-thumbnails] [--preload] [--cache-only] [--print-rows] <image-dir>..."
echo "Usage: omarchy-menu-images [--selected <image>] [--print-name] [--show-labels] [--filterable] [--lazy-thumbnails] [--preload] [--prepare-only] [--cache-only] [--print-rows] <image-dir>..."
}

while (( $# > 0 )); do
Expand Down
5 changes: 4 additions & 1 deletion bin/omarchy-migrate-notify
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ fi

# The shell keeps the click command with the toast, so this oneshot can hand the
# invitation over and exit instead of staying activated until it is answered.
omarchy-notification-send -u critical -g  "$(omarchy-i18n migrate.pending)" "$message" \
# Transient, because this runs at every login while migrations are pending:
# restoring the last login's reminder next to the new one would stack a copy
# per login.
omarchy-notification-send -u critical --transient -g  "$(omarchy-i18n migrate.pending)" "$message" \
--exec omarchy-launch-floating-terminal-with-presentation omarchy-migrate && exit 0

# Reached when the notification could not be handed off, so fall back to telling
Expand Down
28 changes: 22 additions & 6 deletions bin/omarchy-notification-send
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# omarchy:summary=Send an Omarchy desktop notification
# omarchy:args=[--app-name <app-name>] [-g <glyph>] [-u <low|normal|critical>] [-i <icon>] [-t <ms>] [-r <id>] [-p] [--image <path-or-uri>] <headline> [description] [--exec <program> [args...] | --action <label> <program> [words...]... [--with <args...>]]
# omarchy:args=[--app-name <app-name>] [-g <glyph>] [-u <low|normal|critical>] [-i <icon>] [-t <ms>] [-r <id>] [-p] [--transient] [--image <path-or-uri>] <headline> [description] [--exec <program> [args...] | --action <label> <program> [words...]... [--with <args...>]]
# omarchy:examples=omarchy notification send "Reminder" "5 minutes are up" -g 󰢌

set -euo pipefail
Expand All @@ -16,6 +16,7 @@ image=
expire_timeout=-1
replaces_id=0
print_id=0
transient=0
exec_args=()
exec_present=0
action_labels=()
Expand All @@ -24,7 +25,7 @@ with_args=()
parsed_option_args=0

usage() {
echo "Usage: omarchy-notification-send [--app-name <app-name>] [-g <glyph>] [-u <low|normal|critical>] [-i <icon>] [-t <ms>] [-r <id>] [-p] [--image <path-or-uri>] <headline> [description] [--exec <program> [args...] | --action <label> <program> [words...]... [--with <args...>]]" >&2
echo "Usage: omarchy-notification-send [--app-name <app-name>] [-g <glyph>] [-u <low|normal|critical>] [-i <icon>] [-t <ms>] [-r <id>] [-p] [--transient] [--image <path-or-uri>] <headline> [description] [--exec <program> [args...] | --action <label> <program> [words...]... [--with <args...>]]" >&2
}

# Recognize a known option, in both `--flag value` and `--flag=value` forms.
Expand All @@ -42,12 +43,20 @@ parse_omarchy_option() {
nargs=2
fi

# -p/--print-id is a flag; it takes no value.
if [[ $opt == -p || $opt == --print-id ]]; then
# Flags take no value, so only the bare word is one: --transient=false must
# not switch it on.
case $1 in
-p | --print-id)
print_id=1
parsed_option_args=1
return 0
fi
;;
--transient)
transient=1
parsed_option_args=1
return 0
;;
esac

case $opt in
-g | --glyph | -u | --urgency | --app-name | -i | --icon | --image | -r | --replace-id | -t | --expire-time) ;;
Expand Down Expand Up @@ -106,7 +115,7 @@ shift
# Only a recognized option flag or --exec in that slot is not the description.
known_flag() {
case $1 in
-g | --glyph | -u | --urgency | --app-name | -i | --icon | -t | --expire-time | --image | -r | --replace-id | -p | --print-id | --exec | --action) return 0 ;;
-g | --glyph | -u | --urgency | --app-name | -i | --icon | -t | --expire-time | --image | -r | --replace-id | -p | --print-id | --transient | --exec | --action) return 0 ;;
--glyph=* | --urgency=* | --app-name=* | --icon=* | --expire-time=* | --image=* | --replace-id=*) return 0 ;;
esac
return 1
Expand Down Expand Up @@ -190,6 +199,13 @@ if [[ -n $image ]]; then
hints+=(image-path s "$image")
fi

# The freedesktop transient hint: the shell keeps the card off its persistence,
# so it is not brought back after a restart or kept in history. For reminders
# that are sent again whenever they still apply.
if ((transient)); then
hints+=(transient b true)
fi

if ((exec_present)); then
if ((${#exec_args[@]} == 0)) || [[ -z ${exec_args[0]} ]]; then
echo "--exec needs a command: --exec <program> [args...]" >&2
Expand Down
Loading