From 54bbc5f44e10e974c0b6aa906a78b673d8067900 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sun, 2 Nov 2025 22:51:47 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Utilisation=20du=20th=C3=A8me=20tokoyni?= =?UTF-8?q?ght=20pour=20lsd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- private_dot_config/lsd/config.yaml | 123 ++++++++++++++++++ private_dot_config/lsd/themes/tokyonight.yaml | 24 ++++ 2 files changed, 147 insertions(+) create mode 100644 private_dot_config/lsd/config.yaml create mode 100644 private_dot_config/lsd/themes/tokyonight.yaml diff --git a/private_dot_config/lsd/config.yaml b/private_dot_config/lsd/config.yaml new file mode 100644 index 0000000..00b72d1 --- /dev/null +++ b/private_dot_config/lsd/config.yaml @@ -0,0 +1,123 @@ +#/bin/bash + +# == Classic == +# This is a shorthand to override some of the options to be backwards compatible +# with `ls`. It affects the "color"->"when", "sorting"->"dir-grouping", "date" +# and "icons"->"when" options. +# Possible values: false, true +classic: false + +# == Blocks == +# This specifies the columns and their order when using the long and the tree +# layout. +# Possible values: permission, user, group, size, size_value, date, name, inode +blocks: + - permission + - user + - group + - size + - date + - name + +# == Color == +# This has various color options. (Will be expanded in the future.) +color: + # When to colorize the output. + # When "classic" is set, this is set to "never". + # Possible values: never, auto, always + when: auto + # How to colorize the output. + # When "classic" is set, this is set to "no-color". + # Possible values: default, + # when specifying , lsd will look up theme file + # XDG Base Directory if relative, e.g. ~/.config/lsd/themes/.yaml, + # The file path if absolute + theme: tokyonight + +# == Date == +# This specifies the date format for the date column. The freeform format +# accepts an strftime like string. +# When "classic" is set, this is set to "date". +# Possible values: date, relative, '+' +# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55 +date: date + +# == Dereference == +# Whether to dereference symbolic links. +# Possible values: false, true +dereference: false + +# == Display == +# What items to display. Do not specify this for the default behavior. +# Possible values: all, almost-all, directory-only +# display: all + +# == Icons == +icons: + # When to use icons. + # When "classic" is set, this is set to "never". + # Possible values: always, auto, never + when: auto + # Which icon theme to use. + # Possible values: fancy, unicode + theme: fancy + # Separator between icon and the name + # Default to 1 space + separator: " " + +# == Ignore Globs == +# A list of globs to ignore when listing. +# ignore-globs: +# - .git + +# == Indicators == +# Whether to add indicator characters to certain listed files. +# Possible values: false, true +indicators: false + +# == Layout == +# Which layout to use. "oneline" might be a bit confusing here and should be +# called "one-per-line". It might be changed in the future. +# Possible values: grid, tree, oneline +layout: grid + +# == Recursion == +recursion: + # Whether to enable recursion. + # Possible values: false, true + enabled: false + # How deep the recursion should go. This has to be a positive integer. Leave + # it unspecified for (virtually) infinite. + # depth: 3 + +# == Size == +# Specifies the format of the size column. +# Possible values: default, short, bytes +size: default + +# == Sorting == +sorting: + # Specify what to sort by. + # Possible values: extension, name, time, size, version + column: name + # Whether to reverse the sorting. + # Possible values: false, true + reverse: false + # Whether to group directories together and where. + # When "classic" is set, this is set to "none". + # Possible values: first, last, none + dir-grouping: none + +# == No Symlink == +# Whether to omit showing symlink targets +# Possible values: false, true +no-symlink: false + +# == Total size == +# Whether to display the total size of directories. +# Possible values: false, true +total-size: false + +# == Symlink arrow == +# Specifies how the symlink arrow display, chars in both ascii and utf8 +symlink-arrow: ⇒ diff --git a/private_dot_config/lsd/themes/tokyonight.yaml b/private_dot_config/lsd/themes/tokyonight.yaml new file mode 100644 index 0000000..00cf03d --- /dev/null +++ b/private_dot_config/lsd/themes/tokyonight.yaml @@ -0,0 +1,24 @@ +user: 130 +group: 130 +permission: + read: dark_green + write: dark_yellow + exec: dark_red + exec-sticky: 5 + no-access: 245 +date: + hour-old: 40 + day-old: 4 + older: 8 +size: + none: 2 + small: 2 + medium: 22 + large: 1 +inode: + valid: 13 + invalid: 245 +links: + valid: 13 + invalid: 245 +tree-edge: 245