dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

windowcast (401B)


      1 #!/bin/sh
      2 
      3 IFS=$'\n'
      4 array=($(xwininfo | grep -E "Absolute upper-left X|Absolute upper-left Y|Width|Height" | awk -F: '{print $2}' | tr -d ' '))
      5 
      6 pos_x=$(( array[0] + 10 ))
      7 pos_y=$(( array[1] + 10 ))
      8 width=${array[2]}
      9 height=${array[3]}
     10 
     11 ffmpeg -f x11grab -framerate 25 \
     12 	-video_size ${width}x${height} -i +${pos_x},${pos_y} \
     13 	$HOME/lib/videos/recordings/screencasts/$(date +%Y%m%d)-window-${1}.mp4