Skip to content

omamobile-shell 0.2.88, omamobile-apps 0.2.2, omamobile-omarchy 0.1.30: a screenshot's tap opens it in Loupe, images open in a touch viewer - #362

Merged
derekross merged 5 commits into
mainfrom
phone-screenshots-images
Nov 3, 2026
Merged

derekross merged 5 commits into
mainfrom
phone-screenshots-images

Conversation

@derekross

@derekross derekross commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

On the 7 Pro (2026-11-02), tapping a screenshot's toast opened Tensaku as an 814x936 float on the 480 px wide screen. The screenshot was cut off and the on-screen keyboard came up over it. Omarchy's image viewer, imv, doesn't respond to the touchscreen at all.

Screenshot flow: the toast's tap opens Loupe

Omarchy never opens Tensaku by itself. omarchy-capture-screenshot saves the file to ~/Pictures, copies it to the clipboard and shows a toast with the thumbnail. The toast's one click action runs $OMARCHY_SCREENSHOT_EDITOR <saved file>.

Tested on the phone: Tensaku isn't usable by touch even maximized (most of the image out of view, no pan or zoom). So on the phone environment.d/30-omamobile-screenshot.conf sets OMARCHY_SCREENSHOT_EDITOR=omamobile-screenshot-open. That wrapper runs loupe <file> (fitted, with touch zoom, pan and swipe, plus Loupe's copy, share and delete). Without Loupe it falls back to Tensaku through omamobile-screenshot-edit. Patch 0020's phone wording for the toast becomes "Tap to view" (was "Tap to edit"); it still applies with --fuzz=0, hence omamobile-omarchy 0.1.30. Separate Edit and Share buttons would still need a notification patch, since Omarchy's toasts carry one action.

Tensaku when it is opened (Open With, the drawer, or no Loupe)

  • Why it floated: default/hypr/apps/system.lua floats dev.tensaku.Tensaku by class (float = true, center = true). It doesn't use the floating-window tag, so phone.lua's tag drop missed it. phone.lua now gives it float = false, maximize = true (the Nautilus pattern). There's a check for it in test/phone-rules.lua.
  • Fit: the cut-off image was the float being wider than the screen. Maximized, the canvas gets the screen. Tensaku has no fit-to-window flag or config key; its zoom indicator has a fit button.
  • Keyboard: Tensaku's window takes focus through a GTK input-method context. With the session's GTK_IM_MODULE=wayland, that focus asks for text input straight away, so squeekboard shows. omamobile-screenshot-edit (the fallback) runs Omarchy's tensaku-edit with GTK_IM_MODULE=gtk-im-context-simple, so there's no text-input request. Keys still arrive as key events, so the text tool works with the keyboard shown by hand (double-tap the pill, or the Keyboard tile). omamobile-setup-user gives Tensaku's own entry (drawer, Loupe's Open With) the same context once, through a copy in the user's applications.
  • Toolbar: Tensaku has no compact or wrapping layout option. Nothing to change on our side. It should be less cramped at full width than it was in the off-screen float.

Image viewer

  • The drawer's "Image Viewer" is Omarchy's imv.desktop (skeleton copy in ~/.local/share/applications; imv %F). imv already fits by default (scaling_mode = full), and on the phone it's maximized (the tag drop). But imv-wayland binds no wl_touch: only pointer and touchpad gestures. So on a touchscreen there's no pan, zoom or next image, and no config can add that.
  • omamobile-apps 0.2.2: loupe becomes a dependency (the gallery choice in TELEPHONY-APPS-PLAN; omacam already offers it). /etc/xdg/mimeapps.list makes org.gnome.Loupe.desktop;imv.desktop; the default for Omarchy's six image types. That list is read before Omarchy's /usr/share/applications/mimeapps.list and after the user's own lists. imv is the fallback when Loupe is missing. Loupe fits the image to the window and handles pinch and double-tap zoom and swiping to the next image. The general maximize rule covers its window.
  • omamobile-shell 0.2.88: omamobile-setup-user hides the user's imv "Image Viewer" copy once, and only while Loupe is installed, so the drawer lists one Image Viewer. imv stays installed.

Versions

Shell 0.2.88: 0.2.83/0.2.85/0.2.86 are taken by #357/#358/#359, and 0.2.87 is held for the weather-widgets PR. omamobile-apps 0.2.2 (#361 takes 0.2.1 and merges first; expect a small rebase). omamobile-omarchy 0.1.30 (0.1.29 is #357).

Tests

packages/omamobile-shell/test/all (phone-rules check, the wrappers against fake loupe and tensaku-edit, the Tensaku entry override, the install staging, setup-user hiding imv once and keeping a user's choice), packages/omamobile-apps/test/all, packages/omamobile-omarchy/test/all (0020 against the real Omarchy), tests/all and tools/pr-check origin/main: all pass. Not tried on the phone. I didn't run a nested Hyprland.

On the phone

  1. Rebuild and install omamobile-apps, omamobile-omarchy and omamobile-shell, check pacman -Q, then log out and in (environment.d). systemctl --user show-environment | grep SCREENSHOT should show the wrapper.
  2. Take a screenshot (Power + Volume Down): the toast says "Tap to view". Tap it: the screenshot opens in Loupe, fitted, maximized; pinch and double-tap zoom, drag to pan, and copy, share and delete work.
  3. From Loupe, Open With > Tensaku: Tensaku fills the screen with no keyboard. Show the keyboard by hand for the text tool; if keys don't reach it, drop the GTK_IM_MODULE setting.
  4. If Tensaku still floats, it is resizing itself after mapping: report hyprctl clients for it.
  5. Open a photo from Files: Loupe, fitted; pinch, double-tap, swipe to the next. One "Image Viewer" in the drawer.
  6. loupe 51.1-1 installs for aarch64 from Arch Linux ARM extra (checked in the project build container, pacman -Sp).

🤖 Generated with Claude Code

https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d

derekross and others added 3 commits November 2, 2026 18:24
Omarchy's image viewer, imv, reads no touchscreen input at all (its
Wayland backend has only pointer and touchpad gestures), so on the phone
an image it opened could be neither zoomed nor paged. GNOME Loupe fits
each image to the window and takes pinch and double-tap zoom and a
swipe to the next image; it is also the gallery the owner chose in
TELEPHONY-APPS-PLAN (and omacam's gallery button already offers it).

Loupe becomes a dependency, and /etc/xdg/mimeapps.list makes it the
default for Omarchy's six image types. That list is read before
Omarchy's /usr/share/applications/mimeapps.list and after the user's
own lists, so a user's choice still wins, and each entry names imv
after Loupe, so images still open while Loupe is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
…, one Image Viewer

A screenshot's toast ("Tap to edit") opens Omarchy's editor, Tensaku.
On the phone it came up as an 814x936 float on a 480 px wide screen,
with the screenshot cut off and the on-screen keyboard over it.

Omarchy floats Tensaku by class (default/hypr/apps/system.lua), not
through the floating-window tag phone.lua drops, so the maximize rule
didn't take. phone.lua now tiles and maximizes dev.tensaku.Tensaku, as
it does for Nautilus, and the canvas gets the screen.

The keyboard came from Tensaku's window taking focus through a GTK
input-method context: with the session's GTK_IM_MODULE=wayland that
asks for text input at once. OMARCHY_SCREENSHOT_EDITOR (Omarchy's own
setting, environment.d/30-omamobile-screenshot.conf) now names
omamobile-screenshot-edit, which runs Omarchy's tensaku-edit with GTK's
simple context: no text-input request, so the keyboard stays down, and
the text tool still takes keys from a keyboard shown by hand.

With omamobile-apps 0.2.1, Loupe's "Image Viewer" sits next to Omarchy's
imv entry of the same name in the drawer; omamobile-setup-user hides
the imv copy in the user's applications once, while Loupe is installed.

The screenshot flow itself stays Omarchy's: saved to ~/Pictures, copied
to the clipboard, a toast with the thumbnail, and the editor only on a
tap. Omarchy's notifications carry one click action, so separate Edit
and Share buttons would need a notification patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
#361 (phone apps in the image) also takes 0.2.1 and merges first, so the
Loupe default moves to 0.2.2. Checked in the Arch Linux ARM build
container: loupe 51.1-1 installs for aarch64 from extra.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
@derekross derekross changed the title omamobile-shell 0.2.88, omamobile-apps 0.2.1: screenshots edit full screen without the keyboard, images open in a touch viewer omamobile-shell 0.2.88, omamobile-apps 0.2.2: screenshots edit full screen without the keyboard, images open in a touch viewer Nov 2, 2026
…opens it in Loupe

On the phone, Tensaku can't be used by touch even maximized: most of the
image is out of view, and it can be neither panned nor zoomed. So the
screenshot toast's tap now opens the saved screenshot in Loupe, which
fits it and takes pinch, double-tap, pan and swipe, and offers copy,
share and delete.

OMARCHY_SCREENSHOT_EDITOR stays the hook: it now names
omamobile-screenshot-open, which Omarchy runs with the saved file's path
and which runs `loupe <file>`, or, without Loupe, Tensaku through
omamobile-screenshot-edit as before. Tensaku opened another way (the
drawer, Loupe's Open With) keeps the maximize rule, and
omamobile-setup-user gives its entry GTK's simple input-method context
once, so the keyboard stays down there too.

Patch 0020's touch wording for Omarchy's "Edit with ... (or click this)"
becomes "Tap to view" (was "Tap to edit"); it still applies to Omarchy
4.0.6 with --fuzz=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
@derekross derekross changed the title omamobile-shell 0.2.88, omamobile-apps 0.2.2: screenshots edit full screen without the keyboard, images open in a touch viewer omamobile-shell 0.2.88, omamobile-apps 0.2.2, omamobile-omarchy 0.1.30: a screenshot's tap opens it in Loupe, images open in a touch viewer Nov 2, 2026
derekross added a commit that referenced this pull request Nov 2, 2026
…le, not "after the firmware"

When the sensor isn't ready, setup now tells the three cases apart: the unit
failed or was refused on this boot ("unavailable on this boot", with the
journal to read, and the PIN unlocks), Google's files aren't there yet
("ready once your phone's firmware is added"), or it is still starting
(offered at the next login). Before, a refused unit was blamed on missing
firmware. Renumbered from 0.2.85: main is at 0.2.86, #362 holds 0.2.88, and
0.2.87 is left for #357.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
# Conflicts:
#	packages/omamobile-apps/PKGBUILD
#	packages/omamobile-apps/test/all
#	packages/omamobile-apps/version
#	packages/omamobile-shell/version
@derekross
derekross merged commit 31fbcf9 into main Nov 3, 2026
2 checks passed
@derekross
derekross deleted the phone-screenshots-images branch November 3, 2026 00:05
derekross added a commit that referenced this pull request Nov 3, 2026
… the Open-Meteo copies

From the review of #366:

- Today showed visibility about 3.3 times too large in imperial mode:
  with precipitation_unit=inch Open-Meteo answers visibility in feet
  (hourly_units.visibility "ft"). Today now converts from the unit the
  answer reports; wind and rain come in the units asked for and pressure
  is always hPa. The test has a feet fixture and a metres one.
- "Town, Region" now picks the place as omamobile-weather's pick_place
  does (each part after a comma, US state codes read as states), since
  the lock screen reads Today's city too: "Springfield, IL" is Illinois
  in both. The test runs pick_place on the same answers.
- Not every copy asks for approval again: approvals compare command
  strings, and air and pollen and planes overhead kept theirs. The
  package README and the owl-review note now say which five ask.
- overrides/LICENSE carries the store's MIT licence, and each copy's
  first line names the store file and commit it was modified from.
- Omaprayer's "auto" asks for a city instead of showing Jakarta's
  prayer times.
- A comment says why the geocoding and first forecast requests always
  go out (the fixed host the approval sheet names).

omamobile-shell takes 0.2.90: main has 0.2.88 (#362) and #358 holds
0.2.89.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
robertzas pushed a commit to robertzas/omarchy-mobile that referenced this pull request Nov 14, 2026
…0: a screenshot's tap opens it in Loupe, images open in a touch viewer (derekross#362)

On the phone a screenshot's toast now says "Tap to view" and opens the shot in Loupe (touch zoom, pan, share, delete); Tensaku, a desktop editor, is only the fallback when Loupe is missing. Tensaku opened any other way is maximized (Omarchy floats it by class) and runs without asking for text input, so the on-screen keyboard stays down. Loupe becomes the default image viewer (omamobile-apps depends on it; /etc/xdg/mimeapps.list), and imv's duplicate drawer entry is hidden once. omamobile-shell 0.2.88, omamobile-apps 0.2.2, omamobile-omarchy 0.1.30 (patch 0020 wording).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
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.

1 participant