danix
's git repository
home
/
my projects
/
my-dotfiles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
dbafcb73afc8ac3fa0a58b21763bcca60902ee79
[my-dotfiles.git]
/
bin
/
blackpearl-scrotmenu.sh
1
#!/bin/bash
2
3
rofi_command
=
"rofi -theme darknix/scrotmenu.rasi"
4
5
### Options ###
6
screen
=
""
7
area
=
""
8
# Variable passed to rofi
9
options
=
"
$screen
\n
$area
"
10
11
chosen
=
"$(echo -e "
$options
" |
$rofi_command
-dmenu -selected-row 1)"
12
case
$chosen
in
13
$screen
)
14
i3-scrot
-d
3
15
;;
16
$area
)
17
i3-scrot
-s
18
;;
19
esac