Commit | Line | Data |
---|---|---|
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 |