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