I got sick of not having a simple solution to take screenshots and screencasts.
Plus, there's so many different things I might want to do I struggle to find key bindings for all of them. So, I created a script to show and execute various screen capture related commands in Rofi.
- Capture a region to the clipboard or a directory
- Capture the whole screen to the clipboard or a directory
- Record a specific region and save as a gif or MP4
- Record the whole screen and save as a gif or MP4
Make sure you have the required dependencies installed.
Download the rofi-screenshot source code, save as rofi-screenshot and make it executable
$ curl -L https://git.io/rofi-screenshot > rofi-screenshot && chmod u+x rofi-screenshot
Then move rofi-screenshot to somewhere in your $PATH for example:
$ sudo mv rofi-screenshot /usr/local/bin/
Show the rofi menu
$ rofi-screenshot
Stop recording
$ rofi-screenshot -s
Tip: Add a keybinding for both of the above commands
By default files will be stored in $XDG_PICTURES_DIR/Screenshots
, which typically means ~/Pictures/Screenshots
.
Use $ROFI_SCREENSHOT_DIR
environment variable to override this default.