|
|
|
|
43
|
For those of you who don't want eval to be an integral part of slop (Could be dangerous if I were evil!): You can change the output format and parse it manually like so:
|
43
|
For those of you who don't want eval to be an integral part of slop (Could be dangerous if I were evil!): You can change the output format and parse it manually like so:
|
44
|
```bash
|
44
|
```bash
|
45
|
#!/bin/bash
|
45
|
#!/bin/bash
|
46
|
-slopoutput=$(slop -f "%x %y %w %h %g $i")
|
|
|
47
|
-X=$(echo $slopoutput | awk '{print $1}')
|
|
|
48
|
-Y=$(echo $slopoutput | awk '{print $2}')
|
|
|
49
|
-W=$(echo $slopoutput | awk '{print $3}')
|
|
|
50
|
-H=$(echo $slopoutput | awk '{print $4}')
|
|
|
51
|
-G=$(echo $slopoutput | awk '{print $5}')
|
|
|
52
|
-ID=$(echo $slopoutput | awk '{print $6}')
|
|
|
53
|
-maim -g $G -i $ID
|
|
|
54
|
-ffmpeg -f x11grab -s "$W"x"$H" -i :0.0+$X,$Y -f alsa -i pulse ~/myfile.webm
|
|
|
|
|
46
|
+read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i")
|
|
|
47
|
+maim -g "$G" -i "$ID"
|
|
|
48
|
+ffmpeg -f x11grab -s "$W"x"$H" -i ":0.0+$X,$Y" -f alsa -i pulse ~/myfile.webm
|
55
|
```
|
49
|
```
|
56
|
|
50
|
|
57
|
## Lets see some action
|
51
|
## Lets see some action
|