Repository navigation
feat(launcher-pass): added ydotool autotyping backend support (v2.7.0, fix #995) - #1059
Merged
Merged
Conversation
…dotool (v2.7.0) wtype is unmaintained and mistypes some punctuation sequences (atx/wtype#71, fix in the unmerged atx/wtype#77). ydotool injects through /dev/uinput via its ydotoold daemon, so it is display-server agnostic (issue noctalia-dev#995). - Type rows, Autotype and the type-* / autotype quick actions now run `ydotool type -e 0 -d <keyDelay> -- <value>`. `-e 0` is required: ydotool interprets backslash escapes in argv strings by default, which would turn a `\n` / `\t` inside a password into Enter / Tab. - Autotype separator / submit keys use `ydotool key <code>:1 <code>:0` with raw input-event keycodes (Tab 15, Enter 28) instead of wtype keysyms. - A failed run whose stderr mentions ydotoold gets a dedicated "ydotoold is not running" notification body (new notification.ydotoold-not-running key, en + it). - Setting `wtypeDelay` renamed to `keyDelay` (settings.key-delay.*); manifest dependency wtype -> ydotool; version 2.7.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replace every wtype reference with ydotool, document the ydotoold daemon / uinput requirement and the "ydotoold is not running" notification, warn about ydotool's US-layout key mapping, and note the wtypeDelay -> keyDelay setting rename. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Describe ydotoolTypeArgv / ydotoolKeyArgv / typeFailed / runTypeSteps, the mandatory `-e 0`, raw keycodes for Tab/Enter, the ydotoold and US-layout caveats, the keyDelay setting rename, and record the wtype -> ydotool design decision. The cmdline-leak open point now names the stdin path (`ydotool type -f -`) to adopt once runAsync can feed stdin. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ydotool is display-server agnostic but maps every character onto a US-layout keycode, so symbols come out wrong on other active layouts; wtype uploads its own keymap and follows any layout, but needs the Wayland virtual-keyboard protocol. Neither strictly wins, so a new `typeBackend` select setting picks the tool (default ydotool, per noctalia-dev#995). - TYPE_BACKENDS holds each backend's binary, text argv, Tab/Enter key argv and optional daemon hint; typeTextArgv / typeKeyArgv / typeFailed route every Type row, Autotype and type-* / autotype quick action through it. - typerAvailable probes the selected backend's binary (memoised per binary), so the Type / Autotype rows follow the selection. - The "ydotoold is not running" hint only applies to ydotool. - wtype is back in the manifest dependencies; en + it strings for the new setting; README / CLAUDE.md describe both backends. CLAUDE.md records that noctalia main (plugin_api 34) still has no native typing / paste path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 60 s cap
noctalia.runAsync clamps its timeout to [50 ms, 60 s] and on expiry SIGTERMs
then SIGKILLs the child's whole process group (verified in noctalia v5.2.1
and main @ 47945ec). The plugin asked for 5 min (decrypts) and 24 h (Edit),
both silently cut to 60 s: an Edit terminal was killed a minute in, losing
the unsaved buffer, and a pinentry wait past 60 s failed the action.
- New runUnbounded(argv, cb): builds a `sh -c` string from the argv (shq per
element, stdin from /dev/null, stderr to a per-call side file under
pluginDataDir), runs it with noctalia.runStream (no timeout) and appends
a per-call, per-VM marker line carrying `$?`. On the marker it calls cb
with a runAsync-shaped {exitCode, stdout, stderr, timedOut = false},
stdout rebuilt byte-exact, and removes the side file.
- pass show (detail view + withEntryData), pass -c / pass otp -c, pass otp
(Type OTP, Autotype), pass generate [-i], and both `pass edit` terminal
runs now go through it. Short runs stay on runAsync.
- Falls back to a 60 s runAsync (logged) when runStream is missing or its
4-streams-per-VM cap is hit.
- DECRYPT_TIMEOUT_MS / EDIT_TIMEOUT_MS replaced by RUNASYNC_MAX_TIMEOUT_MS
(fallback only). CLAUDE.md runtime reference corrected (runAsync clamp,
runStream, readFile / removeFile); README notes the wrapper.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The typeBackend setting now names the *preferred* backend ("Preferred typing
backend"); the other installed one is used automatically when the preferred
one is missing or can't type in this session. This keeps ydotool as the
default without breaking Type / Autotype for users who haven't set up
ydotoold but have wtype installed (and vice versa on compositors without the
virtual-keyboard protocol).
- typeBackends() lists the installed backends in try order (preferred
first); the Type / Autotype rows now show when at least one is installed.
- runTypeSteps runs backend-neutral steps ({text} / {key}) and, when step 1
fails with a backend's "unavailable" stderr (ydotool: ydotoold not
running; wtype: no virtual-keyboard protocol / no Wayland connection),
replays the whole list on the next backend. Both errors come from the
connect phase, before any key is sent, so nothing is typed twice; a
mid-chain failure still aborts. The fallback is logged, not notified.
- Failure bodies: notification.no-typing-backend when every installed
backend was unavailable, else the backend's own message
(ydotoold-not-running / new wtype-unsupported), else the entry name.
- en + it strings; README / CLAUDE.md document the fallback.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Noctalia only runs on Wayland compositors that provide the protocols wtype
relies on, so wtype has no realistic "can't type here" state:
- wtype's unavailableHints ("virtual keyboard protocol", "Wayland
connection failed") are now empty, so the automatic fallback is
ydotool → wtype only (when ydotoold is not running).
- Removed the now-unreachable notification.wtype-unsupported and
notification.no-typing-backend strings (en, it); an unavailable backend
with nothing left to try reports its own unavailableKey.
- Dropped the "any compositor" / "virtual-keyboard protocol" wording from
comments, the typeBackend setting description and option labels, the
README backend table and CLAUDE.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… row The Autotype row subtitle now names the backend that will be tried first (typeBackends()[1]: the preferred one if installed, else the other), e.g. "Type username, password, and OTP in sequence with ydotool", so the user can see which tool — and therefore which layout behaviour — applies. A runtime fallback (ydotoold not running) is only discovered when the action runs, so it isn't reflected here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every Type row (password, OTP, username, fields) now appends the backend
that will be tried first to its subtitle via the new action.type-subtitle
key ("{subtitle} · {backend}"), e.g. "jdoe · ydotool", matching the
Autotype row. type-password-desc is shortened to "Type password" since
the backend name now follows it ("Type password · wtype"). Copy rows are
unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ydotool 1.0.4 prints "failed to connect socket … Please check if ydotoold is running." on stdout, not stderr (verified: exit 2, empty stderr). backendUnavailable only searched stderr, so a stopped daemon was treated as a generic failure: no fallback to wtype, and the type-failed notification showed the entry name instead of "ydotoold is not running". Unavailable hints are now matched against stdout and stderr, and the fallback log line includes both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
backendInstalled and detectedTerminal memoised their PATH scan for the whole plugin session, so installing / removing ydotool or wtype (or the terminal) was only noticed after a plugin reload: removed tools kept their Type rows and a restored one stayed hidden. That contradicted the documented "missing preferred backend → the other is used" behaviour. Both probes are now cached for PROBE_TTL_MS (2 s) only. Rendering one view still shares a single scan, and a change shows up on the next view without a reload. commandExists is a few access() calls per PATH entry, so the re-probe is cheap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Type / Autotype subtitles named the preferred backend even when
ydotoold wasn't running, although the action would then fall back to
wtype. They now name the backend that will actually type.
probeYdotoold runs `ydotool debug`, which connects to the daemon socket
before doing anything and sends no input events: exit 0 when ydotoold
answers, exit 2 with "Please check if ydotoold is running." on stdout when
not (verified against a live daemon and a bogus YDOTOOL_SOCKET). Checking
the socket file isn't enough: a stopped daemon leaves it behind
("Connection refused"). The probe is async and cached for PROBE_TTL_MS; it
is kicked from renderDetailRows, and when the shown backend flips, the open
detail view is re-rendered from the warm cache.
Display only: actions still try the preferred backend first and fall back
on its real connect error, so a daemon started meanwhile is used at once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
mellotanica
marked this pull request as ready for review
October 18, 2026 19:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin
launcher-pass
Id:
mellotanica/launcher-passNew plugin
Update to an existing plugin (version bumped in
plugin.toml)What it does
Browse a GNU Pass password store from the
Noctalia launcher and copy or auto-type passwords, OTP codes, usernames, and any
other field — without opening a terminal.
Added ydotool autotype backend support, setting field choosing preferred method and automatic fallback to available backend if selected one is not available.
Updated terminal actions (edit) using proper api function no longer quitting for timeout.
External dependencies
pass,envandpass-otpto retrieve password contentsfind,grepandheadto build and prefilter the a password store index cache used to provide the launcher content listsleepto implement timeouts on external actions (give time to the pinentry program to show up and unlock password store, or wait for the focus to return to the previous spot before autotyping)wtypeorydotoolto perform password content autotyping (optional)Testing
I run all previous execution paths after the full update, tested each new feature while adding them, switching the new preferred method setting to all values to ensure all behave properly, installed and uninstalled both ydotool and wtype in different combinations to test all execution paths.
Screenshots / Videos
None
Checklist
Ready-for-review requirement: Every box in this section must be checked. If any statement is not true, keep the
pull request as Draft. An explanation does not replace a required check.
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows theREADME template, documents
every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.
thumbnail.webpis present and relevant; for a new plugin I created it with the thumbnail generator, and for an update I regenerated it with the generator if the visual identity or user-facing appearance changed.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.understand that language well enough to review and maintain it (no unreviewed machine/LLM translations).
catalog.toml; CI generates it.Code review attestation
Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:
Ready-for-review requirement: Every attestation below must be checked.
licensedeclared inplugin.toml.