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.
This adds a screenshot mode menu instead of the individual screenshot options. The mode menu can be opened with
$mod+Print
and displays this text:Screenshot: (f) full, (s) select window, (a) select area, (w) focused window, (o) focused output [Ctrl+ saves to clipboard]
The text is a bit long, and might not display fully in the bar depending on leftover space. Hovering over the menu text displays a tooltip with the full text, however.
The options should be quite intuitive.
f
takes a screenshot of all visible outputss
prompts the user to select a window and takes a screenshot of thata
prompts the user to select a rectangular area and takes a screenshot of thatw
takes a screenshot of the window currently under focuso
takes a screenshot of the output currently under focusPressing
<option>
saves the screenshot intoa timestamped file name in $GRIM_DEFAULT_DIR [...]. If $GRIM_DEFAULT_DIR is not set, it falls back first to $XDG_PICTURES_DIR and then to the current working directory
(fromman grim
).Pressing
Ctrl+<option>
writes the screenshot to the clipboard instead.