From cd9d6bb54b9feb26cb5852ceb6bb497db028b1de Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 9 May 2026 11:20:36 +0200 Subject: [PATCH 1/4] Screenshot on visual changes --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index cc9ec853..013f3303 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -92,6 +92,10 @@ Exceptions are allowed for bootstrap, preflight, migration, and package-helper s - `default/themed/*.tpl` - templates with `{{ variable }}` placeholders for theme colors - `themes/*/colors.toml` - theme color definitions (accent, background, foreground, color0-15) +# Visual Changes + +When making visual changes, such as Waybar styles or desktop appearance, always take and analyze a screenshot after applying the change to verify the result. Use `omarchy capture screenshot fullscreen` for fullscreen screenshots. + # Refresh Pattern To copy a default config to user config with automatic backup: From 10c42afcf25163d78663e59f02f6de82db07ea0f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 9 May 2026 11:40:31 +0200 Subject: [PATCH 2/4] Echo result so agents can use them and keep working with them --- bin/omarchy-capture-screenrecording | 1 + bin/omarchy-capture-screenshot | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/omarchy-capture-screenrecording b/bin/omarchy-capture-screenrecording index 5636bb9e..75a5c207 100755 --- a/bin/omarchy-capture-screenrecording +++ b/bin/omarchy-capture-screenrecording @@ -233,6 +233,7 @@ stop_screenrecording() { else finalize_recording local filename=$(cat "$RECORDING_FILE" 2>/dev/null) + echo "$filename" local preview="${filename%.mp4}-preview.png" # Generate a preview thumbnail from the first frame diff --git a/bin/omarchy-capture-screenshot b/bin/omarchy-capture-screenshot index 627eda07..9a27bfd0 100755 --- a/bin/omarchy-capture-screenshot +++ b/bin/omarchy-capture-screenshot @@ -128,6 +128,7 @@ FILEPATH="$OUTPUT_DIR/$FILENAME" if [[ $PROCESSING == "slurp" ]]; then grim -g "$SELECTION" "$FILEPATH" || exit 1 + echo "$FILEPATH" wl-copy <"$FILEPATH" ( From 9a2c53d571aaa56ddfb18b1cc894a43d47fb4364 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 9 May 2026 12:04:34 +0200 Subject: [PATCH 3/4] Add save as an option for agents --- bin/omarchy-capture-screenshot | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/bin/omarchy-capture-screenshot b/bin/omarchy-capture-screenshot index 9a27bfd0..572330f7 100755 --- a/bin/omarchy-capture-screenshot +++ b/bin/omarchy-capture-screenshot @@ -2,7 +2,7 @@ # omarchy:summary=Take a screenshot # omarchy:group=capture -# omarchy:args=[smart|region|windows|fullscreen] [slurp|copy] [--editor=] +# omarchy:args=[smart|region|windows|fullscreen] [slurp|copy|save] [--editor=] # omarchy:examples=omarchy screenshot | omarchy capture screenshot region # omarchy:aliases=omarchy screenshot @@ -126,15 +126,22 @@ esac FILENAME="screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png" FILEPATH="$OUTPUT_DIR/$FILENAME" -if [[ $PROCESSING == "slurp" ]]; then - grim -g "$SELECTION" "$FILEPATH" || exit 1 - echo "$FILEPATH" - wl-copy <"$FILEPATH" +case "$PROCESSING" in + slurp) + grim -g "$SELECTION" "$FILEPATH" || exit 1 + echo "$FILEPATH" + wl-copy <"$FILEPATH" - ( - ACTION=$(notify-send "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 -i "$FILEPATH" -A "default=edit") - [[ $ACTION == "default" ]] && open_editor "$FILEPATH" - ) & -else - grim -g "$SELECTION" - | wl-copy -fi + ( + ACTION=$(notify-send "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 -i "$FILEPATH" -A "default=edit") + [[ $ACTION == "default" ]] && open_editor "$FILEPATH" + ) >/dev/null 2>&1 & + ;; + copy) + grim -g "$SELECTION" - | wl-copy + ;; + save) + grim -g "$SELECTION" "$FILEPATH" || exit 1 + echo "$FILEPATH" + ;; +esac From 2e0e9af0a9ff7c621c68a2f051e281515c5e607d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 9 May 2026 12:04:53 +0200 Subject: [PATCH 4/4] Use save for screenshot --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 013f3303..7d61ac11 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -94,7 +94,7 @@ Exceptions are allowed for bootstrap, preflight, migration, and package-helper s # Visual Changes -When making visual changes, such as Waybar styles or desktop appearance, always take and analyze a screenshot after applying the change to verify the result. Use `omarchy capture screenshot fullscreen` for fullscreen screenshots. +When making visual changes, such as Waybar styles or desktop appearance, always take and analyze a screenshot after applying the change to verify the result. Use `omarchy capture screenshot fullscreen save` for fullscreen screenshots. # Refresh Pattern