aboutsummaryrefslogtreecommitdiff
path: root/scalable/mimetypes/templates
diff options
context:
space:
mode:
Diffstat (limited to 'scalable/mimetypes/templates')
-rw-r--r--scalable/mimetypes/templates/Makefile3
-rw-r--r--scalable/mimetypes/templates/default/application-x-executable.pngbin194302 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/application-xml-dtd.pngbin238889 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/application.pngbin161557 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/audio.pngbin132002 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/file.pngbin166650 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/image.pngbin166650 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text-css.pngbin165568 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text-x-chdr.pngbin270482 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text-x-csrc.pngbin270303 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text-x-generic.pngbin166650 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text-x-makefile.pngbin137102 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text-x-script.pngbin267918 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/text.pngbin107109 -> 0 bytes
-rw-r--r--scalable/mimetypes/templates/default/video.pngbin136691 -> 0 bytes
-rwxr-xr-xscalable/mimetypes/templates/generate.sh63
-rw-r--r--scalable/mimetypes/templates/test-globs4
17 files changed, 0 insertions, 70 deletions
diff --git a/scalable/mimetypes/templates/Makefile b/scalable/mimetypes/templates/Makefile
deleted file mode 100644
index f9ca85b..0000000
--- a/scalable/mimetypes/templates/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1all:
2 ./generate.sh /usr/share/mime/generic-icons
3 ./generate.sh /usr/share/mime/globs
diff --git a/scalable/mimetypes/templates/default/application-x-executable.png b/scalable/mimetypes/templates/default/application-x-executable.png
deleted file mode 100644
index 92c5515..0000000
--- a/scalable/mimetypes/templates/default/application-x-executable.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/application-xml-dtd.png b/scalable/mimetypes/templates/default/application-xml-dtd.png
deleted file mode 100644
index 6e75df0..0000000
--- a/scalable/mimetypes/templates/default/application-xml-dtd.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/application.png b/scalable/mimetypes/templates/default/application.png
deleted file mode 100644
index 78ee865..0000000
--- a/scalable/mimetypes/templates/default/application.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/audio.png b/scalable/mimetypes/templates/default/audio.png
deleted file mode 100644
index 1271597..0000000
--- a/scalable/mimetypes/templates/default/audio.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/file.png b/scalable/mimetypes/templates/default/file.png
deleted file mode 100644
index 69fd3ec..0000000
--- a/scalable/mimetypes/templates/default/file.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/image.png b/scalable/mimetypes/templates/default/image.png
deleted file mode 100644
index 69fd3ec..0000000
--- a/scalable/mimetypes/templates/default/image.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text-css.png b/scalable/mimetypes/templates/default/text-css.png
deleted file mode 100644
index 64c2aa5..0000000
--- a/scalable/mimetypes/templates/default/text-css.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text-x-chdr.png b/scalable/mimetypes/templates/default/text-x-chdr.png
deleted file mode 100644
index 539f127..0000000
--- a/scalable/mimetypes/templates/default/text-x-chdr.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text-x-csrc.png b/scalable/mimetypes/templates/default/text-x-csrc.png
deleted file mode 100644
index d55737a..0000000
--- a/scalable/mimetypes/templates/default/text-x-csrc.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text-x-generic.png b/scalable/mimetypes/templates/default/text-x-generic.png
deleted file mode 100644
index 69fd3ec..0000000
--- a/scalable/mimetypes/templates/default/text-x-generic.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text-x-makefile.png b/scalable/mimetypes/templates/default/text-x-makefile.png
deleted file mode 100644
index bd48fd4..0000000
--- a/scalable/mimetypes/templates/default/text-x-makefile.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text-x-script.png b/scalable/mimetypes/templates/default/text-x-script.png
deleted file mode 100644
index 6eb0d88..0000000
--- a/scalable/mimetypes/templates/default/text-x-script.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/text.png b/scalable/mimetypes/templates/default/text.png
deleted file mode 100644
index 7d7cb76..0000000
--- a/scalable/mimetypes/templates/default/text.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/default/video.png b/scalable/mimetypes/templates/default/video.png
deleted file mode 100644
index 6527c94..0000000
--- a/scalable/mimetypes/templates/default/video.png
+++ /dev/null
Binary files differ
diff --git a/scalable/mimetypes/templates/generate.sh b/scalable/mimetypes/templates/generate.sh
deleted file mode 100755
index be8de9c..0000000
--- a/scalable/mimetypes/templates/generate.sh
+++ /dev/null
@@ -1,63 +0,0 @@
1DEFAULT_FILE='file' # .png gets added automatically
2#INPUT_FILE=test-globs
3#INPUT_FILE=/usr/share/mime/generic-icons < /usr/share/mime/globs
4INPUT_FILE=$1
5OUT_PATH="../"
6
7MAX_LINES=`cat $INPUT_FILE | wc -l`
8CUR_LINE=0
9
10IFS=':'
11while read A B
12do
13 if [[ "$A" == "#"* ]]; then continue; fi
14
15 MIME=$A
16 FILE=${A/\//-}
17 TEXT=${B/\*\./}
18
19
20 ((CUR_LINE++))
21 printf "[%-4d/%-4d] checking for %s\n" "$CUR_LINE" "$MAX_LINES" "$FILE.png"
22
23 if [[ -f "default/$FILE.png" ]]; then
24 echo "using default."
25 cp "default/$FILE.png" "$OUT_PATH/$FILE.png"
26 else
27
28 FIND=$FILE
29 while [[ 1 ]]
30 do
31 # printf "%s\n" $FIND
32 if [[ -f "default/$FIND.png" ]]; then break; fi
33
34 if [[ "$FIND" == "${FIND%-*}" ]]; then FIND="$DEFAULT_FILE"; break; fi
35 FIND=${FIND%-*}
36 done
37
38 # create default file... just in case there is no desktop file...
39 cp "default/$FIND.png" "$OUT_PATH/$FILE.png"
40
41 DESKTOP=`xdg-mime query default $MIME`
42 if [[ -f /usr/share/applications/$DESKTOP ]]; then
43 ICONTEXT=`grep -o 'Icon=.*' /usr/share/applications/$DESKTOP`
44 APPICON=`find ../../ /usr/share/icons/Adwaita/scalable /usr/share/icons/hicolor/scalable -path '*apps*' -name "${ICONTEXT/Icon=/}*" -type f -print -quit`
45
46 printf "%-12s%s\t%s\t%s\t%s\n" "" $MIME $DESKTOP $FIND $APPICON
47
48 if [[ "$APPICON" ]]; then
49 convert \
50 "default/$FIND.png" \( -density 400 $APPICON -resize 256 \) \
51 -gravity north -geometry +0+20 \
52 -compose darken -composite $OUT_PATH/$FILE.png
53 fi
54 fi
55 fi
56
57 mogrify "$OUT_PATH/$FILE.png" \
58 -gravity northwest -pointsize 60 -rotate 90 \
59 -stroke '#444' -strokewidth 2 -annotate 0 "${FILE##*-}" \
60 -fill '#ff0' -annotate 0 "${FILE##*-}" \
61 -rotate -90 -resize 256 $OUT_PATH/$FILE.png
62
63done < $INPUT_FILE
diff --git a/scalable/mimetypes/templates/test-globs b/scalable/mimetypes/templates/test-globs
deleted file mode 100644
index 9b062d7..0000000
--- a/scalable/mimetypes/templates/test-globs
+++ /dev/null
@@ -1,4 +0,0 @@
1text/x-csrc:*.c
2application/x-blender:*.blend
3text/plain:*.txt
4application/x-kexiproject-sqlite3:*.kkk
..