Repository navigation
Conversation
scottjones
left a comment
There was a problem hiding this comment.
The --show-keystrokes work here is good. Ownership by PID plus start time, the handoff to a detached watchdog, and cleanup on every exit path are all exercised by real tests that spawn stub processes and check what got killed. screenrecording-test.sh and menu-test.sh pass on this branch, and showmethekey is in extra for aarch64, so the install hint is right.
I would like the PR split, though.
bug: bin/omarecord and the OmaRecord rebrand. AGENTS.md says every command starts with omarchy-, and this is the first file in bin/ that does not. The rename also rewrites lines that upstream owns — origin/quattro still has "Screenrecording" in utilities.lua and "Stop Screenrecording" in omarchy-menu.jsonc — so media.lua, utilities.lua, the menu, and two manual pages would conflict on every merge for a naming change. Please drop the rebrand and the wrapper and keep the keystroke overlay as its own PR; I will merge that gladly.
bug: the when guard on the stop entry still only matches gpu-screen-recorder, so it never appears on Apple Silicon where wf-recorder runs. Inline.
nit: handoff_keystroke_overlay clears every trap with trap - EXIT HUP INT TERM; fine today because the script sets no others, but brittle.
nit: the test builds keystroke_state from $XDG_RUNTIME_DIR while the script uses ${XDG_RUNTIME_DIR:-/tmp}, so they diverge when it is unset.
| @@ -0,0 +1,2 @@ | |||
| #!/bin/bash | |||
| exec "$OMARCHY_PATH/bin/omarchy-capture-screenrecording" "$@" | |||
There was a problem hiding this comment.
bug: AGENTS.md — "All commands start with omarchy-". This is the only file in bin/ that does not, and the menu and manual now depend on it. Please drop it; omarchy screenrecord and omarchy capture screenrecording already route here.
| "trigger.capture.screenshot": {"icon":"","label":"Screenshot","action":"omarchy-capture-screenshot"}, | ||
| "trigger.capture.screenrecord.stop": {"icon":"","label":"Stop Screenrecording","when":"pgrep -f '^gpu-screen-recorder'","action":"omarchy-capture-screenrecording --stop-recording"}, | ||
| "trigger.capture.screenrecord": {"icon":"","label":"Screenrecord"}, | ||
| "trigger.capture.screenrecord.stop": {"icon":"","label":"Stop OmaRecord","when":"pgrep -f '^gpu-screen-recorder'","action":"omarecord --stop-recording"}, |
There was a problem hiding this comment.
bug: pgrep -f '^gpu-screen-recorder' never matches on Apple Silicon, where this script picks wf-recorder, so "Stop" is missing from the menu there. RECORDER_PROCESS_RE in the script already has the right pattern: ^(gpu-screen-recorder|wf-recorder).
| setsid -f "$0" --keystroke-overlay-watchdog="$overlay_pid:$overlay_started_at:$recorder_pid:$recorder_started_at" </dev/null &>/dev/null || return 1 | ||
|
|
||
| KEYSTROKE_OVERLAY_STARTUP_OWNED="false" | ||
| trap - EXIT HUP INT TERM |
There was a problem hiding this comment.
nit: this resets every trap, not just the ones start_keystroke_overlay installed. Safe because the base script sets none, but the next person to add an EXIT trap will lose it here.
|
Please keep the keystroke overlay but drop the OmaRecord rename and wrapper. Also take #374's recorder matcher so Stop appears for wf-recorder on Apple Silicon; the current guard still only sees gpu-screen-recorder. |
|
Needs work. Regular recording produced a finalized, decodeable MP4, but the keystroke overlay cannot be installed through the documented |
Summary
omarecordcommand and matching menu and hotkey labels--show-keystrokesusing Show Me The KeyVerification
bash test/shell.d/screenrecording-test.shbash test/shell.d/menu-test.shbin/omarchy commands --check(454 commands)bin/omarchy-*commands./test/allcompleted with six failures outside the changed files:bin-style-test.sh,config-test.sh,launch-about-test.sh,monitor-recovery-test.sh,theme-install-guards-test.sh, andunowned-system-paths-test.sh