# Example configuration file for lx
# Place this file at: ~/.config/lx/config
[colors]
# Available colors:
# black, red, green, yellow, blue, magenta, cyan, white
# bright_black, bright_red, bright_green, bright_yellow
# bright_blue, bright_magenta, bright_cyan, bright_white
# Color for directories
directory = "blue"
# Color for executable files
executable = "red"
# Color for regular files
regular = "white"
# Color for hidden files and directories
hidden = "bright_black"
[icons]
# Custom icons for different file types
# By default, lx uses nerd font icons. If you don't have a nerd font installed,
# you can set custom icons here using any unicode characters or simple ASCII.
# Examples:
# Nerd font (default):
# directory = ""
# executable = ""
# regular = ""
# Emoji icons:
# directory = "📁"
# executable = "⚙️"
# regular = "📄"
# Simple ASCII:
# directory = "/"
# executable = "*"
# regular = "-"
directory = ""
executable = ""
regular = ""
[icons.colors]
# Custom colors for icons (separate from filename colors)
# Uses the same color names as [colors] section
# By default, icon colors match the filename colors for each file type
directory = "blue"
executable = "green"
regular = "white"
hidden = "bright_black"
[display]
# Number of spaces between columns (default: 2)
column_spacing = 2
# Maximum number of rows before wrapping to next column in short format
# Only applies to short format (not -l). Set to 0 for no limit (default: 0)
max_rows = 0
# Maximum number of rows used by compact format (-c) (default: 5)
compact_max_rows = 5
# Default sorting. Leave sort_field unset to preserve lx's built-in ordering.
# Available fields: name, size, modified, type, permissions, links, owner, group
# sort_field = "modified"
# sort_order = "desc" # asc (default) or desc
# Date and time format used by the modified long-format field. Supports Chrono
# strftime specifiers, such as %B for a full month name, %b for an abbreviation,
# %-d for an unpadded day, and %I:%M %p for a 12-hour time.
datetime_format = "%Y-%m-%d %H:%M:%S"
# Example: datetime_format = "%B %-d, %Y at %-I:%M %p"
# Long format field ordering and visibility (used with -l flag)
# Specify which fields to display and in what order. Available fields:
# - filename: The name of the file
# - icon: The file icon
# - permissions: File permissions (e.g., drwxr-xr-x)
# - nlink: Number of hard links
# - owner: File owner name
# - group: File group name
# - size: File size (human-readable)
# - modified: Last modified date and time
#
# Default order (keeps tree names at the right edge in recursive long output):
# [permissions, nlink, owner, group, size, modified, icon, filename]
#
# To customize, list the fields you want in your desired order:
long_format_fields = [
"permissions",
"nlink",
"owner",
"group",
"size",
"modified",
"icon",
"filename",
]
# Show column titles above long-format output (default: false)
long_format_titles = false
# Colour used for long-format column titles
long_format_title_color = "bright_black"
[display.tree]
# Tree display style for recursive output (-r flag)
# Options: "ascii" (default) or "indent"
# - "ascii": Uses box-drawing characters (├─, ╰─, │)
# - "indent": Uses simple spacing for indentation
style = "ascii"