Skip to content

screenshot, clipboard: add --copy and --clear flags#118

Open
Qbushey wants to merge 1 commit into
caelestia-dots:mainfrom
Qbushey:screenshot-clipboard-flags
Open

screenshot, clipboard: add --copy and --clear flags#118
Qbushey wants to merge 1 commit into
caelestia-dots:mainfrom
Qbushey:screenshot-clipboard-flags

Conversation

@Qbushey

@Qbushey Qbushey commented Jun 11, 2026

Copy link
Copy Markdown

Closes #57, closes #65

Two small quality-of-life flags:

caelestia screenshot -c/--copy — copy the screenshot to the clipboard instead of opening it.

  • For interactive region selection (-r with no value) this calls the shell picker's existing openClip/openFreezeClip IPC functions (combines with -f/--freeze as expected), so the behaviour matches the picker's clipboard-only mode.
  • For an explicit region (-r <geometry>) the grim output is piped to wl-copy and a notification is sent, instead of opening swappy.
  • Fullscreen screenshots already copy to the clipboard, so they are unchanged.

caelestia clipboard -c/--clear — runs cliphist wipe to clear the whole clipboard history, instead of deleting entries one by one with -d.

Fish completions are updated for both flags (and a cliboard typo in an existing completion description is fixed). No changes to existing behaviour.

screenshot -c/--copy copies the capture to the clipboard instead of
opening it (uses the shell picker openClip/openFreezeClip IPC for
interactive region selection, wl-copy for explicit regions).
clipboard -c/--clear wipes the cliphist history.

Closes caelestia-dots#57, closes caelestia-dots#65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Clipboard management [FEATURE] Screenshot directed to clipboard instead of opening

1 participant