#!/bin/sh set -e command -v scrot > /dev/null || { echo "scrot not installed" ; exit 1 ; } command -v rofi > /dev/null && menu_exec='rofi -dmenu' || menu_exec='dmenu' choice="$( $menu_exec <