#!/bin/bash # options to be displayed option0="screen" option1="area" option2="window" # options to be displyed options="$option0\n$option1\n$option2" selected="$(echo -e "$options" | rofi -lines 3 -dmenu -font "Ubuntu Medium 13" -p "scrot")" case $selected in $option0) cd ~/Скриншоты/ && sleep 1 && scrot '%j_%d-%m-%Y_%T'.png;; $option1) cd ~/Скриншоты/ && scrot -s '%j_%d-%m-%Y_%T'.png;; $option2) cd ~/Скриншоты/ && sleep 1 && scrot -u '%j_%d-%m-%Y_%T'.png;; esac