Permalink
Switch branches/tags
Nothing to show
Find file
d922dc9 Oct 11, 2015
executable file 10 lines (8 sloc) 413 Bytes
#!/bin/bash
# This script record your desktop. It calculates your screen resoltion and saves
# the video in ~/Video/output.mkv file.
# dilawar@ee.iitb.ac.in
#rm -f ~/Video/output.mkv
Xaxis=$(xrandr -q | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
Yaxis=$(xrandr -q | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)
avconv -f x11grab -s $(($Xaxis))x$(($Yaxis)) -r 25 -i :0.0 ~/Videos/output.mkv