repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

split indexa config for linux and windows

8ee9f101bf970395263bcb02cb229093724f353c

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (8)

EJ-PC-00363.symlinks

Modified
34 34 cargo/config.toml
35 35 ~/.cargo/config.toml
37 -indexa/config.toml
37 +indexa/config.windows.toml
38 38 ~/AppData/Roaming/indexa/config.toml

README.md

Modified
1 1 # bugabingas personal dotfiles, 33rd attempt
3 -## Symlinks per host
3 +## bootstrapping a new host
5 +## handling per host differences
5 7 ## Secrets

TODO.md

Modified
34 34 - [ ] kill thy babbies: remove obsolete java commands. nu has builtins now for checksums and for random uuids
35 35 - [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?
36 36 - [ ] encrypt box key
37 -- [ ] get indexa config into dotfiles?
38 37 - [ ] use [systemd user] instance to manage env vars
39 -- [ ] how to abstract configs defferences per platform? templates are painful to work with.
38 +- [ ] how to abstract configs differences per platform? templates are painful to work with.
40 39 - [ ] abstract indexa config for windows / linux
42 41 ## Done
46 45 - [x] how to handle java tools in `tools` cross platform?
47 46 - [x] sumneko on linux
48 47 - [x] is there something like glow but in rust?
48 +- [x] get indexa config into dotfiles?
50 50 [systemd user]: https://wiki.archlinux.org/title/Systemd/User

indexa/config.linux.toml

Added
new file mode 100644
1 +[flags]
2 +# Default values for command-line flags.
3 +# Flags provided to CLI will override this group of options.
5 +# Initial query.
6 +# query = "blah blah"
8 +# Whether to search case-sensitively.
9 +# Defaults to smart case.
10 +# case_sensitive = false
12 +# Whether to search case-insensitively.
13 +# Defaults to smart case.
14 +# ignore_case = false
16 +# Whether to search in path.
17 +# match_path = false
19 +# Whether to search in path when query contains path separators.
20 +auto_match_path = true
22 +# Whether to enable regex.
23 +# regex = true
25 +# Number of threads to use.
26 +# Defaults to the number of available CPUs - 1.
27 +# threads = 4
29 +[database]
30 +# Location of database file. Defaults to {user's data directory}/indexa/database.db
31 +# location = "/path/to/database/database.db"
33 +# File/directory statuses to index.
34 +# basename, path and extension are implicitly specified.
35 +index = [
36 + # "size",
37 + # "mode",
38 + # "created",
39 + # "modified",
40 + # "accessed",
43 +# File/directory statuses to enable fast sorting for.
44 +# basename is implicitly specified.
45 +fast_sort = [
46 + # "path",
47 + # "extension",
48 + # "size",
49 + # "mode",
50 + # "created",
51 + # "modified",
52 + # "accessed",
55 +# Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.
56 +dirs = [
57 + "/"
58 + ]
60 +# Whether to ignore hidden files/directories.
61 +ignore_hidden = false
63 +[ui]
64 +# File/directory status to sort by.
65 +sort_by = "basename"
66 +# sort_by = "path"
67 +# sort_by = "extension"
68 +# sort_by = "size"
69 +# sort_by = "mode"
70 +# sort_by = "created"
71 +# sort_by = "modified"
72 +# sort_by = "accessed"
74 +# Sort order.
75 +sort_order = "ascending"
76 +# sort_order = "descending"
78 +# Whether to sort directories before files.
79 +sort_dirs_before_files = true
81 +# Whether to show size in human readable format.
82 +human_readable_size = true
84 +# Datetime format for Created, Modified, and Accessed columns.
85 +datetime_format = "%Y-%m-%d %R"
87 +# Margin between columns.
88 +column_spacing = 2
90 +# Columns from left to right.
91 +# Columns with width specified will have fixed widths.
92 +# Remaining screen width is evenly distributed among other columns.
93 +[[ui.columns]]
94 +status = "basename"
96 +[[ui.columns]]
97 +status = "size"
98 +width = 10
100 +[[ui.columns]]
101 +status = "modified"
102 +width = 16
104 +[[ui.columns]]
105 +status = "path"
107 +[ui.unix]
108 +# Format of mode column.
109 +mode_format = "symbolic"
110 +# mode_format = "octal"
112 +[ui.windows]
113 +# Format of mode column.
114 +# mode_format = "traditional"
115 +mode_format = "powershell"
117 +[ui.colors]
118 +# Colors in one of following formats:
119 +# - Color name
120 +# reset, black, white, red, green, yellow, blue, magenta, cyan, gray, darkgray,
121 +# lightred, lightgreen, lightyellow, lightblue, lightmagenta, lightcyan
122 +# - RGB e.g. "66, 135, 245"
123 +# - Hex e.g. "#e43", "#fcba03"
125 +# Text (selected line)
126 +selected_fg = "lightblue"
127 +# Background (selected line)
128 +selected_bg = "reset"
130 +# Text (matched substring)
131 +matched_fg = "black"
132 +# Background (matched substring)
133 +matched_bg = "lightblue"
135 +# Text (error message)
136 +error_fg = "red"
137 +# Background (error message)
138 +error_bg = "reset"
140 +# Prompt
141 +prompt = "lightblue"

indexa/config.toml

Deleted
deleted file mode 100644
1 -# Default indexa configuration file.
3 -[flags]
4 -# Default values for command-line flags.
5 -# Flags provided to CLI will override this group of options.
7 -# Initial query.
8 -# query = "blah blah"
10 -# Whether to search case-sensitively.
11 -# Defaults to smart case.
12 -# case_sensitive = false
14 -# Whether to search case-insensitively.
15 -# Defaults to smart case.
16 -# ignore_case = false
18 -# Whether to search in path.
19 -# match_path = false
21 -# Whether to search in path when query contains path separators.
22 -# auto_match_path = false
24 -# Whether to enable regex.
25 -# regex = true
27 -# Number of threads to use.
28 -# Defaults to the number of available CPUs - 1.
29 -# threads = 4
31 -[database]
32 -# Location of database file. Defaults to {user's data directory}/indexa/database.db
33 -# location = "/path/to/database/database.db"
35 -# File/directory statuses to index.
36 -# basename, path and extension are implicitly specified.
37 -index = [
38 - # "size",
39 - # "mode",
40 - # "created",
41 - # "modified",
42 - # "accessed",
45 -# File/directory statuses to enable fast sorting for.
46 -# basename is implicitly specified.
47 -fast_sort = [
48 - # "path",
49 - # "extension",
50 - # "size",
51 - # "mode",
52 - # "created",
53 - # "modified",
54 - # "accessed",
57 -# Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.
58 -dirs = [
59 - "C:\\",
60 - "D:\\"
61 - ]
63 -# Whether to ignore hidden files/directories.
64 -ignore_hidden = false
66 -[ui]
67 -# File/directory status to sort by.
68 -sort_by = "basename"
69 -# sort_by = "path"
70 -# sort_by = "extension"
71 -# sort_by = "size"
72 -# sort_by = "mode"
73 -# sort_by = "created"
74 -# sort_by = "modified"
75 -# sort_by = "accessed"
77 -# Sort order.
78 -sort_order = "ascending"
79 -# sort_order = "descending"
81 -# Whether to sort directories before files.
82 -sort_dirs_before_files = true
84 -# Whether to show size in human readable format.
85 -human_readable_size = true
87 -# Datetime format for Created, Modified, and Accessed columns.
88 -datetime_format = "%Y-%m-%d %R"
90 -# Margin between columns.
91 -column_spacing = 2
93 -# Columns from left to right.
94 -# Columns with width specified will have fixed widths.
95 -# Remaining screen width is evenly distributed among other columns.
96 -[[ui.columns]]
97 -status = "basename"
99 -[[ui.columns]]
100 -status = "size"
101 -width = 10
103 -[[ui.columns]]
104 -status = "modified"
105 -width = 16
107 -[[ui.columns]]
108 -status = "path"
110 -[ui.unix]
111 -# Format of mode column.
112 -mode_format = "symbolic"
113 -# mode_format = "octal"
115 -[ui.windows]
116 -# Format of mode column.
117 -# mode_format = "traditional"
118 -mode_format = "powershell"
120 -[ui.colors]
121 -# Colors in one of following formats:
122 -# - Color name
123 -# reset, black, white, red, green, yellow, blue, magenta, cyan, gray, darkgray,
124 -# lightred, lightgreen, lightyellow, lightblue, lightmagenta, lightcyan
125 -# - RGB e.g. "66, 135, 245"
126 -# - Hex e.g. "#e43", "#fcba03"
128 -# Text (selected line)
129 -selected_fg = "lightblue"
130 -# Background (selected line)
131 -selected_bg = "reset"
133 -# Text (matched substring)
134 -matched_fg = "black"
135 -# Background (matched substring)
136 -matched_bg = "lightblue"
138 -# Text (error message)
139 -error_fg = "red"
140 -# Background (error message)
141 -error_bg = "reset"
143 -# Prompt
144 -prompt = "lightblue"

indexa/config.windows.toml

Added
new file mode 100644
1 +[flags]
2 +# Default values for command-line flags.
3 +# Flags provided to CLI will override this group of options.
5 +# Initial query.
6 +# query = "blah blah"
8 +# Whether to search case-sensitively.
9 +# Defaults to smart case.
10 +# case_sensitive = false
12 +# Whether to search case-insensitively.
13 +# Defaults to smart case.
14 +# ignore_case = false
16 +# Whether to search in path.
17 +# match_path = false
19 +# Whether to search in path when query contains path separators.
20 +auto_match_path = true
22 +# Whether to enable regex.
23 +# regex = true
25 +# Number of threads to use.
26 +# Defaults to the number of available CPUs - 1.
27 +# threads = 4
29 +[database]
30 +# Location of database file. Defaults to {user's data directory}/indexa/database.db
31 +# location = "/path/to/database/database.db"
33 +# File/directory statuses to index.
34 +# basename, path and extension are implicitly specified.
35 +index = [
36 + # "size",
37 + # "mode",
38 + # "created",
39 + # "modified",
40 + # "accessed",
43 +# File/directory statuses to enable fast sorting for.
44 +# basename is implicitly specified.
45 +fast_sort = [
46 + # "path",
47 + # "extension",
48 + # "size",
49 + # "mode",
50 + # "created",
51 + # "modified",
52 + # "accessed",
55 +# Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.
56 +dirs = [
57 + "C:\\",
58 + "D:\\"
59 + ]
61 +# Whether to ignore hidden files/directories.
62 +ignore_hidden = false
64 +[ui]
65 +# File/directory status to sort by.
66 +sort_by = "basename"
67 +# sort_by = "path"
68 +# sort_by = "extension"
69 +# sort_by = "size"
70 +# sort_by = "mode"
71 +# sort_by = "created"
72 +# sort_by = "modified"
73 +# sort_by = "accessed"
75 +# Sort order.
76 +sort_order = "ascending"
77 +# sort_order = "descending"
79 +# Whether to sort directories before files.
80 +sort_dirs_before_files = true
82 +# Whether to show size in human readable format.
83 +human_readable_size = true
85 +# Datetime format for Created, Modified, and Accessed columns.
86 +datetime_format = "%Y-%m-%d %R"
88 +# Margin between columns.
89 +column_spacing = 2
91 +# Columns from left to right.
92 +# Columns with width specified will have fixed widths.
93 +# Remaining screen width is evenly distributed among other columns.
94 +[[ui.columns]]
95 +status = "basename"
97 +[[ui.columns]]
98 +status = "size"
99 +width = 10
101 +[[ui.columns]]
102 +status = "modified"
103 +width = 16
105 +[[ui.columns]]
106 +status = "path"
108 +[ui.unix]
109 +# Format of mode column.
110 +mode_format = "symbolic"
111 +# mode_format = "octal"
113 +[ui.windows]
114 +# Format of mode column.
115 +# mode_format = "traditional"
116 +mode_format = "powershell"
118 +[ui.colors]
119 +# Colors in one of following formats:
120 +# - Color name
121 +# reset, black, white, red, green, yellow, blue, magenta, cyan, gray, darkgray,
122 +# lightred, lightgreen, lightyellow, lightblue, lightmagenta, lightcyan
123 +# - RGB e.g. "66, 135, 245"
124 +# - Hex e.g. "#e43", "#fcba03"
126 +# Text (selected line)
127 +selected_fg = "lightblue"
128 +# Background (selected line)
129 +selected_bg = "reset"
131 +# Text (matched substring)
132 +matched_fg = "black"
133 +# Background (matched substring)
134 +matched_bg = "lightblue"
136 +# Text (error message)
137 +error_fg = "red"
138 +# Background (error message)
139 +error_bg = "reset"
141 +# Prompt
142 +prompt = "lightblue"

pop-os.symlinks

Modified
37 37 topgrade/topgrade.linux.toml
38 38 ~/.config/topgrade.toml
40 +indexa/config.linux.toml
41 +~/.config/indexa/config.toml

x230.symlinks

Modified
1 1 icc/thinkpad_x230.icc
2 2 ~/.config/icc/thinkpad_x230.icc
4 +indexa/config.linux.toml
5 +~/.config/indexa/config.toml