diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-03-27 15:01:56 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-03-27 15:01:56 +0100 |
commit | 1262ab866259d816fb0c0245295e504a3193b212 (patch) | |
tree | e651885026d1181aaa1a47f6eba2020756238be7 /tools/qvm-screenrecord.sh | |
parent | add qvm-screenrecord, to record desktop in Qubes Dom0 and copy video to AppVM (diff) | |
download | laurent-tools-1262ab866259d816fb0c0245295e504a3193b212.tar.xz laurent-tools-1262ab866259d816fb0c0245295e504a3193b212.zip |
qvm-screenrecord: UI tweaks
Diffstat (limited to '')
-rw-r--r-- | tools/qvm-screenrecord.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/qvm-screenrecord.sh b/tools/qvm-screenrecord.sh index a50440c..a7aee5e 100644 --- a/tools/qvm-screenrecord.sh +++ b/tools/qvm-screenrecord.sh @@ -29,17 +29,20 @@ esac done mkdir -p $DOM0_SHOTS_DIR ||exit 1 d=`date +"%Y%m%d-%H%M"` tmpname=$d.ogv -echo "===================================" -echo "Hit Crtl-C to terminate the capture" -echo "===================================" +echo "=============================" +echo "Hit Crtl-C to end the capture" +echo "=============================" +echo recordmydesktop --no-sound -o $DOM0_SHOTS_DIR/$tmpname $@ +size=`ls -hs $DOM0_SHOTS_DIR/$tmpname |cut -d' ' -f1` -title=`kdialog --inputbox "Enter capture title" --title "$program"` +title=`kdialog --inputbox "Enter capture title ($size)" --title "$program"` [[ X"$title" = X"" ]] && exit 1 vidname=${d}_${title}.ogv -echo "[-] saving $DOM0_SHOTS_DIR/$vidname" +echo "[-] saving $DOM0_SHOTS_DIR/$vidname ($size)" mv $DOM0_SHOTS_DIR/$tmpname $DOM0_SHOTS_DIR/$vidname +ls -lh $DOM0_SHOTS_DIR/$vidname choice=`ls $QUBES_DOM0_APPVMS |sed 's/\([^ ]*\)/\1 \1/g'` appvm=`kdialog --menu "Select destination AppVM" $choice --title "$program"` |