Let screenshots skip the file and go clipboard-only - #9714
Open
gabrielforster wants to merge 1 commit into
Open
Conversation
Print Screen always wrote a PNG next to the clipboard copy, so people who only ever paste their screenshots accumulated a directory they never look at. OMARCHY_SCREENSHOT_SAVE_FILE=false keeps the clipboard copy and drops the file, and the notification loses the editor action since there is nothing on disk to open. Only an explicit "false" turns saving off, and the positional copy/save arguments still mean what they say.
gabrielforster
force-pushed
the
screenshot-save-file-config
branch
from
September 2, 2026 01:23
63ccc43 to
e3d827d
Compare
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.
What
Print Screenalways writes a PNG next to the clipboard copy. For people who only ever paste their screenshots, that's a pictures directory that fills up with files nobody opens, and today the only way out is to rebind the key toomarchy capture screenshot smart copy— which also loses the notification.This adds
OMARCHY_SCREENSHOT_SAVE_FILE. Set it tofalseand the default flow copies to the clipboard without writing anything:export OMARCHY_SCREENSHOT_SAVE_FILE=falseDetails
falseturns saving off, so a typo can't silently discard screenshots.copy/savearguments are untouched —omarchy capture screenshot fullscreen savestill writes a file with saving turned off.~/Picturesbehind.default/uwsm/defaultexample next toOMARCHY_SCREENSHOT_DIR.Testing
test/shell.d/screenshot-save-file-test.shstubs the compositor, picker, clipboard and notifier and covers: default still saves,falsewrites no file and creates no directory,falsestill copies to the clipboard, an explicitsaveargument overrides it, and an unrecognized value keeps saving on../test/cliclean;./test/shellhas the same 4 failures on this branch as onquattro(config,runtime-smoke,snapper,unowned-system-paths— all environment-related and unrelated to this change).OMARCHY_SCREENSHOT_SAVE_FILE=falsethe shot landed on the clipboard asimage/pngwith no file and no directory created, and the "Screenshot copied to clipboard" notification rendered; the default run wrote the file as before.Notes
OMARCHY_SCREENSHOT_DIRfor where, discussion I take a screenshot. I edit and hit save. The new image doesn't get saved to clipboard. #5366 asks for more clipboard behavior after editing.🤖 Generated with Claude Code