aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/recordscreen
blob: e837d01360c70be6a816477073d415370985ae3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

file="$HOME/recording_$(date +%Y-%m-%d_%H-%M)"

if [[ -n $1 ]]; then
  file="$1"
fi

ffmpeg \
  -y \
  -video_size 2880x1800 \
  -framerate 10 \
  -f x11grab \
  -i :0.0 \
  -f pulse \
  -ac 2 \
  -i default \
  "$file"