You are not logged in.

#1 2020-12-26 23:12:03

cajm
Member
From: Patagonia
Registered: 2020-12-26
Posts: 11

install/enable/update source code mimetype icons

Hi,
I recently switched from Ubuntu GNOME to Arch + XFCE. I've been liking it pretty well, but one thing that has bugged me is that in the Thunar file browser my source code files all have the same text-file icon. With nautilus in GNOME for example I was used to having all my C files displayed with a big blue 'C', header files with a burgundy 'H', python files with the python logo, and CMake and Makefiles with a quaint hammer.
Do I need to install another icon theme package? Currently I have the adwatia-icon-theme and hicolor-icon-theme packages installed. Previously I had the gnome-icon-theme, but that didn't make a difference.
I have bumped into various places on the internet talking about regenerating the browser cache, but none of those worked for me. I believe I could manually make an icon for each mimetype, but that sounds rather time consuming.
Thanks


C is a nice language. Semicolon.

Offline

#2 2020-12-26 23:56:04

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: install/enable/update source code mimetype icons

I see those .h, .c etc. icons here. My icon theme is "Papirus" from the package "papirus-icon-theme".

I just tried switching to Adwaita icon theme and the .c, .h disappeared so I guess there's no need to tweak anything else to get things to work besides choosing the icon theme.

Offline

#3 2020-12-27 10:44:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,352

Re: install/enable/update source code mimetype icons

If you care for the technicalities, you need an icon theme that actually ships icons for the different mimetypes you care about, and if we compare adwaita

adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/application-certificate-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/application-rss+xml-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/application-x-addon-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/application-x-appliance-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/application-x-executable-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/application-x-firmware-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/audio-x-generic-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/font-x-generic-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/image-x-generic-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/inode-directory-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/package-x-generic-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/text-x-generic-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/video-x-generic-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/x-office-address-book-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/x-office-calendar-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/x-office-document-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/x-office-drawing-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/x-office-presentation-symbolic.symbolic.png
adwaita-icon-theme /usr/share/icons/Adwaita/64x64/mimetypes/x-office-spreadsheet-symbolic.symbolic.png

to something that acually ships with icons for source files

breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-adasrc.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-apport.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-authors.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-bibtex.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-c++hdr.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-c++src.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-changelog.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-chdr.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-cmake.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-copying.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-credits.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-csharp.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-csrc.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-dtd.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-generic.svapplication-x-awk.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-generic.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-gettext-translation.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-go.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-haskell.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-hex.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-install.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-java-source.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-java.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-javascript.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-katefilelist.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-kotlin.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-ldif.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-lilypond.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-log.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-lua.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-makefile.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-markdown.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-microdvd.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-mpsub.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-nfo.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-objchdr.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-objcsrc.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-opml+xml.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-opml.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-pascal.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-patch.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-plain.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-po.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-python.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-python3.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-qml.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-r.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-readme.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-rpm-spec.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-rust.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-sass.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-scala.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-script.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-scss.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-sql.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-ssa.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-subviewer.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-tcl.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-tex.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-texinfo.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-vcard.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-x-xslfo.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-xmcd.svg
breeze-icons /usr/share/icons/breeze/mimetypes/64/text-xml.svg

that should help you know what to look for, if you don't want to blindly install stuff check the package content list on the packaging site.

Online

#4 2020-12-27 17:47:50

cajm
Member
From: Patagonia
Registered: 2020-12-26
Posts: 11

Re: install/enable/update source code mimetype icons

Thanks! After installing the papirus-icon-theme or breeze-icons and deleting everything in ~/.cache/thumbnails/normal it did display them all with different icons.

Last edited by cajm (2020-12-27 20:42:31)


C is a nice language. Semicolon.

Offline

Board footer

Powered by FluxBB