Repository navigation
omamobile-shell 0.2.157: a tap on an item in the bar opens its card, as in Omarchy's bar - #1024
Conversation
…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
left a comment
There was a problem hiding this comment.
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:
- #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. - 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.
|
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.
|
Done: the cards are behind |
|
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. |
derekross
left a comment
There was a problem hiding this comment.
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.
|
Tested on the Pixel 7 Pro (release 2026.11.24 kernel), this branch at
Passes. Main is now at 0.2.155 (#1089), so this needs a merge of main and the next free version before it lands. |
…ow); bar cards after it
|
Merged main (0.2.156, #923) into the branch; it keeps 0.2.157 and is mergeable again. Only the version file conflicted. |
…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
514b4cb to
0794e9a
Compare
…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".
|
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. |
|
Phone test on the Pixel 7 Pro (2026-11-25) of the head
Thanks for the follow-ups. Merging. |
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.
CellularPanel.qml: carrier, state, a mobile data switch, the signal, whether calls, texts and mobile data workTimePanel.qml: day, date, time and time zoneOmarchy's panels are Omarchy's files. The bar loads
plugins/panels/{power,network,bluetooth}/Panel.qmlfromOMARCHY_PATHunchanged 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,runand 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 withomamobile-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
KeyboardPanelhands the tap on.The time card above is under a zone made with
zicfor 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/allgains 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) andcarrier-name.pyagainst a sample providers file.test/allandtools/pr-check origin/mainpass. 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.