Commit | Line | Data |
---|---|---|
fdd76fc5 | 1 | #!/bin/bash |
2 | ||
7abef725 | 3 | rofi_command="rofi -theme darknix/scrotmenu.rasi" |
fdd76fc5 | 4 | |
5 | ### Options ### | |
6 | screen="" | |
7 | area="" | |
fdd76fc5 | 8 | # Variable passed to rofi |
7abef725 | 9 | options="$screen\n$area" |
fdd76fc5 | 10 | |
11 | chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)" | |
12 | case $chosen in | |
13 | $screen) | |
7abef725 | 14 | i3-scrot -d 3 |
fdd76fc5 | 15 | ;; |
16 | $area) | |
17 | i3-scrot -s | |
18 | ;; | |
fdd76fc5 | 19 | esac |