4
# sudo apt-get install gstreamer0.10-fluendo-mp3 imagemagick shutter xdotool
6
# Save this script in ~/.ubuntu-help (this is also where the screenshots will be kept)
7
# The hidden directory is so that they don't clutter the File Browser screenshot
9
# Open Shutter and set the delay (in the bottom right corner) to 3, make sure
10
# "Include cursor" isn't checked
12
# Open System Settings>Privacy. Delete all history
13
# Switch to the Files tab and add the .ubuntu-help directory to the don't record list.
15
# Make sure that /etc/default/apport has enabled=0 . This
16
# will turn off the automatic bug report window that will just get in the way of screenshots.
18
# Finally press Alt+F2 and run .ubuntu-help/collect-screenshots-without-mouse.sh
25
## prerequisites installed? Needs more work
26
#for pkg in gedit gstreamer0.10-fluendo-mp3 shutter xdotool imagemagick ; do
27
# if dpkg --get-selections | grep -q $pkg ; then error "Error: $pkg isn't installed. To install it, run: \n sudo apt-get install $pkg#"; fi
30
lang=$(basename $LANG .UTF-8)
32
dir=$HOME/.ubuntu-help/$lang/figures
33
downdir=$HOME/.downloads
42
wget -c -O $downdir/EmblemDivide.pdf http://emblemdivide.files.wordpress.com/2009/12/chapter0.pdf
43
wget -c -O $downdir/standard-tube-map.pdf http://www.tfl.gov.uk/assets/downloads/standard-tube-map.pdf
44
wget -c -O $downdir/richard-stallman-young.jpg http://upload.wikimedia.org/wikipedia/commons/f/f7/Richard_Matthew_Stallman.jpeg
45
wget -c -O $downdir/Echoes\ In\ Time.mp3 http://people.ubuntu.com/~jbicha/Echoes%20In%20Time.mp3
47
# Set the screen resolution
50
xdotool mousemove 1024 350
52
# Change the time to match the version number
53
# This needs to be updated for different locales
54
gsettings set com.canonical.indicator.datetime time-format "custom"
55
gsettings set com.canonical.indicator.datetime custom-time-format "12:04 %p"
56
gsettings set org.gnome.Evince.Default show-sidebar false # This doesn't seem to work
57
gsettings set com.canonical.Unity form-factor "Netbook"
63
xdotool key Down Down Return
70
xdotool key Down Down Return
77
xdotool key Down Down Return
84
xdotool key Down Down Return
91
xdotool key Down Down Return
96
evince $downdir/standard-tube-map.pdf &
99
touch $downdir/index.html
100
gedit $downdir/index.html &
103
evince $downdir/EmblemDivide.pdf &
106
eog $downdir/richard-stallman-young.jpg &
110
shutter -f -e -o dir/unity.png
112
convert $dir/unity.png -resize 250x188 $dir/unity.png
113
if [ $dir -eq ".ubuntu-help/en-US/figures" ] # English only
115
convert $dir/unity.png -crop 65x180+0+25 +repage $dir/unity-launcher.png
117
convert $dir/unity-launcher.png -crop 65x123+0+57 +repage $dir/unity-launcher-apps.png
122
xdotool getactivewindow windowsize 650 325
123
shutter -a -e -o $dir/nautilus.png
125
convert $dir/nautilus.png -resize 250x125 $dir/nautilus.png
130
xdotool key BackSpace
132
shutter -f -e -o $dir/unity-overview-original.png
133
convert $dir/unity-overview-original.png -crop 230x130+0+0 +repage $dir/unity-dash-sample.png
135
convert $dir/unity-overview-original.png -resize 75% $dir/unity-overview.png
136
rm $dir/unity-overview-original.png
139
shutter -f -e -o $dir/unity-dash.png
140
convert $dir/unity-dash.png -crop 525x227+0+0 +repage $dir/unity-dash.png
144
# Change things back to normal
145
gsettings reset com.canonical.indicator.datetime time-format
146
gsettings reset com.canonical.indicator.datetime custom-time-format
147
gsettings reset com.canonical.Unity form-factor
149
# This is supposed to set a laptop's screen resolution back to default
150
xrandr --output LVDS1 --auto