Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
709b67a
omarchy-mac: Add omarchy brightness auto, ambient light brightness th…
joshuaswarren Nov 15, 2026
fec1c54
omarchy-mac: Leave idle dimming to Omarchy in the wluma config
joshuaswarren Nov 15, 2026
0ddbc0e
omarchy-mac: Fix brightness auto status, arguments and seeding checks
joshuaswarren Nov 15, 2026
113ecbf
omarchy-mac: Refuse brightness auto without a panel, skip the Touch B…
joshuaswarren Nov 15, 2026
667764e
omarchy-mac: Say why brightness auto stops when the panel disconnects…
joshuaswarren Nov 15, 2026
1dabf33
omarchy-mac: Run the machine's own mv in the brightness-auto test stub
joshuaswarren Nov 15, 2026
9255b71
omarchy-mac: Turn automatic brightness on by default
joshuaswarren Nov 15, 2026
79dfff0
omarchy-mac: Say starting while brightness auto waits for the sensor,…
joshuaswarren Nov 15, 2026
ed2db4b
omarchy-mac: Drop the mid-start disconnect test, prepare already pins it
joshuaswarren Nov 15, 2026
55fb1a9
omarchy-mac: Fail prepare without a panel or config, so a start does …
joshuaswarren Nov 15, 2026
439ee80
omarchy-mac: Leave the keyboard backlight out of the generated wluma …
joshuaswarren Nov 15, 2026
6af0ed4
Manual: say automatic brightness moves the screen only
joshuaswarren Nov 15, 2026
988e120
Manual: the hardware table no longer says the keyboard backlight foll…
joshuaswarren Nov 15, 2026
0c410cf
Manual: name the ambient light sensor on the keyboard page
joshuaswarren Nov 16, 2026
ee0f5f5
Manual: say when the keyboard backlight comes on and what happens aft…
joshuaswarren Nov 16, 2026
b977140
omarchy-brightness-auto: report every failed write and never leave a …
joshuaswarren Nov 16, 2026
d98dc9d
brightness-auto test: match real is-active while starting, cover the …
joshuaswarren Nov 16, 2026
19d3ea4
omarchy-mac: Run the machine's own awk in the brightness-auto test stub
joshuaswarren Nov 16, 2026
9dc638f
omarchy-mac: Leave external displays out of automatic brightness
joshuaswarren Nov 16, 2026
2f755bf
omarchy-mac: Refuse wluma older than 5.0
joshuaswarren Nov 16, 2026
155c16d
vercmp fail-closed + stub; bounded restart; review wording
joshuaswarren Nov 18, 2026
1f33a29
on clears the start limit; burst 5; honest limit wording
joshuaswarren Nov 18, 2026
d94d24a
omarchy-mac: name the panel backlight path in wluma config
joshuaswarren Nov 18, 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
4 changes: 3 additions & 1 deletion mac-manual/content/06-keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Apple keyboards have no Print Screen key, so Omarchy's `Print` bindings have no

## Keyboard backlight

On Macs with an ambient light sensor, the keyboard backlight follows the room: lit in the dark, off in bright light. Apple Silicon keyboards have no backlight keys, so Omarchy's keyboard backlight bindings have no key on the built-in keyboard yet; [omacom/omarchy-mac#683](https://github.com/omacom/omarchy-mac/issues/683) tracks giving it some.
The keyboard backlight comes on at half brightness at the passphrase prompt, then returns to its last level after unlock; the automatic brightness below moves the screen only. Apple Silicon keyboards have no backlight keys, so Omarchy's keyboard backlight bindings have no key on the built-in keyboard yet; [omacom/omarchy-mac#683](https://github.com/omacom/omarchy-mac/issues/683) tracks giving it some.

Only the built-in screen follows the room, from the ambient light sensor through wluma; an external display keeps the brightness you set, on a config Omarchy writes. It is on by default, as on macOS. `omarchy brightness auto off` stops it and keeps it off; `omarchy brightness auto on` turns it back on. If wluma 5.0 or newer is missing, `omarchy-pkg-add wluma` installs it. It starts from a built-in curve and keeps learning from the brightness you set by hand.

## Trackpad

Expand Down
2 changes: 1 addition & 1 deletion mac-manual/content/12-hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This is what the first release is qualified against on both reference Macs. <spa
| --- | --- | --- |
| Apple GPU | <span class="status ok">works</span> | Mesa `vulkan-asahi`, hardware acceleration. A desktop on `llvmpipe` means something is wrong. |
| Internal display, brightness | <span class="status ok">works</span> | The panel includes the strip beside the notch |
| Keyboard, backlight, trackpad | <span class="status ok">works</span> | Drivers loaded early, so they work at the passphrase prompt. The backlight follows the ambient light sensor. See [Keyboard and trackpad]({{page:keyboard}}). |
| Keyboard, backlight, trackpad | <span class="status ok">works</span> | Drivers loaded early, so they work at the passphrase prompt. The backlight comes on at half brightness at the passphrase prompt; automatic brightness leaves it alone. See [Keyboard and trackpad]({{page:keyboard}}). |
| Wi-Fi, Bluetooth | <span class="status ok">works</span> | NetworkManager with the iwd backend. Wi-Fi on BCM4378 and BCM4387 chips recovers after resume. Wi-Fi 6E Macs join on 2.4 and 5 GHz: a 6 GHz join passes no traffic with the current firmware. On the MacBook Neo's MT7932, NetworkManager rather than iwd reconnects, so a connect the firmware rejects is retried. |
| Speakers, microphone, headphones | <span class="status ok">works</span> | Asahi's DSP chain with `speakersafetyd` protecting the speakers. The microphone array is mapped, and a headset microphone takes priority when plugged in. If the microphone is still missing 30 s after the session starts, or when an update changes its DSP chain, one restart of the audio session is attempted to bring it back without a reboot. |
| Suspend and resume | <span class="status ok">works</span> | Open the lid or press the power button to wake the Mac. A key press or trackpad click does not wake it: the kernel drivers for the built-in keyboard and trackpad do not register as a wakeup source on M1 or M2 MacBooks. Closed in a bag, it stays asleep. |
Expand Down
14 changes: 13 additions & 1 deletion omarchy-mac/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# omarchy-mac

Apple Silicon defaults and support services for Omarchy. Version: `0.2.6` (candidate). This add-on complements `omarchy` and `omarchy-settings`; it selects no kernel and contains no installer or repository trust configuration. It covers what stays on an installed Mac; installing one is the job of the [Omarchy Installer](https://github.com/omacom/omarchy-mac-installer), and boot support is the separate `omarchy-mac-boot` package beside this one.
Apple Silicon defaults and support services for Omarchy. Version: `0.2.8` (candidate). This add-on complements `omarchy` and `omarchy-settings`; it selects no kernel and contains no installer or repository trust configuration. It covers what stays on an installed Mac; installing one is the job of the [Omarchy Installer](https://github.com/omacom/omarchy-mac-installer), and boot support is the separate `omarchy-mac-boot` package beside this one.

## Build and stage

Expand Down Expand Up @@ -57,6 +57,18 @@ A set limit is saved as `CHARGE_CONTROL_END_THRESHOLD=` in `/etc/udev/macsmc-bat

asahi-scripts' path unit starts `macsmc-battery-charge-control-end-threshold.service`, which saves the limit, on every SMC battery event, so plugging in the charger or resuming can start it more than five times in ten seconds and leave it `failed` with `start-limit-hit`. Since it only rewrites the same line, the package's drop-in removes its start limit; the drop-in goes once AsahiLinux/asahi-scripts#78 fixes the unit upstream.

## Automatic brightness

`omarchy brightness auto [status [--json]|on|off|toggle|seed [--force]]` controls automatic brightness for the panel from the ambient light sensor. It is on by default, as on macOS. It runs [wluma](https://github.com/max-baz/wluma) as the user unit `wluma.service` with the sensor alone: no screen capture, and no gamma control, so hyprsunset keeps the colour temperature. The package links the unit into `graphical-session.target.wants`, so every user gets it at the next login, an upgrade included, and a drop-in (`wluma.service.d/omarchy-mac.conf`) starts it only when wluma 5.0 or newer is installed and a light sensor under `/sys/bus/iio/devices` (`in_illuminance_input` or `in_illuminance_raw`) gives a number; it waits up to 60 s after login for the first reading, and only while the always-on processor's platform node (`*.aop`) exists, since that node is what loads the sensor driver. A Mac with no sensor and no such node skips the unit at once and without an error. A sensor that reports later than that wait is not picked up until the next login or `omarchy brightness auto on`, and a Mac whose node exists but whose sensor never appears holds the unit in its start condition for the full wait at each login, without delaying the session. `on` prints a line when it has to wait for the first reading.

`off` masks the unit and stops it, which no package upgrade undoes; `on` unmasks it and starts it. `on` refuses without wluma 5.0 or newer (the message names `omarchy-pkg-add wluma`, or the version it found; the version comes from `pacman -Q wluma`, and a wluma pacman does not know is let through), without a light sensor, and with neither a connected internal panel nor a config of the user's own, because wluma on its defaults captures the screen and dims on idle; a refused `on` starts nothing. The drop-in's start condition holds for the same reason: with no light sensor, no wluma, or neither a connected internal panel nor a config, the unit stays stopped. Upstream restarts the unit every 5 s, so the drop-in also narrows that: five starts within two minutes and automatic retries stop; `on` clears the failed state and starts it again, and the next login starts it fresh.

wluma learns from manual brightness changes and does nothing until it has data, so before each start the drop-in runs `omarchy-brightness-auto prepare`, which seeds one starting curve per device in `~/.local/state/wluma/`, named as wluma names them: the panel's DRM connector and the keyboard LED (the keyboard curve is only used if you enable the keyboard in your own config). The panel's backlight is picked by the platform's `displays.conf`: the listed Touch Bar backlights are skipped and the preferred one wins. The panel curve climbs from 5% of `max_brightness` in the dark to 100% at 10000 lux; the keyboard is at half of its maximum in the dark and off from 50 lux. A seed never overwrites a file wluma has written; `seed --force` does. `prepare` also writes `~/.config/wluma/config.toml` when none exists, and never replaces one: the panel with ambient light only, wluma's idle dimming off because Omarchy's own idle chain handles an idle screen, and the keyboard backlight disabled in wluma. With its idle off, wluma would learn the lock screen switching the keyboard off as your choice and leave the keyboard dark in a dark room, so the keyboard is left to whatever else drives it. Every external connector present when the config is written is disabled in wluma: the light sensor is in the laptop and does not see the light at a Studio Display, so a display on a cable keeps the brightness you set. A config that already exists is kept as it is.

`prepare` fails, and so the unit does not start, when no internal panel is connected and no config exists, since wluma on its defaults would capture the screen and dim on idle. `ready` already skips the unit in that case; the failure covers a panel that goes away between `ready` and `prepare`.

`status` reports whether the unit is running (a stopped or skipped unit reads off; while the unit waits for the sensor it reads starting) and the current lux reading, which stays empty until the sensor reports.

## Keyboard function-key mode

The built-in keyboard binds to `hid_apple`, whose `fnmode` decides what the top row sends. Apple Silicon uses the kernel's default, `fnmode=3` (auto): Apple keyboards send mute, volume, brightness and media first with F1-F12 behind Fn, as in macOS, and the non-Apple boards `hid_apple` recognises (Keychron and similar) keep F-keys first. The package ships no `hid_apple` option and the desktop install leaf writes none on Apple Silicon, so any option the owner sets wins, whatever its file name. For F-keys first on the Mac, write `options hid_apple fnmode=2` to `/etc/modprobe.d/hid_apple.conf` and rebuild the boot image (`sudo mkinitcpio -P`, or `sudo omarchy-mac-boot-update` on a Limine Mac): `hid_apple` loads from the initramfs with the options it was built with.
Expand Down
Loading
Loading