Script for taking screenshots on minimalist Linux distributions. Now with support for wlroots based wayland compositors (such as Sway)
Forked from rofi-screenshot.
- Using rofi to display screenshot taking menu
- Allows to take screenshot of whole screen, only selected region (region can be selected using mouse)
- In the wayland version, screenshots can also be taken of selected window (using mouse), or the currently active monitor.
- Saving image as JPG, PNG or copying screenshot to clipboard
Before you use this application, you need to install the following dependencies - either using your package manager (like apt, pacman) or by manually compiling source codes.
The following dependencies are required for Wayland version:
- rofi (for displaying menus)
- grimshot (for taking the screenshot)
- imagemagick (for converting screenshots to jpg)
The following are required for the X11 version:
- rofi (for displaying menus)
- slop (for selecting screen regions)
- ffcast (for saving screenshots of entire screen or specified region)
- xclip (for copying image to clipboard)
- libnotify (for sending desktop notifications)
- imagemagick (for converting screenshots to jpg)
- Install required dependecies.
- Clone this repo
- Copy the desired script (
rofi-screenshot.sh
orrofi-screenshot-wayland.sh
) to any directory in your $PATH environmental variable - Give the script execution rights by running
chmod a+x rofi-screenshot.sh
orchmod a+x rofi-screenshot-wayland.sh
- Run the script to open screenshot taking tool (or assign the script to a keyboard shortcut to have it always at hand)
This script has been written in pure POSIX-compliant Linux shell (/bin/sh
). Script should run on any Linux distribution where all required dependencies can be installed.