Initial commit. I'm fixing the readme RN!
[danixland-rofi.git] / scripts / danixland-scrotmenu.sh
1 #!/bin/bash
2
3 rofi_command="rofi -theme danixland/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