-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-background-theme
More file actions
executable file
·50 lines (43 loc) · 1.26 KB
/
create-background-theme
File metadata and controls
executable file
·50 lines (43 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
imagesRootPath=${1:-%USERPROFILE%/Dropbox/Windows themes}
intervalDuration=${2:-300}
temporaryFile=`mktemp`
find . -type f \( -iname *.gif -o -iname *.jp*g -o -iname *.png \) | cut --characters=2- | sort > ${temporaryFile}
readarray -t backgrounds < ${temporaryFile}
rm --force ${temporaryFile}
imagesRootPath=${imagesRootPath////\\}
pathSeparator=\
echo "[Theme]"
echo "DisplayName=Duncan Corps"
echo
echo "[Control Panel\Desktop]"
echo "Wallpaper=${imagesRootPath}${pathSeparator}${backgrounds[0]////\\}"
echo "TileWallpaper=0"
echo "WallpaperStyle=2"
echo
echo "[VisualStyles]"
echo "Path=%SystemRoot%\Resources\Themes\Aero\aero.msstyles"
echo "ColorStyle=NormalColor"
echo "Size=NormalSize"
echo "ColorizationColor=0X80555555"
echo "Transparency=1"
echo
echo "[Sounds]"
echo "SchemeName=Quirky"
echo
echo "[Boot]"
echo "SCRNSAVE.EXE=%SystemRoot%\System32\ssText3d.scr"
echo
echo "[MasterThemeSelector]"
echo "MTSM=DABJDKT"
echo
echo "[Slideshow]"
echo "Interval=${intervalDuration}000"
echo "Shuffle=1"
echo "ImagesRootPath=${imagesRootPath}"
backgroundsSize=${#backgrounds[*]}
for ((itemIndex = 0 ; ${itemIndex} < ${backgroundsSize} ; itemIndex++))
do
echo "Item${itemIndex}Path=${imagesRootPath}${pathSeparator}${backgrounds[${itemIndex}]////\\}"
done
exit 0