The K Desktop Environment

8.2. How can I change the appearance of a directory in KFM?

When displaying a directory, KFM looks for a hidden file

 .directory

inside the directory. You can create such a file to modify the way in which the directory is displayed. The file is simply a kdelnk file. For example:

 # KDE Config File
 [KDE Desktop Entry]
 Name=Settings
 Name[de]=Einstellungen
 Name[pl]=Ustawienia
 MiniIcon=kcontrol.xpm
 SortOrder=Desktop,Input_Devices,KWM,Network,Information,Sound
 Icon=kcontrol.xpm

is the file used to describe the Settings directory. It changes the icon used to display the directory, it sets the (displayed) name of the directory according to the national language and fixes the order in which the subdirectories are displayed.

For the directories that build up the Kˆ menu, you can also use kmenuedit to change the appearance.