Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add screenshot mode menu #131

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

FilippoBonazziSUSE
Copy link
Collaborator

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 outputs
  • s prompts the user to select a window and takes a screenshot of that
  • a prompts the user to select a rectangular area and takes a screenshot of that
  • w takes a screenshot of the window currently under focus
  • o takes a screenshot of the output currently under focus

Pressing <option> saves the screenshot into a 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 (from man grim).

Pressing Ctrl+<option> writes the screenshot to the clipboard instead.

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.

2 participants