#!/bin/bash # Screenshot menu, rofi themed by udt. # Copyright (C) 2026 Danilo M. # Licensed under the GNU General Public License v2 only. rofi_command=(rofi -theme ~/.config/rofi/udt/screenshot.rasi) ### Options ### screen="" area="" # Variable passed to rofi options="$screen\n$area" chosen="$(echo -e "$options" | "${rofi_command[@]}" -dmenu -selected-row 1 -p '󰄀 Screenshot:')" case $chosen in $screen) grimblast -w 3 -n -t png copysave active ;; $area) grimblast -n -t png copysave area ;; esac