omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Shell exposes no accessibility information: no roles or names on any surface

Open rmcdavid opened this issue 2 months ago • 2 comments

Up front: I am a hobbyist, not a professional software developer. This report was researched and written with the help of an AI assistant while I was building a third-party shell plugin. I have tried to make it accurate and to include the evidence behind every claim, but please read the technical details with that in mind. If anything here is wrong or unhelpful, tell me and I will correct it or close it.

What happens

The Omarchy shell sets no accessibility roles or names on any of its surfaces. With an assistive technology running and Qt's AT-SPI bridge active, the bar, application menu, clipboard picker, emoji picker, notifications, OSD, lock screen and every panel publish an item tree with no roles and no names, so a screen-reader user cannot identify or operate any part of the shell.

What I expected

Interactive surfaces carry Accessible.role and Accessible.name, which Qt Quick supports out of the box through the Accessible attached property, so assistive technology can name and operate them.

How to reproduce

grep -rn 'Accessible\.' /usr/share/omarchy/shell

No output, exit 1. That is across 102 .qml files and 34,914 lines.

Evidence

The UI kit is hand-built, which is a perfectly reasonable choice, but it means no component inherits a default role from Qt Quick Controls. Of the 33 components in /usr/share/omarchy/shell/Ui/, only two have a Controls type as their root:

Component Root type
TextField.qml TextField (Controls)
PanelToolTip.qml ToolTip (Controls)
Button.qml BorderSurface
Dropdown.qml, MultiSelect.qml, SearchableDropdown.qml Item
NumberField.qml Column

Five of these import QtQuick.Controls for internal use but do not derive from it, so they get no default role. In particular Ui/Button.qml is a BorderSurface plus a MouseArea, which means clickable things are not buttons to assistive technology.

Ui/ConfirmDialog.qml builds its Cancel and confirm buttons as a bare BorderSurface containing a Text, with no accessibility properties. That one matters beyond the shell: a third-party plugin that uses ConfirmDialog cannot annotate those buttons from outside, so the plugin cannot fix it either.

Why I am suggesting it be fixed at the source

A plugin can label its own surfaces and nothing else. Roles and names on the shell's own components, and especially on the shared Ui/ kit where one change covers every consumer, would make every plugin's surfaces reachable at once.

One important caveat, so nobody chases the wrong thing first

While investigating this I found that nothing a Quickshell window declares reaches AT-SPI at all on my machine, so adding roles and names here would not be observable until that is resolved. Measured with the bridge active, checking window mapping from the compositor, and selecting the bus connection by ToolkitName rather than by process name:

What was run Window it creates Children published
qml probe.qml (plain Qt) xdg-toplevel 1
quickshell with a PanelWindow layer surface 0
quickshell with a FloatingWindow xdg-toplevel 0

So Qt's bridge works fine on this system; no Quickshell window publishes a tree, and it is not specific to layer-shell surfaces. I am reporting that separately. I mention it here only so this issue is not judged by testing it before that is fixed.

A related gotcha for anyone debugging accessibility on Omarchy

envs.lua sets QT_QPA_PLATFORMTHEME=gtk3 for the session. With the bridge active, the shell process then has two connections on the accessibility bus, both reporting the process name quickshell:

Connection ToolkitName Version ChildCount
first listed gtk 3.24.52 0
second Qt 6.11.2 0

The GTK one is empty and is listed first, so anyone diagnosing this who selects by name rather than by ToolkitName will read the wrong connection and draw the wrong conclusion. It cost me a day. Not necessarily a bug, but worth knowing about.

System details

Arch Linux, Hyprland session. quickshell 0.3.1-1, qt6-base 6.11.2-3, at-spi2-core 2.60.6-1. Shell launched by /usr/share/omarchy/bin/omarchy-launch-shell as quickshell -n -p /usr/share/omarchy/shell. No screen reader installed, so everything above was observed through the AT-SPI bus directly rather than through a reader.

rmcdavid avatar Sep 15 '26 20:09 rmcdavid

Confirmed on Omarchy with quickshell 0.3.1, qt6-base 6.11.2 and at-spi2-core 2.60.7: the shell's application registers on the accessibility bus with no children, so nothing in the bar, panels or overlays is reachable.

The root cause is in Quickshell 0.3.1, which publishes no AT-SPI tree for any window type. It is fixed upstream in https://github.com/quickshell-mirror/quickshell/commit/916a0dd90cf2e349116381e0abbbfcf94387eb77 (from https://github.com/quickshell-mirror/quickshell/issues/1006), which is not in a release yet.

With Quickshell built at that commit, layer-shell windows do publish their tree. Adding Accessible role, name, state and press/toggle/increase actions to the shared shell/Ui kit then makes bar and panel controls readable and pressable over AT-SPI, with each action calling the component's existing signal.

A small PR doing only that will follow and link here: no visual change, inert on 0.3.1, with a contract test.

calebl avatar Sep 25 '26 03:09 calebl

Two concrete gaps from the plugin side, for when the shared shell/Ui kit gets its roles. Both controls are ones plugins are encouraged to reuse:

  • Ui/Toggle.qml has no Accessible.role, checkable or checked, so a screen reader hears a text block with no on/off state.
  • Ui/ButtonGroup.qml is a single Tab stop with no Accessible.name. Its chips are Ui.Buttons with focusable: false, so the selected value is never announced. Separately, the chips don't dim when the group is disabled, so a disabled group looks usable.

Until then, plugins have to patch each instance. OmaCards sets Accessible.role: Accessible.CheckBox with checkable/checked and press/toggle actions on each Toggle, and names each ButtonGroup "Heading, Value selected". Doing it in the components would cover every panel at once.

nocstah avatar Nov 10 '26 09:11 nocstah