danix
's git repository
home
/
my projects
/
my-dotfiles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
first push of my config files
[my-dotfiles.git]
/
bin
/
blackpearl-scrotmenu.sh
1
#!/bin/bash
2
3
rofi_command
=
"rofi -theme blackpearl/scrotmenu.rasi"
4
5
### Options ###
6
screen
=
""
7
area
=
""
8
window
=
""
9
# Variable passed to rofi
10
options
=
"
$screen
\n
$area
\n
$window
"
11
12
chosen
=
"$(echo -e "
$options
" |
$rofi_command
-dmenu -selected-row 1)"
13
case
$chosen
in
14
$screen
)
15
sleep
1
;
i3-scrot
16
;;
17
$area
)
18
i3-scrot
-s
19
;;
20
$window
)
21
sleep
1
;
i3-scrot
-u
22
;;
23
esac
24