Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 2.39 KB

README.md

File metadata and controls

43 lines (35 loc) · 2.39 KB

rofi-screenshot-wayland

Script for taking screenshots on minimalist Linux distributions. Now with support for wlroots based wayland compositors (such as Sway)

Forked from rofi-screenshot.

Features

  1. Using rofi to display screenshot taking menu
  2. Allows to take screenshot of whole screen, only selected region (region can be selected using mouse)
  3. In the wayland version, screenshots can also be taken of selected window (using mouse), or the currently active monitor.
  4. Saving image as JPG, PNG or copying screenshot to clipboard

Dependencies

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.

Wayland

The following dependencies are required for Wayland version:

  • rofi (for displaying menus)
  • grimshot (for taking the screenshot)
  • imagemagick (for converting screenshots to jpg)

Original

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)

Usage

  1. Install required dependecies.
  2. Clone this repo
  3. Copy the desired script (rofi-screenshot.sh or rofi-screenshot-wayland.sh) to any directory in your $PATH environmental variable
  4. Give the script execution rights by running chmod a+x rofi-screenshot.sh or chmod a+x rofi-screenshot-wayland.sh
  5. Run the script to open screenshot taking tool (or assign the script to a keyboard shortcut to have it always at hand)

Screenshots

Screenshot: rofi-screenshot

Screenshot: rofi-screenshot

Screenshot: rofi-screenshot

Technologies used

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.