screencast-24 353 B

1234567891011
  1. #!/bin/sh
  2. # record main display
  3. resolution=$(xrandr | grep '\*' | head -n 1 | awk '{print $1}')
  4. [ ! -d "$HOME/vids/screencasts" ] && mkdir -p "$HOME/vids/screencasts"
  5. ffmpeg -f x11grab -r 24 -s "$resolution" -i :0.0 -acodec acc -vcodec libx264 -crf 0 "$HOME/vids/screencasts/$(date +"%F--%H-%M-%S--%N").mkv" &
  6. notify-send "screencasting" "started"