From adca719e334ea02f19ceb61f9b0a7ec713b52307 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Feb 2026 16:22:18 +0100 Subject: [PATCH 1/3] Use h264 for better compatibility when sharing videos with mac --- bin/omarchy-cmd-screenrecord | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-cmd-screenrecord b/bin/omarchy-cmd-screenrecord index 89221a78..4b1d5e6d 100755 --- a/bin/omarchy-cmd-screenrecord +++ b/bin/omarchy-cmd-screenrecord @@ -86,7 +86,7 @@ start_screenrecording() { [[ -n $audio_devices ]] && audio_args+="-a $audio_devices" - gpu-screen-recorder -w portal -f 60 -fallback-cpu-encoding yes -o "$filename" $audio_args -ac aac & + gpu-screen-recorder -w portal -k h264 -f 60 -fallback-cpu-encoding yes -o "$filename" $audio_args -ac aac & toggle_screenrecording_indicator } From 5a2ec94a93b47939a01835c748d180456009b144 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Feb 2026 16:22:37 +0100 Subject: [PATCH 2/3] Trim the first 100ms of the video to avoid the noise problem --- bin/omarchy-cmd-screenrecord | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bin/omarchy-cmd-screenrecord b/bin/omarchy-cmd-screenrecord index 4b1d5e6d..d9dbdcc7 100755 --- a/bin/omarchy-cmd-screenrecord +++ b/bin/omarchy-cmd-screenrecord @@ -90,6 +90,18 @@ start_screenrecording() { toggle_screenrecording_indicator } +trim_first_frame() { + local latest=$(ls -t "$OUTPUT_DIR"/screenrecording-*.mp4 2>/dev/null | head -1) + if [[ -n $latest ]]; then + local trimmed="${latest%.mp4}-trimmed.mp4" + if ffmpeg -y -ss 0.1 -i "$latest" -c copy "$trimmed" -loglevel quiet 2>/dev/null; then + mv "$trimmed" "$latest" + else + rm -f "$trimmed" + fi + fi +} + stop_screenrecording() { pkill -SIGINT -f "^gpu-screen-recorder" # SIGINT required to save video properly @@ -106,6 +118,7 @@ stop_screenrecording() { notify-send "Screen recording error" "Recording process had to be force-killed. Video may be corrupted." -u critical -t 5000 else cleanup_webcam + trim_first_frame notify-send "Screen recording saved to $OUTPUT_DIR" -t 2000 fi toggle_screenrecording_indicator From 1c527e0cd70d3b318556729bb6ac5d1e52251eea Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Feb 2026 16:31:29 +0100 Subject: [PATCH 3/3] Fix perms --- install/config/increase-file-watchers.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 install/config/increase-file-watchers.sh diff --git a/install/config/increase-file-watchers.sh b/install/config/increase-file-watchers.sh old mode 100755 new mode 100644