Skip to content

Commit

Permalink
broot: Use RGB colors
Browse files Browse the repository at this point in the history
  • Loading branch information
bigolu committed Jan 19, 2025
1 parent 0ee5e70 commit 83c67d5
Show file tree
Hide file tree
Showing 6 changed files with 166 additions and 74 deletions.
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

"hangxingliu.vscode-systemd-support",
"ltex-plus.vscode-ltex-plus",
"laktak.hjson",
],

"unwantedRecommendations": ["ms-python.vscode-pylance"],
Expand Down
88 changes: 14 additions & 74 deletions dotfiles/broot/conf.hjson
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
imports: [
{
luma: light
file: light.hjson
}
{
luma: [
dark
unknown
]
file: dark.hjson
}
]

# Show hidden files
default_flags: h

Expand Down Expand Up @@ -73,77 +87,3 @@ verbs: [
]

icon_theme: nerdfont

# TODO: Better theme
# https://github.com/Canop/broot/issues/318
syntax_theme: EightiesDark

skin: {
default: None None / ansi(8) None
tree: ansi(0) None
parent: None None / ansi(8) None
file: None None / ansi(8) None
directory: None None / ansi(8) None
exe: None None / ansi(8) None
link: None None / ansi(8) None
pruning: ansi(8) None Italic
perm__: ansi(8) None
perm_r: ansi(8) None
perm_w: ansi(8) None
perm_x: ansi(8) None
owner: None None / ansi(8) None
group: ansi(8) None
dates: None None / ansi(8) None
selected_line: "None None Underlined / None none"
char_match: ansi(3) None
input: None None
status_error: "ansi(1) None italic bold"
status_job: "ansi(1) None italic bold"
status_normal: "None None italic bold / ansi(8) None italic bold"
status_italic: "ansi(6) none italic bold / ansi(8) none italic bold"
status_bold: "None none Bold / None none Bold"
status_code: "ansi(6) none italic bold / ansi(8) none italic bold"
status_ellipsis: "None none italic bold / ansi(8) none italic bold"
scrollbar_track: ansi(0) None / ansi(0) None
scrollbar_thumb: "ansi(8) None / ansi(8) None"
help_paragraph: None None
help_bold: None None Bold
help_italic: ansi(6) None
help_code: ansi(6) None
help_headers: None None Underlined
help_table_border: "ansi(8) None"
preview_title: None None
preview: ansi(7) ansi(0) / ansi(8) ansi(0)
preview_line_number: ansi(0) ansi(0) / ansi(0) ansi(0)
preview_match: "ansi(3) none bold"
good_to_bad_0: ansi(2)
good_to_bad_1: ansi(2)
good_to_bad_2: ansi(2)
good_to_bad_3: ansi(3)
good_to_bad_4: ansi(3)
good_to_bad_5: ansi(11)
good_to_bad_6: ansi(11)
good_to_bad_7: ansi(1)
good_to_bad_8: ansi(1)
good_to_bad_9: ansi(1)

# Not sure I need these
hex_null: ansi(2) None
hex_ascii_graphic: ansi(1) None
hex_ascii_whitespace: ansi(1) None
hex_ascii_other: ansi(1) None
hex_non_ascii: ansi(1) None
staging_area_title: ansi(1) None / ansi(8) None
mode_command_mark: ansi(0) None
sparse: ansi(1) None
content_extract: ansi(3) None
content_match: ansi(3) None
purpose_normal: ansi(2) None
purpose_italic: ansi(178) None
purpose_bold: ansi(178) None Bold
purpose_ellipsis: ansi(2) None
file_error: ansi(1) None
flag_label: ansi(2) None
flag_value: ansi(208) None Bold
count: ansi(3) None
}
71 changes: 71 additions & 0 deletions dotfiles/broot/dark.hjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
syntax_theme: EightiesDark

skin: {
default: "#D8DEE9 #1d2129"
tree: "#78849b #1d2129"
parent: "#D8DEE9 #1d2129"
file: "#D8DEE9 #1d2129"
directory: "#D8DEE9 #1d2129"
exe: "#D8DEE9 #1d2129"
link: "#D8DEE9 #1d2129"
pruning: "#78849b #1d2129 Italic"
perm__: "#78849b #1d2129"
perm_r: "#78849b #1d2129"
perm_w: "#78849b #1d2129"
perm_x: "#78849b #1d2129"
owner: "#D8DEE9 #1d2129"
group: "#78849b #1d2129"
dates: "#D8DEE9 #1d2129"
selected_line: "#D8DEE9 #2f333e / #D8DEE9 #1d2129"
char_match: "#8FBCBB #1d2129"
input: "#D8DEE9 #1d2129"
status_error: "#BF616A #2f333e"
status_job: "#BF616A #2f333e"
status_normal: "#D8DEE9 #2f333e"
status_italic: "#D8DEE9 #2f333e Italic"
status_bold: "#D8DEE9 #2f333e Bold"
status_code: "#D8DEE9 #2f333e"
status_ellipsis: "#D8DEE9 #2f333e"
scrollbar_track: "#eef0f2"
scrollbar_thumb: "#d1d3d5"
help_paragraph: "#D8DEE9 #1d2129"
help_bold: "#D8DEE9 #1d2129 Bold"
help_italic: "#D8DEE9 #2f333e Italic"
help_code: "#8FBCBB #1d2129"
help_headers: "#D8DEE9 #1d2129 Underlined"
help_table_border: "#78849b #1d2129"
preview_title: "#D8DEE9 #1d2129"
preview: "#D8DEE9 #1d2129"
preview_line_number: "#1d2129 #1d2129"
preview_match: "#8FBCBB #2f333e"
good_to_bad_0: "#A3BE8C"
good_to_bad_1: "#A3BE8C"
good_to_bad_2: "#A3BE8C"
good_to_bad_3: "#EBCB8B"
good_to_bad_4: "#EBCB8B"
good_to_bad_5: "#d08770"
good_to_bad_6: "#d08770"
good_to_bad_7: "#BF616A"
good_to_bad_8: "#BF616A"
good_to_bad_9: "#BF616A"
mode_command_mark: "#D8DEE9 #1d2129 Bold"

# Not sure where these are used
hex_null: "#D8DEE9 #1d2129"
hex_ascii_graphic: "#D8DEE9 #1d2129"
hex_ascii_whitespace: "#D8DEE9 #1d2129"
hex_ascii_other: "#D8DEE9 #1d2129"
hex_non_ascii: "#D8DEE9 #1d2129"
staging_area_title: "#D8DEE9 #1d2129"
sparse: "#D8DEE9 #1d2129"
content_extract: "#D8DEE9 #1d2129"
content_match: "#D8DEE9 #1d2129"
purpose_normal: "#D8DEE9 #1d2129"
purpose_italic: "#D8DEE9 #1d2129"
purpose_bold: "#D8DEE9 #1d2129"
purpose_ellipsis: "#D8DEE9 #1d2129"
file_error: "#D8DEE9 #1d2129"
flag_label: "#D8DEE9 #1d2129"
flag_value: "#D8DEE9 #1d2129"
count: "#D8DEE9 #1d2129"
}
71 changes: 71 additions & 0 deletions dotfiles/broot/light.hjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
syntax_theme: GitHub

skin: {
default: "#1f2328 #ffffff"
tree: "#808080 #ffffff"
parent: "#1f2328 #ffffff"
file: "#1f2328 #ffffff"
directory: "#1f2328 #ffffff"
exe: "#1f2328 #ffffff"
link: "#1f2328 #ffffff"
pruning: "#808080 #ffffff Italic"
perm__: "#808080 #ffffff"
perm_r: "#808080 #ffffff"
perm_w: "#808080 #ffffff"
perm_x: "#808080 #ffffff"
owner: "#1f2328 #ffffff"
group: "#808080 #ffffff"
dates: "#1f2328 #ffffff"
selected_line: "#1f2328 #e3e5e7 / #1f2328 #ffffff"
char_match: "#a40e26 #ffffff"
input: "#1f2328 #ffffff"
status_error: "#cf222e #e3e5e7"
status_job: "#cf222e #e3e5e7"
status_normal: "#1f2328 #e3e5e7"
status_italic: "#1f2328 #e3e5e7 Italic"
status_bold: "#1f2328 #e3e5e7 Bold"
status_code: "#1f2328 #e3e5e7"
status_ellipsis: "#1f2328 #e3e5e7"
scrollbar_track: "#eef0f2"
scrollbar_thumb: "#d1d3d5"
help_paragraph: "#1f2328 #ffffff"
help_bold: "#1f2328 #ffffff Bold"
help_italic: "#1f2328 #e3e5e7 Italic"
help_code: "#a40e26 #ffffff"
help_headers: "#1f2328 #ffffff Underlined"
help_table_border: "#808080 #ffffff"
preview_title: "#1f2328 #ffffff"
preview: "#1f2328 #ffffff"
preview_line_number: "#ffffff #ffffff"
preview_match: "#a40e26 #e3e5e7"
good_to_bad_0: "#116329"
good_to_bad_1: "#116329"
good_to_bad_2: "#116329"
good_to_bad_3: "#e9873a"
good_to_bad_4: "#e9873a"
good_to_bad_5: "#c96765"
good_to_bad_6: "#c96765"
good_to_bad_7: "#cf222e"
good_to_bad_8: "#cf222e"
good_to_bad_9: "#cf222e"
mode_command_mark: "#1f2328 #ffffff Bold"

# Not sure where these are used
hex_null: "#1f2328 #ffffff"
hex_ascii_graphic: "#1f2328 #ffffff"
hex_ascii_whitespace: "#1f2328 #ffffff"
hex_ascii_other: "#1f2328 #ffffff"
hex_non_ascii: "#1f2328 #ffffff"
staging_area_title: "#1f2328 #ffffff"
sparse: "#1f2328 #ffffff"
content_extract: "#1f2328 #ffffff"
content_match: "#1f2328 #ffffff"
purpose_normal: "#1f2328 #ffffff"
purpose_italic: "#1f2328 #ffffff"
purpose_bold: "#1f2328 #ffffff"
purpose_ellipsis: "#1f2328 #ffffff"
file_error: "#1f2328 #ffffff"
flag_label: "#1f2328 #ffffff"
flag_value: "#1f2328 #ffffff"
count: "#1f2328 #ffffff"
}
8 changes: 8 additions & 0 deletions lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ check:
- name: taplo
glob: "*.toml"
run: taplo lint {files}
- name: hjson
glob: "*.hjson"
# hjson-cli prints the file in json format to stdout so I'm hiding
# that output.
#
# TODO: hjson-cli doesn't support passing multiple files, I should
# open an issue.
run: "parallel hjson-cli -- {files} >/dev/null"
- name: test
# Don't run checks on generated files.
#
Expand Down
1 change: 1 addition & 0 deletions nix/flake-modules/dev-shells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
yamllint
editorconfig-checker
nixpkgs-lint-community
hjson-go
# For isutf8 and parallel. parallel isn't a linter, but it's used to run
# any linter that doesn't support multiple file arguments.
moreutils
Expand Down

0 comments on commit 83c67d5

Please sign in to comment.