rice/bspwm/scripts/screenshot.sh

21 lines
417 B
Bash
Raw Permalink Normal View History

2022-01-04 22:04:26 -08:00
#!/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 -p "scrot")"
case $selected in
$option0)
cd ~/Pictures/ && sleep 1 && scrot;;
$option1)
cd ~/Pictures/ && scrot -s;;
$option2)
cd ~/Pictures/ && sleep 1 && scrot -u;;
esac