mirror of
https://github.com/mrfluffy-dev/dotfiles.git
synced 2026-01-17 05:40:34 +00:00
25 lines
405 B
Bash
Executable File
25 lines
405 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rofi_command="rofi -theme themes/scrotmenu.rasi"
|
|
|
|
### Options ###
|
|
screen=""
|
|
area=""
|
|
window=""
|
|
# Variable passed to rofi
|
|
options="$screen\n$area\n$window"
|
|
|
|
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
|
|
case $chosen in
|
|
$screen)
|
|
sleep 1; scrot
|
|
;;
|
|
$area)
|
|
scrot -s
|
|
;;
|
|
$window)
|
|
sleep 1; scrot -u
|
|
;;
|
|
esac
|
|
|