I am trying to make a mimetype icon theme for gnome.I have created text-x-generic.svg for all unthemed filetype.But what I am looking for is different icons for unthemed source code (say, R, vala,awk etc) and plain-generic text file.Is this possible?N.B. I have tried text-x-generic.svg and text-generic.svg to differentiate the source code and plain text, but that is not what linux(gnome) understands.reply for don_crissti's Comment Say, I have icons for ruby, and js, but not for C and R. So, file.c and file.r should show the icons for text-x-generic-unthemed-sourcecode icon.And file.dat and filename_without_extensions should show a different icons (text-generic-plaintext).File-wise, they are different, as $ file i.ci.c: C source, ASCII text$ file dos.datdos.dat: ASCII textSo, there should be some way.
different icons for generic source-code and other files
gnome3;icons
Thanks to @don_crissti for the details of how it works.I have gone an alternate way for solving the problem partially.I have put different icons for text-plain and text-x-generic and text-x-script. The text-plain incorporates all the files without extensions and like of .dat, .txt etc; where text-x-[generic,script] is the fallback for others and scripts.I agree this is an ad-hoc solution, but it solves the current problem nonetheless. (The best solution is to make icons for each files in /usr/share/mime/*)A screenshot is added to show how it looks with only text-x-[python,xml,scripts,generic,plain]