mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
21 lines
417 B
Bash
21 lines
417 B
Bash
|
#!/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
|
||
|
|