Skip to content

omamobile-shell 0.2.157: a tap on an item in the bar opens its card, as in Omarchy's bar - #1024

Merged
derekross merged 11 commits into
derekross:mainfrom
W4HO-ham:shell-bar-cards
Nov 26, 2026
Merged

derekross merged 11 commits into
derekross:mainfrom
W4HO-ham:shell-bar-cards

Conversation

@W4HO-ham

Copy link
Copy Markdown
Contributor

On the phone the whole status bar was one target that toggled quick settings, so a tap on the battery or the Wi-Fi icon never showed what a click on the same icon shows in Omarchy's bar. Now each item opens its card, as in Omarchy, and quick settings opens on a pull, as on a phone. A tap on an empty part of the bar does nothing.

Item Card
Battery Omarchy's own power panel
Wi-Fi or Ethernet Omarchy's own network panel
Bluetooth Omarchy's own Bluetooth panel
Cellular signal CellularPanel.qml: carrier, state, a mobile data switch, the signal, whether calls, texts and mobile data work
Clock TimePanel.qml: day, date, time and time zone

Omarchy's panels are Omarchy's files. The bar loads plugins/panels/{power,network,bluetooth}/Panel.qml from OMARCHY_PATH unchanged and unseen, so only their popups show, and they follow Omarchy as it changes. The bar answers the calls those panels make of Omarchy's bar: requestPopout/releasePopout, notePopoutCard/popoutCardFor, clickTargets/targetBelongsToWindow, barSizeFor, switchPanelFrom, run and the tooltip calls.

The two new cards are for what Omarchy has no card for on a phone: a modem, and a clock (Omarchy's calendar doesn't fit a phone's width). They are built only from Omarchy's panel parts (Panel, KeyboardPanel, ToggleSwitch, and the label/value rows of its power card), so they look and close like the others. The mobile network card reads sitd's public state, switches mobile data with omamobile-sit data on/off, and names the carrier from sitd's operator name or, when the network sends none, from mobile-broadband-provider-info by the network code (carrier-name.py, as sitd's APN lookup does). The time card reads the zone's name and abbreviation from the system each time it opens, so a locally made zone file works, and a zone redefined under the same name shows its new abbreviation (Qt keeps a zone's data by name, so it isn't asked).

Switching cards: every item is one of the bar's click targets, so with a card open a tap on another item opens that item's card, as Omarchy's KeyboardPanel hands the tap on.

The mobile network card: carrier, Connected, a mobile data switch, a signal bar, and Network LTE-CA, Signal 32 %, Calls Yes, Texts Yes, Mobile data On The time card: Tuesday, 24 November 2026, 07:50, time zone Example/Custom Zone (+0317)

The time card above is under a zone made with zic for the test.

Run on the palmtop (a Pixel 9a, 7.3.0-rc6-omamobile-push1-daily102-gf054c72f8707, the installed shell with this change): each item opened its card; with one card open, a tap on another opened that one (the owner's taps); a pull opened quick settings and a tap on an empty part did nothing; the mobile network card named the carrier from the lookup; and the time card showed a made-up zone, the same zone redefined with another offset, and back, with the right time and abbreviation each time, with no restart.

test/all gains the checks (Omarchy's three panels loaded, five click targets, no tap on the strip, both cards on Omarchy's parts, the data switch and the zone command) and carrier-name.py against a sample providers file. test/all and tools/pr-check origin/main pass. Taking the strip's tap back fails the new case. The version is yours to set; this touches the same bar as #994 and #1010.

…as in Omarchy's bar

On a phone the whole bar was one target for quick settings, so a tap on the battery or Wi-Fi never showed what Omarchy's bar shows on a click. Each item now opens its card: Omarchy's own power, network and Bluetooth panels, loaded unchanged, and for the clock and the cellular signal, which Omarchy has no card for, two built from its panel parts. An open card hands a tap on another item to that item, and quick settings opens on a pull.
…it is one, and cuts a long name

A zone file may carry a long label where the abbreviation goes (zic warns but accepts it), and the card then repeated the name in brackets and ran past its edge. It now shows three to six characters, as POSIX abbreviations are, and cuts a long zone name at the card's edge.

@derekross derekross left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is a careful piece of work: Omarchy's own panels loaded unchanged, the bar answering exactly the calls they make, and the two new cards built from Omarchy's parts so they look and close like the others. I read the three panels in Omarchy 4.5.0-3 to see what they would bring with them. The only command they hand to bar.run is the network panel's custom DNS line, a fixed string of Omarchy's, so that path runs nothing a user could inject. The carrier lookup is local and checks its input.

Before going further I need to decide something that's mine to decide: this changes how the bar works on every phone, my Pixel 7 Pro included. A tap stops opening quick settings, and the battery, Wi-Fi and Bluetooth icons open Omarchy's desktop cards, with everything in them: power profiles, the DNS provider, Wi-Fi sharing and a speed test. Some of that I'd want to look at on a phone first; power profiles especially, since nobody has checked what "performance" does on these SoCs. I'll answer here soon, either as it is, behind a setting at first, or with some cards and not others. Whichever it is, it then waits for a run on my 7 Pro.

Two things you can look at meanwhile, if you like:

  1. #1010 reworks the same battery item, and the two conflict in Bar.qml. Whichever lands second will need a merge; I'll say which order when I decide.
  2. Your clock target reaches 8 px past the clock's right edge, which is where #994's unread count and #1014's recording chip sit. A quick tap on each, once they're in, would show which one gets the tap.

The version I'll set at merge.

@derekross

Copy link
Copy Markdown
Owner

Decision: the bar items open their cards behind a setting, off by default, until we've checked what Omarchy's power profiles ("performance" in particular) actually do on these phones. With the setting off, a tap on the bar keeps today's behaviour.

…default

Derek's call on derekross#1024: a tap on a bar item opens its card only with the bar.cardsOnTap setting on. Off, the bar behaves as on main (a tap or a pull opens quick settings). The clock's tap area now ends at the clock.
@W4HO-ham

Copy link
Copy Markdown
Contributor Author

Done: the cards are behind bar.cardsOnTap, off by default. With it off the bar behaves as on main, a tap or a pull opens quick settings. With it on, a tap on an item opens its card and a pull still opens quick settings. I merged main (with #1010's items) and moved the version to 0.2.146, since main took 0.2.145. The clock's tap area also ends at the clock now. test/all and tools/pr-check origin/main pass.

@W4HO-ham

Copy link
Copy Markdown
Contributor Author

On the power profiles: on these phones today they do nothing. power-profiles-daemon has no driver here and falls back to its placeholder, which offers only Power-saver and Balanced and changes no setting (#1027). #1045 (draft) makes all three real: the daemon's own fake driver offers Performance too, and a small service sets the CPU limits for each. On my palmtop a fixed job on a big core takes 637 ms in Power-saver, 398 ms in Balanced and 375 ms in Performance; the per-cluster limits are in the PR.

@W4HO-ham W4HO-ham changed the title omamobile-shell 0.2.145: a tap on an item in the bar opens its card, as in Omarchy's bar omamobile-shell 0.2.152: a tap on an item in the bar opens its card, as in Omarchy's bar Nov 25, 2026

@derekross derekross left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that's the decision exactly. I read the change with the setting off: every card's loader is inactive and every item's tap area is disabled, so a tap or a pull goes to the strip as it does today, and none of Omarchy's panels is loaded at all. The clock's tap area ending at the clock is good too, and thanks for taking #1010 in.

The one thing every phone still gets with the setting off is the wrapper around each status icon. By reading they sit exactly where they did, but I'll take a screenshot of the bar on my Pixel 7 Pro beside today's before merging, which is quick. Turning the cards on by default waits for the power profiles to do something real on these phones, which your #1045 is about; I'll come back to that there.

Nothing to change on the branch. The version I'll set at merge.

@derekross

Copy link
Copy Markdown
Owner

Tested on the Pixel 7 Pro (release 2026.11.24 kernel), this branch at 14fc45f3 merged with main (built locally as 0.2.156), cardsOnTap off:

  • Home-screen screenshots before and after: the status area matches (88 of about 114,000 pixels differ, from the Wi-Fi icon's level); no icon moved.
  • A tap on a status icon, a tap on an empty part of the bar, a pull from the bar and a tap on the clock each open quick settings, as before.

Passes. Main is now at 0.2.155 (#1089), so this needs a merge of main and the next free version before it lands.

@W4HO-ham W4HO-ham changed the title omamobile-shell 0.2.152: a tap on an item in the bar opens its card, as in Omarchy's bar omamobile-shell 0.2.157: a tap on an item in the bar opens its card, as in Omarchy's bar Nov 25, 2026
@W4HO-ham

Copy link
Copy Markdown
Contributor Author

Thanks for the run. I merged main (c193cfc); the only conflict was version, which is now 0.2.157. 0.2.156 is #1092's. The package's test/all and tools/pr-check pass on the merge.

@W4HO-ham

Copy link
Copy Markdown
Contributor Author

(Numbering: you gave #923 0.2.156, so this keeps 0.2.157 and #1092 moves to 0.2.158.)

@W4HO-ham

W4HO-ham commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Merged main (0.2.156, #923) into the branch; it keeps 0.2.157 and is mergeable again. Only the version file conflicted. tools/pr-check passes, and so do the package's tests, except omamobile-call-watch, which needs python-dbus and that isn't on my laptop.

W4HO-ham and others added 3 commits November 25, 2026 14:36
…s' Bluetooth panel

Omarchy's Bluetooth card neither makes the phone visible nor shows the code a pairing asks to confirm, so a car or headset couldn't be paired from the bar. The bar now opens the same panel as the Bluetooth tile's chevron, so the phone has one Bluetooth screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdTihbUaQF9HBVigJ49
…card

With mobile data switched off the bar kept full signal bars and the card said Connected beside a switch whose state was hard to read, so the owner couldn't tell data was off. The modem reports connected for the IMS bearer calls and texts keep, so omamobile-cell-watch now reports data from omamobile-sit-data.service where it is installed. The bar crosses the bars out as the Mobile data tile does, and the card says "Mobile data off" and dims its icon, as Omarchy's Wi-Fi card says "Not connected".
@W4HO-ham

Copy link
Copy Markdown
Contributor Author

One more commit on top of your merge (46162ca), from the owner's use today. With mobile data switched off, the bar kept full signal bars and the cellular card said Connected, so it wasn't clear data was off. The cause is that the modem reports connected for the IMS bearer, which calls and texts keep with data off. omamobile-cell-watch now adds data from omamobile-sit-data.service where that unit is installed, and the modem's connected state elsewhere. The bar crosses the bars out as the Mobile data tile does, and the card says "Mobile data off" with its icon dimmed, as Omarchy's Wi-Fi card says "Not connected". This one does change what every phone shows with the setting off: the crossed-out bars when mobile data is off. On the palmtop the watcher prints "state":"connected",…,"data":false with data off. test/status-model.js covers the glyph and tools/pr-check passes. test/cell-watch.py fails on the palmtop with or without this change (a JSON read in its harness), so it needs a separate look.

@derekross

Copy link
Copy Markdown
Owner

Phone test on the Pixel 7 Pro (2026-11-25) of the head 46162caa (main merged, 0.2.158): passes.

  • Bluetooth (514b4cb): with bar.cardsOnTap on, a tap on the bar's Bluetooth icon opens quick settings' own Bluetooth panel, and the battery and Wi-Fi icons still open Omarchy's cards.
  • Mobile data off (46162ca): with data switched off from the Mobile data tile, the bar crosses out the signal bars (with cardsOnTap off as well as on), and the signal card says "Mobile data off" with its icon dimmed. With data on again, omamobile-sit-data.service is active and the bars are back.
  • cardsOnTap was turned on only for the test, and the owner's shell.json was put back afterwards.

Thanks for the follow-ups. Merging.

@derekross
derekross merged commit 3525ffd into derekross:main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants