Anleitung · Linux-Mint-WerkzeugGuide · Linux Mint utility

dir_colors 1.4.2

Grafische Verwaltung der Datei ~/.dircolors mit Dateitypen, Endungen, Farbvorschau und Anpassung an das Linux-Mint-Design. Weil ANSI-Farbcodes ungefähr so einladend sind wie eine Steuererklärung in Maschinensprache.

Graphical management of ~/.dircolors with file types, extensions, colour previews and Linux Mint theme integration. ANSI colour codes are about as welcoming as a tax form written in machine language.

Linux Mint 21.x / 22.xx86-64CompiledGSettings
DruckenPrint

01 · Installation

Kompilierte Anwendung installieren

Install the compiled application

  1. dir_colors_1.4.2.zip vollständig entpacken.Extract dir_colors_1.4.2.zip completely.
  2. Den Ordner Installation öffnen und dort ein Terminal starten.Open the Installation folder and start a terminal there.
  3. Das Debian-Paket mit APT installieren.Install the Debian package with APT.
sudo apt install ./dir-colors_1.4.2_amd64.deb

Die Anwendung enthält ihre Python- und Tcl/Tk-Laufzeit. Ein eigenes Python-Paketballett ist nicht erforderlich. Start über Menü, Desktopsymbol oder dir-colors.

The application bundles its Python and Tcl/Tk runtime. No separate Python package ballet is required. Launch it from the menu, desktop icon or with dir-colors.

02 · Oberfläche02 · Interface

Die wichtigsten Bereiche

The main areas

ElementElementAufgabePurpose
ÖffnenOpenBestehende .dircolors-Datei laden.Load an existing .dircolors file.
SpeichernSaveAktuelle Regeln in eine Datei schreiben.Write the current rules to a file.
AnwendenApplyErzeugte Konfiguration für die Shell aktivieren.Activate the generated configuration for the shell.
VorschauPreviewKontrast und Zusammenspiel der Farben prüfen.Check contrast and the interaction of colours.
EinstellungenSettingsPfad, Sprache, Farbumfang und Shell-Befehl verwalten.Manage path, language, colour range and shell command.
Wichtig:Important:

Die Regeln verändern vor allem farbfähige Terminalausgaben wie ls. Nemo-Symbole und Dateinamenfarben werden dadurch normalerweise nicht umgestaltet.

The rules mainly affect colour-capable terminal output such as ls. Nemo icons and file-name colours are normally not changed.

03 · Dateitypen03 · File types

Allgemeine Regeln bearbeiten

Edit general rules

Der Reiter Dateitypen enthält Regeln, die nicht an eine bestimmte Endung gebunden sind. Eintrag auswählen, Bearbeiten öffnen, Vordergrund, Hintergrund und Textattribute festlegen und übernehmen.

The File types tab contains rules not tied to a specific extension. Select an entry, open Edit, set foreground, background and text attributes, then apply.

DIRFILEEXECLINKORPHANMISSINGFIFOSOCKBLKCHR

Besonders wichtig sind DIR für Verzeichnisse, EXEC für ausführbare Dateien, LINK für Verknüpfungen und ORPHAN für defekte Links.

DIR for directories, EXEC for executables, LINK for links and ORPHAN for broken links are particularly useful.

04 · Dateiendungen04 · File extensions

Eigene Muster hinzufügen

Add custom patterns

  1. Hinzufügen wählen.Select Add.
  2. Ein Muster wie *.py, *.pdf oder *.zip eingeben.Enter a pattern such as *.py, *.pdf or *.zip.
  3. Beschreibung, Farben und Attribute festlegen.Set description, colours and attributes.
  4. In der Vorschau prüfen und übernehmen.Check the preview and apply.

Groß- und Kleinschreibung kann getrennte Regeln erfordern, etwa *.jpg und *.JPG. Computer sind bei solchen Dingen beeindruckend konsequent und völlig humorlos.

Upper- and lower-case extensions may require separate rules, for example *.jpg and *.JPG. Computers are impressively consistent and entirely humourless about such details.

05 · Empfohlener Ablauf05 · Recommended workflow

Erst sichern, dann färben

Back up first, then add colour

  1. Bestehende Datei als ~/.dircolors.backup sichern.Back up the existing file as ~/.dircolors.backup.
  2. Vorhandene Datei öffnen oder Systemvorgaben importieren.Open the existing file or import system defaults.
  3. Dateitypen und danach eigene Endungen anpassen.Adjust file types, then custom extensions.
  4. Vorschau auf ausreichenden Kontrast prüfen.Check the preview for sufficient contrast.
  5. Als ~/.dircolors speichern und anwenden.Save as ~/.dircolors and apply.
  6. Shell-Befehl kopieren, bei Bedarf in die Shell-Konfiguration aufnehmen und ein neues Terminal öffnen.Copy the shell command, add it to the shell configuration if required, and open a new terminal.

06 · Fehlerbehebung06 · Troubleshooting

Wenn das Terminal unbeirrt dieselben Farben zeigt

When the terminal stubbornly keeps the same colours

  • Prüfen, ob die richtige Datei geladen und gespeichert wurde.Check that the correct file was loaded and saved.
  • Nach dem Speichern Anwenden verwenden.Use Apply after saving.
  • Den erzeugten Shell-Befehl kontrollieren und ein neues Terminal öffnen.Check the generated shell command and open a new terminal.
  • Farbprofil des Terminals prüfen; es kann Farben verändern oder begrenzen.Check the terminal colour profile; it can alter or limit colours.
  • Bei nicht erkannten Mustern Schreibweise und Sternchen kontrollieren.For unrecognised patterns, check spelling and the wildcard.