Fix a few scripts
eddbfbbf1c4e6c27036465abb1f9c016edbd5d34
1 parent
5ae38833
bin/record-window
+2 -2
| 20 | 20 | tmp="$(mktemp).gif" |
|
| 21 | 21 | ||
| 22 | 22 | let x=$x+1 |
|
| 23 | 23 | let y=$y+1 |
|
| 24 | 24 | ||
| 25 | - | OUT="$HOME/recordings/recording-$NAME-$now.gif" |
|
| 25 | + | OUT="$NAME-$now.gif" |
|
| 26 | 26 | ||
| 27 | 27 | ffmpeg -v warning \ |
|
| 28 | 28 | -video_size ${w}x${h} \ |
|
| 29 | - | -framerate 4 \ |
|
| 29 | + | -framerate 6 \ |
|
| 30 | 30 | -f x11grab \ |
|
| 31 | 31 | -i :0.0+${x},${y} \ |
|
| 32 | 32 | -vf fps=$FPS,scale=iw*$SCALE:ih*$SCALE:flags=lanczos \ |
|
| 33 | 33 | -gifflags +transdiff -y \ |
|
| 34 | 34 | "$OUT" |
bin/toggle-displays
+1 -0
| 9 | 9 | xrandr --output "$internal" --off --output "$external1" --auto --primary |
|
| 10 | 10 | elif echo "$output" | grep -P "\b$external2 connected\b"; then |
|
| 11 | 11 | xrandr --output "$internal" --off --output "$external2" --auto --primary |
|
| 12 | 12 | else |
|
| 13 | 13 | xrandr --output "$external1" --off --output "$internal" --auto --primary |
|
| 14 | + | xrandr --size 1920x1080 |
|
| 14 | 15 | fi |