Added screenshot utility for Hyprland #45
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.
Description:
This pull request introduces a customizable screenshot utility for Hyprland using a single script named
screenshot. The script leverages thegrimtool and other utilities likeslurp,swappy, andhyprpicker. It allows users to take screenshots with various configurations, save them to their preferred location, copy them to the clipboard, or edit them interactively.Features:
rc): Allows the user to select a screen region for capturing usingslurp, and copies it to the clipboard.rf,sf): Captures the entire screen and saves the image to the~/Pictures/Screenshotsfolder with a timestamped filename.ri,si): Takes a screenshot and lets the user edit it usingswappy.sc): Captures the full screen and copies it directly to the clipboard.p): Captures a pixel color usinghyprpickerand copies it to the clipboard.Key Bindings:
Changes:
screenshotscript to handle different screenshot actions based on input arguments (region, full screen, clipboard, interactive).Screenshotsfolder if it doesn't exist and saves images with timestamps.Why:
This utility provides a flexible and easy-to-use way to take, save, and manage screenshots on Hyprland. It leverages existing tools like
grim,slurp, andswappy, allowing users to capture screenshots with a range of options and store them efficiently.Testing: