repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

broot: testing new file navigator

03040bbbaa09d95bb117b93e2a78a2a5e788244d

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (67)

NB-00718-WSL.symlinks

Added
new file mode 100644
1 +git/gitconfig
2 +~/.config/git/config
4 +git/gitconfig.linux
5 +~/.config/git/.gitconfig.include
7 +subversion/config
8 +~/.subversion/config
10 +subversion/diff
11 +~/.subversion/diff
13 +subversion/diff3
14 +~/.subversion/diff3
16 +subversion/merge
17 +~/.subversion/merge
19 +tools/git-info
20 +~/.local/bin/git-info
22 +cargo/config.toml
23 +~/.cargo/config.toml
25 +bat/config
26 +~/.config/bat/config
28 +nushell/config.nu
29 +~/.config/nushell/config.nu
31 +nushell/env.nu
32 +~/.config/nushell/env.nu
34 +nushell/login.nu
35 +~/.config/nushell/login.nu
37 +nushell/gen-aliases.nu
38 +~/.config/nushell/gen-aliases.nu
40 +nushell/scripts
41 +~/.config/nushell/scripts
43 +topgrade/topgrade.linux.toml
44 +~/.config/topgrade.toml
46 +wezterm
47 +/mnt/c/Users/okr/.config/wezterm
49 +ssh/config
50 +~/.ssh/config
52 +neovim
53 +~/.config/nvim
55 +fonts
56 +~/.local/share/fonts
58 +pueue
59 +~/.config/pueue
61 +pueue/pueued.service
62 +~/.config/systemd/user/pueued.service

NB-00718.symlinks

Deleted
deleted file mode 100644
1 -git/gitconfig
2 -~/.gitconfig
4 -git/gitconfig.NB-00718
5 -~/.gitconfig.include
7 -ssh/config
8 -~/.ssh/config
10 -topgrade/topgrade.windows.toml
11 -~/AppData/Roaming/topgrade.toml
13 -nushell
14 -~/AppData/Roaming/nushell
16 -bottom
17 -~/AppData/Roaming/bottom
19 -stackoverflow/so
20 -~/AppData/Roaming/Sam Tay/so
22 -subversion/config.win32
23 -~/AppData/Roaming/Subversion/config
25 -subversion/diff.bat
26 -~/AppData/Roaming/Subversion/diff.bat
28 -subversion/diff
29 -~/AppData/Roaming/Subversion/diff
31 -subversion/diff3.bat
32 -~/AppData/Roaming/Subversion/diff3.bat
34 -subversion/diff3
35 -~/AppData/Roaming/Subversion/diff3
37 -subversion/merge.bat
38 -~/AppData/Roaming/Subversion/merge.bat
40 -subversion/merge
41 -~/AppData/Roaming/Subversion/merge
43 -cargo/config.toml
44 -~/scoop/persist/rustup/.cargo/config.toml
46 -indexa/config.windows.toml
47 -~/AppData/Roaming/indexa/config.toml
49 -wezterm
50 -~/.config/wezterm
52 -helix/config.toml
53 -~/AppData/Roaming/helix/config.toml
55 -helix/languages.toml
56 -~/AppData/Roaming/helix/languages.toml
58 -helix/themes
59 -~/AppData/Roaming/helix/themes
61 -neovim
62 -~/AppData/Local/nvim
64 -bat/config
65 -~/AppData/Roaming/bat/config
67 -keyb/keyb.yml
68 -~/AppData/Roaming/keyb/keyb.yml

bootstripper.java

Modified
12 12 public static void main(String[] arguments) throws Throwable {
13 13 var dorkfile_path_input = ".";
14 14 var do_clean = false;
15 + var do_decrypt = false;
16 17 if (arguments.length == 1) {
17 18 if ("clean".equals(arguments[0])) {
18 19 do_clean = true;
19 - } else {
20 + }
21 + else if( "decrypt".equals(arguments[0])) {
22 + do_decrypt = true;
23 + } else {
20 24 dorkfile_path_input = arguments[0];
22 26 } else if (arguments.length == 2) {
23 27 if ("clean".equals(arguments[0])) {
24 28 do_clean = true;
25 29 dorkfile_path_input = arguments[1];
30 + }
31 + else if ("decrypt".equals(arguments[0])) {
32 + do_decrypt = true;
33 + dorkfile_path_input = arguments[1];
26 34 } else {
27 35 usage();
28 36 throw fail();
34 42 var dorkfiles_root = Path.of(dorkfile_path_input).toRealPath();
35 43 log("Assuming dorkfiles root repo in {0}.",
36 44 emphasize_local(dorkfiles_root.toString()));
37 - if (!do_clean)
38 - decrypt_secrets(dorkfiles_root.resolve("tresor"));
39 - var hostname = hostname();
40 - log("Hostname: {0}", emphasize_global(hostname));
41 - var symlinks_file = dorkfiles_root.resolve(hostname + ".symlinks");
42 - if (Files.exists(symlinks_file)) {
43 - if (do_clean)
44 - delete_symlinks(dorkfiles_root, symlinks_file);
45 - else
46 - create_symlinks(dorkfiles_root, symlinks_file);
47 - } else {
48 - throw fail("Expected a file containing symlinks at: {0}. Found nothing!",
49 - symlinks_file);
50 - }
45 + if (do_decrypt) {
46 + decrypt_secrets(dorkfiles_root.resolve("tresor"));
47 + } else {
48 + var hostname = hostname();
49 + log("Hostname: {0}", emphasize_global(hostname));
50 + var symlinks_file = dorkfiles_root.resolve(hostname + ".symlinks");
51 + if (Files.exists(symlinks_file)) {
52 + if (do_clean)
53 + delete_symlinks(dorkfiles_root, symlinks_file);
54 + else
55 + create_symlinks(dorkfiles_root, symlinks_file);
56 + } else {
57 + throw fail("Expected a file containing symlinks at: {0}. Found nothing!",
58 + symlinks_file);
59 + }
60 + }
53 63 static void decrypt_secrets(Path secrets_root) throws Throwable {
54 - log("{0}:Decrypting files in {1} folder.", emphasize_global("TODO"),
64 + log("{0}:Decrypting files in {1} folder, using rbw.", emphasize_global("TODO"),
55 65 emphasize_local(secrets_root.getFileName().toString()));
75 85 var target_path = Path.of(target.replace("~", home)).toAbsolutePath();
77 87 if (Files.exists(target_path, LinkOption.NOFOLLOW_LINKS)) {
78 - var symlink_target = target_path.toRealPath();
79 - if (symlink_target.compareTo(source_path) == 0) {
80 - log("\nOK {0} exists and points to {1} in dorkfiles!\nDeleting {0}.",
88 + if (Files.isSymbolicLink(target_path)) {
89 + log("\nOK {0} exists and points to {1}, a symlink indeed!\nDeleting {0}.",
81 90 emphasize_global(target_path.toString()),
82 91 emphasize_local(source_path.toString()));
83 92 // a symlink is always a file. no need to handle folders
84 93 Files.delete(target_path);
85 94 } else {
86 - log("\nNOPE {0} exists, but it points outside of dorkfiles! Clean manually.",
95 + log("\nNOPE {0} exists, but it is not a symlink! Clean manually.",
87 96 target_path.toString());

broot/conf.hjson

Added
new file mode 100644
1 +###############################################################
2 +# This configuration file lets you
3 +# - define new commands
4 +# - change the shortcut or triggering keys of built-in verbs
5 +# - change the colors
6 +# - set default values for flags
7 +# - set special behaviors on specific paths
8 +# - and more...
9 +#
10 +# Configuration documentation is available at
11 +# https://dystroy.org/broot
13 +# This file's format is Hjson ( https://hjson.github.io/ ). Some
14 +# properties are commented out. To enable them, remove the `#`.
16 +###############################################################
18 +###############################################################
19 +# Default flags
20 +# You can set up flags you want broot to start with by
21 +# default, for example `default_flags="-ihp"` if you usually want
22 +# to see hidden and gitignored files and the permissions (then
23 +# if you don't want the hidden files at a specific launch,
24 +# you can launch broot with `br -H`).
25 +# A popular flag is the `g` one which displays git related info.
27 +# default_flags:
29 +###############################################################
30 +# Terminal's title
31 +# If you want the terminal's title to be updated when you change
32 +# directory, set a terminal_title pattern by uncommenting one of
33 +# the examples below and tuning it to your taste.
35 +# terminal_title: "[broot] {git-name}"
36 +# terminal_title: "{file} 🐄"
37 +# terminal_title: "-= {file-name} =-"
39 +###############################################################
40 +# Date/Time format
41 +# If you want to change the format for date/time, uncomment the
42 +# following line and change it according to
43 +# https://docs.rs/chrono/0.4.11/chrono/format/strftime/index.html
45 +# date_time_format: %Y/%m/%d %R
47 +###############################################################
48 +# uncomment to activate modal mode
50 +# (you really should read https://dystroy.org/broot/modal/
51 +# before as it may not suit everybody even among vim users)
53 +# You may start either in 'command' mode, or in 'input' mode
55 +# modal: true
56 +# initial_mode: command
58 +###############################################################
59 +# Whether to mark the selected line with a triangle
61 +show_selection_mark: true
63 +###############################################################
64 +# Column order
65 +# cols_order, if specified, must be a permutation of the following
66 +# array. You should keep the name column at the end as it has a
67 +# variable length.
69 +# cols_order: [
70 +# mark
71 +# git
72 +# size
73 +# permission
74 +# date
75 +# count
76 +# branch
77 +# name
78 +# ]
80 +###############################################################
81 +# True Colors
82 +# If this parameter isn't set, broot tries to automatically
83 +# determine whether true colors (24 bits) are available.
84 +# As this process is unreliable, you may uncomment this setting
85 +# and set it to false or true if you notice the colors in
86 +# previewed images are too off.
88 +true_colors: true
90 +###############################################################
91 +# Icons
92 +# If you want to display icons in broot, uncomment this line
93 +# (see https://dystroy.org/broot/icons for installation and
94 +# troubleshooting)
96 +# icon_theme: vscode
98 +###############################################################
99 +# Special paths
100 +# If some paths must be handled specially, uncomment (and change
101 +# this section as per the examples)
102 +# Setting "list":"never" on a dir prevents broot from looking at its
103 +# children when searching, unless the dir is the selected root.
104 +# Setting "sum":"never" on a dir prevents broot from looking at its
105 +# children when computing the total size and count of files.
106 +# Setting "show":"always" makes a file visible even if its name
107 +# starts with a dot.
108 +# Setting "list":"always" may be useful on a link to a directory
109 +# (they're otherwise not entered by broot unless selected)
111 +special_paths: {
112 + "/media" : {
113 + list: "never"
114 + sum: "never"
116 + "~/.config": { "show": "always" }
117 + "trav": {
118 + show: always
119 + list: "always",
120 + sum: "never"
122 + # "~/useless": { "show": "never" }
123 + # "~/my-link-I-want-to-explore": { "list": "always" }
126 +###############################################################
127 +# Quit on last cancel
128 +# You can usually cancel the last state change on escape.
129 +# If you want the escape key to quit broot when there's nothing
130 +# to cancel (for example when you just opened broot), uncomment
131 +# this parameter
133 +# quit_on_last_cancel: true
135 +###############################################################
136 +# Search modes
138 +# broot allows many search modes.
139 +# A search mode is defined by
140 +# - the way to search: 'fuzzy', 'exact', 'regex', or 'tokens'.
141 +# - where to search: file 'name', 'path', or file 'content'
142 +# A search pattern may for example be "fuzzy path" (default),
143 +# "regex content" or "exact path".
145 +# The search mode is selected from its prefix. For example, if
146 +# you type "abc", the default mode is "fuzzy path". If you type
147 +# "/abc", the mode is "regex path". If you type "rn/abc", the mode
148 +# is "regex name".
150 +# This mapping may be modified. You may want to dedicate the
151 +# empty prefix (the one which doesn't need a '/') to the
152 +# search mode you use most often. The example below makes it
153 +# easy to search on name rather than on the subpath.
155 +# More information on
156 +# https://dystroy.org/broot/input/#the-filtering-pattern
158 +# search_modes: {
159 +# <empty>: fuzzy name
160 +# /: regex name
161 +# }
163 +###############################################################
164 +# File Extension Colors
166 +# uncomment and modify the next section if you want to color
167 +# file name depending on their extension
169 +# ext_colors: {
170 +# png: rgb(255, 128, 75)
171 +# rs: yellow
172 +# }
174 +###############################################################
175 +# Max file size for content search
177 +# Bigger files are ignored when searching their content. You
178 +# can specify this size either in ISO units (eg 5GB) or in
179 +# the old binary units (eg 44Kib)
180 +content_search_max_file_size: 10MB
182 +###############################################################
183 +# Max Panels Count
185 +# Change this if you sometimes want to have more than 2 panels
186 +# open
187 +# max_panels_count: 2
189 +###############################################################
190 +# Update work dir
192 +# By default, broot process' work dir is kept in sync with the
193 +# current's panel root. If you want to keep it unchanged,
194 +# uncomment this setting
196 +# update_work_dir: false
198 +###############################################################
199 +# Kitty Keyboard extension
201 +# If you want to use advanced keyboard shortcuts in Kitty
202 +# compatible terminals (Kitty, Wezterm), set this to true.
204 +# This makes it possible to use shortcuts like 'space-n',
205 +# 'ctrl-alt-a-b', 'shift-space', etc.
207 +enable_kitty_keyboard: false
209 +###############################################################
210 +# lines around matching line in filtered preview
212 +# When searching the content of a file, you can have either
213 +# only the matching lines displayed, or some of the surrounding
214 +# ones too.
216 +lines_before_match_in_preview: 1
217 +lines_after_match_in_preview: 1
219 +###############################################################
220 +# transformations before preview
222 +# It's possible to define transformations to apply to some files
223 +# before calling one of the default preview renderers in broot.
224 +# Below are two examples that you may uncomment and adapt:
226 +preview_transformers: [
227 + // # Use mutool to render any PDF file as an image
228 + // # In this example we use placeholders for the input and output files
229 + // {
230 + // input_extensions: [ "pdf" ] // case doesn't matter
231 + // output_extension: png
232 + // mode: image
233 + // command: [ "mutool", "draw", "-w", "1000", "-o", "{output-path}", "{input-path}" ]
234 + // }
236 + // # Use LibreOffice to render Office files as images
237 + // # In this example, {output-dir} is used to specify where LibreOffice must write the result
238 + // {
239 + // input_extensions: [ "xls", "xlsx", "doc", "docx", "ppt", "pptx", "ods", "odt", "odp" ]
240 + // output_extension: png
241 + // mode: image
242 + // command: [
243 + // "libreoffice", "--headless",
244 + // "--convert-to", "png",
245 + // "--outdir", "{output-dir}",
246 + // "{input-path}"
247 + // ]
248 + // }
250 + // # Use jq to beautify JSON
251 + // # In this example, the command refers to neither the input nor the output,
252 + // # so broot pipes them to the stdin and stdout of the jq process
253 + // {
254 + // input_extensions: [ "json" ]
255 + // output_extension: json
256 + // mode: text
257 + // command: [ "jq" ]
258 + // }
261 +###############################################################
262 +# Imports
264 +# While it's possible to have all configuration in one file,
265 +# it's more convenient to split it in several ones.
266 +# Importing also allows to set a condition on the terminal's
267 +# color, which makes it possible to have a different skin
268 +# chosen when your terminal has a light background and when
269 +# it has a light one.
270 +imports: [
272 + # Verbs are better configured in verbs.hjson. But you
273 + # can also add another files for your personal verbs
274 + verbs.hjson
276 + # This file contains the skin to use when the terminal
277 + # is dark (or when this couldn't be determined)
279 + luma: [
280 + dark
281 + unknown
283 + # (un)comment to choose your preferred skin
284 + file: skins/dark-blue.hjson
285 + //file: skins/catppuccin-macchiato.hjson
286 + //file: skins/catppuccin-mocha.hjson
287 + //file: skins/dark-gruvbox.hjson
288 + //file: skins/dark-orange.hjson
289 + //file: skins/solarized-dark.hjson
292 + # This skin is imported when your terminal is light
294 + luma: light
295 + # (un)comment to choose your preferred skin
296 + //file: skins/solarized-light.hjson
297 + file: skins/white.hjson

broot/launcher/bash/br

Added
new file mode 120000
1 +/home/oli/.local/share/broot/launcher/bash/1

broot/launcher/installed-v4

Added
new file mode 100644
2 +This file tells broot the installation of the br function was done.
3 +If there's a problem and you want to install it again run
4 + broot -- install

broot/launcher/nushell/br

Added
new file mode 120000
1 +/home/oli/.local/share/broot/launcher/nushell/6

broot/skins/catppuccin-macchiato.hjson

Added
new file mode 100644
1 +###############################################################
2 +# A skin for a terminal with a dark background
3 +# This skin uses RGB values so won't work for some
4 +# terminals.
5 +#
6 +# Created by Majixed
7 +# Based on the catppuccin-mocha theme by A. Taha Baki <atahabaki@pm.me>
8 +#
9 +# Doc at https://dystroy.org/broot/skins/
10 +###############################################################
12 +skin: {
13 + input: rgb(202, 211, 245) none
14 + # fg:none bg:$surface2
15 + selected_line: none rgb(91, 96, 120)
16 + # fg:$text bg:none
17 + default: rgb(202, 211, 245) none
18 + # fg:$overlay0 bg:none
19 + tree: rgb(110, 115, 141) none
20 + # fg:$sapphire bg:none
21 + parent: rgb(125, 196, 228) none
22 + file: none none
24 +### PERMISSIONS
26 + perm__: rgb(184, 192, 224) none
27 + # $peach
28 + perm_r: rgb(245, 169, 127) none
29 + # $maroon
30 + perm_w: rgb(238, 153, 160) none
31 + # $green
32 + perm_x: rgb(166, 218, 149) none
33 + # $teal
34 + owner: rgb(139, 213, 202) none
35 + # $sky
36 + group: rgb(145, 215, 227) none
38 +### DATE
40 + # $subtext1
41 + dates: rgb(184, 192, 224) none
43 +### DIRECTORY
45 + # $lavender
46 + directory: rgb(183, 189, 248) none Bold
47 + # $green
48 + exe: rgb(166, 218, 149) none
49 + # $yellow
50 + link: rgb(238, 212, 159) none
51 + # $subtext0
52 + pruning: rgb(165, 173, 203) none Italic
54 +### PREVIEW
56 + # fg:$text bg:$mantle
57 + preview_title: rgb(202, 211, 245) rgb(30, 32, 48)
58 + # fg:$text bg:$mantle
59 + preview: rgb(202, 211, 245) rgb(30, 32, 48)
60 + # fg:$overlay0
61 + preview_line_number: rgb(110, 115, 141) none
62 + # fg:$overlay0
63 + preview_separator: rgb(110, 115, 141) none
65 +### MATCH
67 + char_match: rgb(238, 212, 159) rgb(73, 77, 100) Bold Italic
68 + content_match: rgb(238, 212, 159) rgb(73, 77, 100) Bold Italic
69 + preview_match: rgb(238, 212, 159) rgb(73, 77, 100) Bold Italic
71 + # children count
72 + # fg:$yellow bg:none
73 + count: rgb(238, 212, 159) none
74 + sparse: rgb(237, 135, 150) none
75 + content_extract: rgb(237, 135, 150) none Italic
77 +### GIT
79 + git_branch: rgb(245, 169, 127) none
80 + git_insertions: rgb(245, 169, 127) none
81 + git_deletions: rgb(245, 169, 127) none
82 + git_status_current: rgb(245, 169, 127) none
83 + git_status_modified: rgb(245, 169, 127) none
84 + git_status_new: rgb(245, 169, 127) none Bold
85 + git_status_ignored: rgb(245, 169, 127) none
86 + git_status_conflicted: rgb(245, 169, 127) none
87 + git_status_other: rgb(245, 169, 127) none
88 + staging_area_title: rgb(245, 169, 127) none
90 +### FLAG
92 + flag_label: rgb(237, 135, 150) none
93 + flag_value: rgb(237, 135, 150) none Bold
95 +### STATUS
97 + # fg:none #bg:$mantle
98 + status_normal: none rgb(30, 32, 48)
99 + # fg:$red bg:$mantle
100 + status_italic: rgb(237, 135, 150) rgb(30, 32, 48) Italic
101 + # fg:$maroon bg:$mantle
102 + status_bold: rgb(238, 153, 160) rgb(30, 32, 48) Bold
103 + # fg:$maroon bg:$mantle
104 + status_ellipsis: rgb(238, 153, 160) rgb(30, 32, 48) Bold
105 + # fg:$text bg:$red
106 + status_error: rgb(202, 211, 245) rgb(237, 135, 150)
107 + # fg:$maroon bg:$mantle
108 + status_job: rgb(238, 153, 160) rgb(40, 38, 37)
109 + # fg:$maroon bg:$mantle
110 + status_code: rgb(238, 153, 160) rgb(30, 32, 48) Italic
111 + # fg:$maroon bg:$mantle
112 + mode_command_mark: rgb(238, 153, 160) rgb(30, 32, 48) Bold
114 +### HELP
116 + # fg:$text
117 + help_paragraph: rgb(202, 211, 245) none
118 + # fg:$red
119 + help_headers: rgb(237, 135, 150) none Bold
120 + # fg:$peach
121 + help_bold: rgb(245, 169, 127) none Bold
122 + # fg:$yellow
123 + help_italic: rgb(238, 212, 159) none Italic
124 + # fg:green bg:$surface0
125 + help_code: rgb(166, 218, 149) rgb(54, 58, 79)
126 + # fg:$overlay0
127 + help_table_border: rgb(110, 115, 141) none
129 +### HEX
131 + # fg:$text
132 + hex_null: rgb(202, 211, 245) none
133 + # fg:$peach
134 + hex_ascii_graphic: rgb(245, 169, 127) none
135 + # fg:$green
136 + hex_ascii_whitespace: rgb(166, 218, 149) none
137 + # fg: teal
138 + hex_ascii_other: rgb(139, 213, 202) none
139 + # fg: red
140 + hex_non_ascii: rgb(237, 135, 150) none
142 + # fg:$text bg:$red
143 + file_error: rgb(243, 60, 44) none
145 +### PURPOSE
147 + purpose_normal: none none
148 + purpose_italic: rgb(169, 90, 127) none Italic
149 + purpose_bold: rgb(169, 90, 127) none Bold
150 + purpose_ellipsis: none none
152 +### SCROLLBAR
154 + # fg:$surface0
155 + scrollbar_track: rgb(54, 58, 79) none
156 + # fg:$surface1
157 + scrollbar_thumb: rgb(91, 96, 120) none
159 +### GOODTOBAD
161 + good_to_bad_0: rgb(166, 218, 149) none
162 + good_to_bad_1: rgb(139, 213, 202) none
163 + good_to_bad_2: rgb(145, 215, 227) none
164 + good_to_bad_3: rgb(125, 196, 228) none
165 + good_to_bad_4: rgb(138, 173, 244) none
166 + good_to_bad_5: rgb(183, 189, 248) none
167 + good_to_bad_6: rgb(198, 160, 246) none
168 + good_to_bad_7: rgb(245, 169, 127) none
169 + good_to_bad_8: rgb(238, 153, 160) none
170 + good_to_bad_9: rgb(237, 135, 150) none

broot/skins/catppuccin-mocha.hjson

Added
new file mode 100644
1 +###############################################################
2 +# A skin for a terminal with a dark background
3 +# This skin uses RGB values so won't work for some
4 +# terminals.
5 +#
6 +# Created by A. Taha Baki <atahabaki@pm.me>
7 +# Based on the built-in gruvbox theme.
8 +#
9 +# Doc at https://dystroy.org/broot/skins/
10 +###############################################################
12 +skin: {
13 + input: rgb(205, 214, 244) none
14 + # fg:none bg:$surface2
15 + selected_line: none rgb(88, 91, 112)
16 + # fg:$text bg:none
17 + default: rgb(205, 214, 244) none
18 + # fg:$overlay0 bg:none
19 + tree: rgb(108, 112, 134) none
20 + # fg:$sapphire bg:none
21 + parent: rgb(116, 199, 236) none
22 + file: none none
24 +### PERMISSIONS
26 + perm__: rgb(186, 194, 222) none
27 + # $peach
28 + perm_r: rgb(250, 179, 135) none
29 + # $maroon
30 + perm_w: rgb(235, 160, 172) none
31 + # $green
32 + perm_x: rgb(166, 227, 161) none
33 + # $teal
34 + owner: rgb(148, 226, 213) none
35 + # $sky
36 + group: rgb(137, 220, 235) none
38 +### DATE
40 + # $subtext1
41 + dates: rgb(186, 194, 222) none
43 +### DIRECTORY
45 + # $lavender
46 + directory: rgb(180, 190, 254) none Bold
47 + # $green
48 + exe: rgb(166, 227, 161) none
49 + # $yellow
50 + link: rgb(249, 226, 175) none
51 + # $subtext0
52 + pruning: rgb(166, 173, 200) none Italic
54 +### PREVIEW
56 + # fg:$text bg:$mantle
57 + preview_title: rgb(205, 214, 244) rgb(24, 24, 37)
58 + # fg:$text bg:$mantle
59 + preview: rgb(205, 214, 244) rgb(24, 24, 37)
60 + # fg:$overlay0
61 + preview_line_number: rgb(108, 112, 134) none
62 + # fg:$overlay0
63 + preview_separator: rgb(108, 112, 134) none
65 +### MATCH
67 + char_match: rgb(249, 226, 175) rgb(69, 71, 90) Bold Italic
68 + content_match: rgb(249, 226, 175) rgb(69, 71, 90) Bold Italic
69 + preview_match: rgb(249, 226, 175) rgb(69, 71, 90) Bold Italic
71 + # children count
72 + # fg:$yellow bg:none
73 + count: rgb(249, 226, 175) none
74 + sparse: rgb(243, 139, 168) none
75 + content_extract: rgb(243, 139, 168) none Italic
77 +### GIT
79 + git_branch: rgb(250, 179, 135) none
80 + git_insertions: rgb(250, 179, 135) none
81 + git_deletions: rgb(250, 179, 135) none
82 + git_status_current: rgb(250, 179, 135) none
83 + git_status_modified: rgb(250, 179, 135) none
84 + git_status_new: rgb(250, 179, 135) none Bold
85 + git_status_ignored: rgb(250, 179, 135) none
86 + git_status_conflicted: rgb(250, 179, 135) none
87 + git_status_other: rgb(250, 179, 135) none
88 + staging_area_title: rgb(250, 179, 135) none
90 +### FLAG
92 + flag_label: rgb(243, 139, 168) none
93 + flag_value: rgb(243, 139, 168) none Bold
95 +### STATUS
97 + # fg:none #bg:$mantle
98 + status_normal: none rgb(24, 24, 37)
99 + # fg:$red bg:$mantle
100 + status_italic: rgb(243, 139, 168) rgb(24, 24, 37) Italic
101 + # fg:$maroon bg:$mantle
102 + status_bold: rgb(235, 160, 172) rgb(24, 24, 37) Bold
103 + # fg:$maroon bg:$mantle
104 + status_ellipsis: rgb(235, 160, 172) rgb(24, 24, 37) Bold
105 + # fg:$text bg:$red
106 + status_error: rgb(205, 214, 244) rgb(243, 139, 168)
107 + # fg:$maroon bg:$mantle
108 + status_job: rgb(235, 160, 172) rgb(40, 38, 37)
109 + # fg:$maroon bg:$mantle
110 + status_code: rgb(235, 160, 172) rgb(24, 24, 37) Italic
111 + # fg:$maroon bg:$mantle
112 + mode_command_mark: rgb(235, 160, 172) rgb(24, 24, 37) Bold
114 +### HELP
116 + # fg:$text
117 + help_paragraph: rgb(205, 214, 244) none
118 + # fg:$red
119 + help_headers: rgb(243, 139, 168) none Bold
120 + # fg:$peach
121 + help_bold: rgb(250, 179, 135) none Bold
122 + # fg:$yellow
123 + help_italic: rgb(249, 226, 175) none Italic
124 + # fg:green bg:$surface0
125 + help_code: rgb(166, 227, 161) rgb(49, 50, 68)
126 + # fg:$overlay0
127 + help_table_border: rgb(108, 112, 134) none
129 +### HEX
131 + # fg:$text
132 + hex_null: rgb(205, 214, 244) none
133 + # fg:$peach
134 + hex_ascii_graphic: rgb(250, 179, 135) none
135 + # fg:$green
136 + hex_ascii_whitespace: rgb(166, 227, 161) none
137 + # fg: teal
138 + hex_ascii_other: rgb(148, 226, 213) none
139 + # fg: red
140 + hex_non_ascii: rgb(243, 139, 168) none
142 + # fg:$text bg:$red
143 + file_error: rgb(251, 73, 52) none
145 +### PURPOSE
147 + purpose_normal: none none
148 + purpose_italic: rgb(177, 98, 134) none Italic
149 + purpose_bold: rgb(177, 98, 134) none Bold
150 + purpose_ellipsis: none none
152 +### SCROLLBAR
154 + # fg:$surface0
155 + scrollbar_track: rgb(49, 50, 68) none
156 + # fg:$surface1
157 + scrollbar_thumb: rgb(88, 91, 112) none
159 +### GOODTOBAD
161 + good_to_bad_0: rgb(166, 227, 161) none
162 + good_to_bad_1: rgb(148, 226, 213) none
163 + good_to_bad_2: rgb(137, 220, 235) none
164 + good_to_bad_3: rgb(116, 199, 236) none
165 + good_to_bad_4: rgb(137, 180, 250) none
166 + good_to_bad_5: rgb(180, 190, 254) none
167 + good_to_bad_6: rgb(203, 166, 247) none
168 + good_to_bad_7: rgb(250, 179, 135) none
169 + good_to_bad_8: rgb(235, 160, 172) none
170 + good_to_bad_9: rgb(243, 139, 168) none

broot/skins/dark-blue.hjson

Added
new file mode 100644
1 +###############################################################
2 +# A skin for a terminal with a dark background
3 +#
4 +# To create your own skin, copy this file, change the entries
5 +# and import your skin file from the main conf file (look
6 +# for "imports")
7 +#
8 +# Doc at https://dystroy.org/broot/skins/
9 +###############################################################
11 +###############################################################
12 +# Skin
13 +# If you want to change the colors of broot,
14 +# uncomment the following block and start messing
15 +# with the various values.
16 +# A skin entry value is made of two parts separated with a '/':
17 +# The first one is the skin for the active panel.
18 +# The second one, optional, is the skin for non active panels.
19 +# You may find explanations and other skins on
20 +# https://dystroy.org/broot/skins
21 +###############################################################
22 +skin: {
23 + default: gray(22) none / gray(20) none
24 + tree: gray(8) None / gray(4) None
25 + parent: gray(18) None / gray(13) None
26 + file: gray(22) None / gray(15) None
27 + directory: ansi(110) None bold / ansi(110) None
28 + exe: Cyan None
29 + link: Magenta None
30 + pruning: gray(12) None Italic
31 + perm__: gray(5) None
32 + perm_r: ansi(94) None
33 + perm_w: ansi(132) None
34 + perm_x: ansi(65) None
35 + owner: ansi(138) None
36 + group: ansi(131) None
37 + count: ansi(138) gray(4)
38 + dates: ansi(66) None
39 + sparse: ansi(214) None
40 + content_extract: ansi(29) None
41 + content_match: ansi(34) None
42 + device_id_major: ansi(138) None
43 + device_id_sep: ansi(102) None
44 + device_id_minor: ansi(138) None
45 + git_branch: ansi(178) None
46 + git_insertions: ansi(28) None
47 + git_deletions: ansi(160) None
48 + git_status_current: gray(5) None
49 + git_status_modified: ansi(28) None
50 + git_status_new: ansi(94) None bold
51 + git_status_ignored: gray(17) None
52 + git_status_conflicted: ansi(88) None
53 + git_status_other: ansi(88) None
54 + selected_line: None gray(6) / None gray(4)
55 + char_match: Green None
56 + file_error: Red None
57 + flag_label: gray(15) gray(2)
58 + flag_value: ansi(178) gray(2) bold
59 + input: White gray(2) / gray(15) None
60 + status_error: gray(22) ansi(124)
61 + status_job: ansi(220) gray(5)
62 + status_normal: gray(20) gray(4) / gray(2) gray(2)
63 + status_italic: ansi(178) gray(4) / gray(2) gray(2)
64 + status_bold: ansi(178) gray(4) bold / gray(2) gray(2)
65 + status_code: ansi(229) gray(4) / gray(2) gray(2)
66 + status_ellipsis: gray(19) gray(1) / gray(2) gray(2)
67 + purpose_normal: gray(20) gray(2)
68 + purpose_italic: ansi(178) gray(2)
69 + purpose_bold: ansi(178) gray(2) bold
70 + purpose_ellipsis: gray(20) gray(2)
71 + scrollbar_track: gray(7) None / gray(4) None
72 + scrollbar_thumb: gray(22) None / gray(14) None
73 + help_paragraph: gray(20) None
74 + help_bold: ansi(178) None bold
75 + help_italic: ansi(229) None
76 + help_code: gray(21) gray(3)
77 + help_headers: ansi(178) None
78 + help_table_border: ansi(239) None
79 + preview: gray(20) gray(1) / gray(18) gray(2)
80 + preview_title: gray(23) gray(2) / gray(21) gray(2)
81 + preview_line_number: gray(12) gray(3)
82 + preview_separator: gray(5) None
83 + preview_match: None ansi(29)
84 + hex_null: gray(8) None
85 + hex_ascii_graphic: gray(18) None
86 + hex_ascii_whitespace: ansi(143) None
87 + hex_ascii_other: ansi(215) None
88 + hex_non_ascii: ansi(167) None
89 + staging_area_title: gray(22) gray(2) / gray(20) gray(3)
90 + mode_command_mark: gray(5) ansi(204) bold
91 + good_to_bad_0: ansi(28)
92 + good_to_bad_1: ansi(29)
93 + good_to_bad_2: ansi(29)
94 + good_to_bad_3: ansi(29)
95 + good_to_bad_4: ansi(29)
96 + good_to_bad_5: ansi(100)
97 + good_to_bad_6: ansi(136)
98 + good_to_bad_7: ansi(172)
99 + good_to_bad_8: ansi(166)
100 + good_to_bad_9: ansi(196)
103 +###############################################################
104 +# Syntax Theme
106 +# If you want to choose the theme used for preview, uncomment
107 +# one of the following lines:
109 +# syntax_theme: GitHub
110 +# syntax_theme: SolarizedDark
111 +# syntax_theme: SolarizedLight
112 +syntax_theme: MochaDark
113 +# syntax_theme: MochaDark
114 +# syntax_theme: OceanDark
115 +# syntax_theme: OceanLight

broot/skins/dark-gruvbox.hjson

Added
new file mode 100644
1 +###############################################################
2 +# A skin for a terminal with a dark background
3 +# This skin uses RGB values so won't work for some
4 +# terminals.
5 +#
6 +#
7 +# (initially contributed by @basbebe)
8 +#
9 +# Doc at https://dystroy.org/broot/skins/
10 +###############################################################
12 +skin: {
13 + default: rgb(235, 219, 178) none / rgb(189, 174, 147) none
14 + tree: rgb(70, 70, 80) None / rgb(60, 60, 60) None
15 + parent: rgb(235, 219, 178) none / rgb(189, 174, 147) none Italic
16 + file: None None / None None Italic
17 + directory: rgb(131, 165, 152) None Bold / rgb(131, 165, 152) None
18 + exe: rgb(184, 187, 38) None
19 + link: rgb(104, 157, 106) None
20 + pruning: rgb(124, 111, 100) None Italic
21 + perm__: None None
22 + perm_r: rgb(215, 153, 33) None
23 + perm_w: rgb(204, 36, 29) None
24 + perm_x: rgb(152, 151, 26) None
25 + owner: rgb(215, 153, 33) None Bold
26 + group: rgb(215, 153, 33) None
27 + count: rgb(69, 133, 136) rgb(50, 48, 47)
28 + dates: rgb(168, 153, 132) None
29 + sparse: rgb(250, 189,47) None
30 + content_extract: ansi(29) None Italic
31 + content_match: ansi(34) None Bold
32 + git_branch: rgb(251, 241, 199) None
33 + git_insertions: rgb(152, 151, 26) None
34 + git_deletions: rgb(190, 15, 23) None
35 + git_status_current: rgb(60, 56, 54) None
36 + git_status_modified: rgb(152, 151, 26) None
37 + git_status_new: rgb(104, 187, 38) None Bold
38 + git_status_ignored: rgb(213, 196, 161) None
39 + git_status_conflicted: rgb(204, 36, 29) None
40 + git_status_other: rgb(204, 36, 29) None
41 + selected_line: None rgb(60, 56, 54) / None rgb(50, 48, 47)
42 + char_match: rgb(250, 189, 47) None
43 + file_error: rgb(251, 73, 52) None
44 + flag_label: rgb(189, 174, 147) None
45 + flag_value: rgb(211, 134, 155) None Bold
46 + input: rgb(251, 241, 199) None / rgb(189, 174, 147) None Italic
47 + status_error: rgb(213, 196, 161) rgb(204, 36, 29)
48 + status_job: rgb(250, 189, 47) rgb(60, 56, 54)
49 + status_normal: None rgb(40, 38, 37) / None None
50 + status_italic: rgb(211, 134, 155) rgb(40, 38, 37) Italic / None None
51 + status_bold: rgb(211, 134, 155) rgb(40, 38, 37) Bold / None None
52 + status_code: rgb(251, 241, 199) rgb(40, 38, 37) / None None
53 + status_ellipsis: rgb(251, 241, 199) rgb(40, 38, 37) Bold / None None
54 + purpose_normal: None None
55 + purpose_italic: rgb(177, 98, 134) None Italic
56 + purpose_bold: rgb(177, 98, 134) None Bold
57 + purpose_ellipsis: None None
58 + scrollbar_track: rgb(80, 73, 69) None / rgb(50, 48, 47) None
59 + scrollbar_thumb: rgb(213, 196, 161) None / rgb(102, 92, 84) None
60 + help_paragraph: None None
61 + help_bold: rgb(214, 93, 14) None Bold
62 + help_italic: rgb(211, 134, 155) None Italic
63 + help_code: rgb(142, 192, 124) rgb(50, 48, 47)
64 + help_headers: rgb(254, 128, 25) None Bold
65 + help_table_border: rgb(80, 73, 69) None
66 + preview_title: rgb(235, 219, 178) rgb(40, 40, 40) / rgb(189, 174, 147) rgb(40, 40, 40)
67 + preview: rgb(235, 219, 178) rgb(40, 40, 40) / rgb(235, 219, 178) rgb(40, 40, 40)
68 + preview_line_number: rgb(124, 111, 100) None / rgb(124, 111, 100) rgb(40, 40, 40)
69 + preview_separator: rgb(70, 70, 80) None / rgb(60, 60, 60) None
70 + preview_match: None ansi(29) Bold
71 + hex_null: rgb(189, 174, 147) None
72 + hex_ascii_graphic: rgb(213, 196, 161) None
73 + hex_ascii_whitespace: rgb(152, 151, 26) None
74 + hex_ascii_other: rgb(254, 128, 25) None
75 + hex_non_ascii: rgb(214, 93, 14) None
76 + staging_area_title: rgb(235, 219, 178) rgb(40, 40, 40) / rgb(189, 174, 147) rgb(40, 40, 40)
77 + mode_command_mark: gray(5) ansi(204) Bold
78 + good_to_bad_0: ansi(28)
79 + good_to_bad_1: ansi(29)
80 + good_to_bad_2: ansi(29)
81 + good_to_bad_3: ansi(29)
82 + good_to_bad_4: ansi(29)
83 + good_to_bad_5: ansi(100)
84 + good_to_bad_6: ansi(136)
85 + good_to_bad_7: ansi(172)
86 + good_to_bad_8: ansi(166)
87 + good_to_bad_9: ansi(196)

broot/skins/dark-orange.hjson

Added
new file mode 100644
1 +###############################################################
2 +# A skin for a terminal with a dark background
3 +#
4 +# To create your own skin, copy this file, change the entries
5 +# and import your skin file from the main conf file (look
6 +# for "imports")
7 +#
8 +# Doc at https://dystroy.org/broot/skins/
9 +###############################################################
11 +###############################################################
12 +# Skin
13 +# If you want to change the colors of broot,
14 +# uncomment the following bloc and start messing
15 +# with the various values.
16 +# A skin entry value is made of two parts separated with a '/':
17 +# The first one is the skin for the active panel.
18 +# The second one, optional, is the skin for non active panels.
19 +# You may find explanations and other skins on
20 +# https://dystroy.org/broot/skins
21 +###############################################################
22 +skin: {
23 + default: none none / gray(20) none
24 + tree: ansi(94) None / gray(3) None
25 + parent: gray(18) None / gray(13) None
26 + file: gray(20) None / gray(15) None
27 + directory: ansi(208) None Bold / ansi(172) None bold
28 + exe: Cyan None
29 + link: Magenta None
30 + pruning: gray(12) None Italic
31 + perm__: gray(5) None
32 + perm_r: ansi(94) None
33 + perm_w: ansi(132) None
34 + perm_x: ansi(65) None
35 + owner: ansi(138) None
36 + group: ansi(131) None
37 + count: ansi(136) gray(3)
38 + dates: ansi(66) None
39 + sparse: ansi(214) None
40 + content_extract: ansi(29) None
41 + content_match: ansi(34) None
42 + git_branch: ansi(229) None
43 + git_insertions: ansi(28) None
44 + git_deletions: ansi(160) None
45 + git_status_current: gray(5) None
46 + git_status_modified: ansi(28) None
47 + git_status_new: ansi(94) None Bold
48 + git_status_ignored: gray(17) None
49 + git_status_conflicted: ansi(88) None
50 + git_status_other: ansi(88) None
51 + selected_line: None gray(5) / None gray(4)
52 + char_match: Yellow None
53 + file_error: Red None
54 + flag_label: gray(15) None
55 + flag_value: ansi(208) None Bold
56 + input: White None / gray(15) gray(2)
57 + status_error: gray(22) ansi(124)
58 + status_job: ansi(220) gray(5)
59 + status_normal: gray(20) gray(3) / gray(2) gray(2)
60 + status_italic: ansi(208) gray(3) / gray(2) gray(2)
61 + status_bold: ansi(208) gray(3) Bold / gray(2) gray(2)
62 + status_code: ansi(229) gray(3) / gray(2) gray(2)
63 + status_ellipsis: gray(19) gray(1) / gray(2) gray(2)
64 + purpose_normal: gray(20) gray(2)
65 + purpose_italic: ansi(178) gray(2)
66 + purpose_bold: ansi(178) gray(2) Bold
67 + purpose_ellipsis: gray(20) gray(2)
68 + scrollbar_track: gray(7) None / gray(4) None
69 + scrollbar_thumb: gray(22) None / gray(14) None
70 + help_paragraph: gray(20) None
71 + help_bold: ansi(208) None Bold
72 + help_italic: ansi(166) None
73 + help_code: gray(21) gray(3)
74 + help_headers: ansi(208) None
75 + help_table_border: ansi(239) None
76 + preview: gray(20) gray(1) / gray(18) gray(2)
77 + preview_line_number: gray(12) gray(3)
78 + preview_separator: ansi(94) None / gray(3) None
79 + preview_match: None ansi(29)
80 + hex_null: gray(11) None
81 + hex_ascii_graphic: gray(18) None
82 + hex_ascii_whitespace: ansi(143) None
83 + hex_ascii_other: ansi(215) None
84 + hex_non_ascii: ansi(167) None
85 + good_to_bad_0: ansi(28)
86 + good_to_bad_1: ansi(29)
87 + good_to_bad_2: ansi(29)
88 + good_to_bad_3: ansi(29)
89 + good_to_bad_4: ansi(29)
90 + good_to_bad_5: ansi(100)
91 + good_to_bad_6: ansi(136)
92 + good_to_bad_7: ansi(172)
93 + good_to_bad_8: ansi(166)
94 + good_to_bad_9: ansi(196)
98 +###############################################################
99 +# Syntax Theme
101 +# If you want to choose the theme used for preview, uncomment
102 +# one of the following lines:
104 +# syntax_theme: GitHub
105 +# syntax_theme: SolarizedDark
106 +# syntax_theme: SolarizedLight
107 +syntax_theme: SolarizedDark
108 +# syntax_theme: MochaDark
109 +# syntax_theme: OceanDark
110 +# syntax_theme: OceanLight

broot/skins/native-16.hjson

Added
new file mode 100644
1 +###############################################################
2 +# 16 ANSI color theme. Colors in this theme are restricted from
3 +# ANSI color 0 - 15. This will allow the theme to adapt to your
4 +# terminal emulator's theme. Note that, for now, the preview
5 +# mode does not yet support this theme because of syntect not
6 +# having a 16 ansi color theme.
7 +#
8 +# More info at https://jeffkreeftmeijer.com/vim-16-color/
9 +# Doc at https://dystroy.org/broot/skins/
10 +###############################################################
12 +skin: {
13 + directory: ansi(12)
14 + file: ansi(7)
15 + pruning: ansi(8) none italic
16 + selected_line: none ansi(0)
17 + tree: ansi(8)
19 + # Search
20 + char_match: ansi(3) none underlined
21 + parent: ansi(4) none bold
23 + # File properties
24 + exe: ansi(2)
25 + link: ansi(13)
26 + sparse: ansi(12)
28 + # Prompt
29 + input: ansi(6)
31 + # Status bar
32 + status_bold: ansi(7) ansi(8) bold
33 + status_code: ansi(10) ansi(8)
34 + status_ellipsis: ansi(7) ansi(8)
35 + status_error: ansi(7) ansi(8)
36 + status_italic: ansi(7) ansi(8) italic
37 + status_job: ansi(7) ansi(8)
38 + status_normal: ansi(7) ansi(8)
40 + # Flag status
41 + flag_label: ansi(6)
42 + flag_value: ansi(14) none bold
44 + # Background
45 + default: none none
47 + # Scrollbar
48 + scrollbar_track: ansi(0)
49 + scrollbar_thumb: ansi(3)
51 + # Git
52 + git_branch: ansi(13)
53 + git_deletions: ansi(1)
54 + git_insertions: ansi(2)
55 + git_status_conflicted: ansi(1)
56 + git_status_current: ansi(6)
57 + git_status_ignored: ansi(8)
58 + git_status_modified: ansi(3)
59 + git_status_new: ansi(2) none bold
60 + git_status_other: ansi(5)
62 + # Staging area
63 + staging_area_title: ansi(3)
65 + # Documentation
66 + help_bold: ansi(7) none bold
67 + help_code: ansi(4)
68 + help_headers: ansi(3)
69 + help_italic: ansi(7) none italic
70 + help_paragraph: ansi(7)
71 + help_table_border: ansi(8)
73 + # Device column
74 + device_id_major: ansi(5)
75 + device_id_minor: ansi(5)
76 + device_id_sep: ansi(5)
78 + # Counts column
79 + count: ansi(13)
81 + # Dates column
82 + dates: ansi(6)
84 + # Permissions column
85 + group: ansi(3)
86 + owner: ansi(3)
87 + perm__: ansi(8)
88 + perm_r: ansi(3)
89 + perm_w: ansi(1)
90 + perm_x: ansi(2)
92 + # Hex preview
93 + hex_null: ansi(8)
94 + hex_ascii_graphic: ansi(2)
95 + hex_ascii_whitespace: ansi(3)
96 + hex_ascii_other: ansi(4)
97 + hex_non_ascii: ansi(5)
99 + # Preview
100 + # preview: none
101 + # preview_line_number: none
102 + # preview_match: none
103 + # preview_title: none
105 + # Used for displaying errors
106 + file_error: ansi(1)
108 + # Content searches
109 + content_extract: ansi(7)
110 + content_match: ansi(3) none underlined
112 + # Used in status line
113 + purpose_bold: ansi(0) ansi(7) bold
114 + purpose_ellipsis: ansi(0)
115 + purpose_italic: ansi(0) ansi(7) italic
116 + purpose_normal: ansi(0)
118 + # Modal indicator
119 + mode_command_mark: ansi(7) ansi(4)
121 + # File system occupation
122 + good_to_bad_0: ansi(2)
123 + good_to_bad_1: ansi(2)
124 + good_to_bad_2: ansi(2)
125 + good_to_bad_3: ansi(2)
126 + good_to_bad_4: ansi(2)
127 + good_to_bad_5: ansi(1)
128 + good_to_bad_6: ansi(1)
129 + good_to_bad_7: ansi(1)
130 + good_to_bad_8: ansi(1)
131 + good_to_bad_9: ansi(1)

broot/skins/solarized-dark.hjson

Added
new file mode 100644
1 +// contributed by [@danieltrautmann](https://github.com/danieltrautmann)
2 +//
3 +//
4 +// The Solarized Dark skin uses RGB values, so it might not work well with some
5 +// terminals
6 +//
7 +// Doc at https://dystroy.org/broot/skins/
9 +skin: {
10 + default: "rgb(131, 148, 150) rgb(0, 43, 54) / rgb(131, 148, 150) rgb(7, 54, 66)" // base0 base03 / base01 base02
11 + tree: "rgb(88, 110, 117) none" // base01 default
12 + file: "none none" // default default
13 + directory: "rgb(38, 139, 210) none bold" // blue default bold
14 + exe: "rgb(211, 1, 2) none" // red default
15 + link: "rgb(211, 54, 130) none" // magenta default
16 + pruning: "rgb(88, 110, 117) none italic" // base01 default italic
17 + perm__: "rgb(88, 110, 117) none" // base01 default
18 + perm_r: "none none" // default default
19 + perm_w: "none none" // default default
20 + perm_x: "none none" // default default
21 + owner: "rgb(88, 110, 117) none" // base01 default
22 + group: "rgb(88, 110, 117) none" // base01 default
23 + sparse: "none none" // default default
24 + git_branch: "rgb(147, 161, 161) none" // base1 default
25 + git_insertions: "rgb(133, 153, 0) none" // green default
26 + git_deletions: "rgb(211, 1, 2) none" // red default
27 + git_status_current: "none none" // default default
28 + git_status_modified: "rgb(181, 137, 0) none" // yellow default
29 + git_status_new: "rgb(133, 153, 0) none" // green default
30 + git_status_ignored: "rgb(88, 110, 117) none" // base01 default
31 + git_status_conflicted: "rgb(211, 1, 2) none" // red default
32 + git_status_other: "rgb(211, 1, 2) none" // red default
33 + selected_line: "none rgb(7, 54, 66)" // default base02
34 + char_match: "rgb(133, 153, 0) none underlined" // green default underlined
35 + file_error: "rgb(203, 75, 22) none italic" // orange default italic
36 + flag_label: "none none" // default default
37 + flag_value: "rgb(181, 137, 0) none bold" // yellow default bold
38 + input: "none none" // default default
39 + status_error: "rgb(203, 75, 22) rgb(7, 54, 66)" // orange base02
40 + status_job: "rgb(108, 113, 196) rgb(7, 54, 66) bold" // violet base02 bold
41 + status_normal: "none rgb(7, 54, 66)" // default base02
42 + status_italic: "rgb(181, 137, 0) rgb(7, 54, 66)" // yellow base02
43 + status_bold: "rgb(147, 161, 161) rgb(7, 54, 66) bold" // base1 base02 bold
44 + status_code: "rgb(108, 113, 196) rgb(7, 54, 66)" // violet base02
45 + status_ellipsis: "none rgb(7, 54, 66)" // default base02
46 + scrollbar_track: "rgb(7, 54, 66) none" // base02 default
47 + scrollbar_thumb: "none none" // default default
48 + help_paragraph: "none none" // default default
49 + help_bold: "rgb(147, 161, 161) none bold" // base1 default bold
50 + help_italic: "rgb(147, 161, 161) none italic" // base1 default italic
51 + help_code: "rgb(147, 161, 161) rgb(7, 54, 66)" // base1 base02
52 + help_headers: "rgb(181, 137, 0) none" // yellow default
53 + help_table_border: "none none" // default default
54 + preview_title: "gray(20) rgb(0, 43, 54)"
55 + staging_area_title: "gray(22) rgb(0, 43, 54)"
56 + good_to_bad_0: "ansi(28)" // green
57 + good_to_bad_1: "ansi(29)"
58 + good_to_bad_2: "ansi(29)"
59 + good_to_bad_3: "ansi(29)"
60 + good_to_bad_4: "ansi(29)"
61 + good_to_bad_5: "ansi(100)"
62 + good_to_bad_6: "ansi(136)"
63 + good_to_bad_7: "ansi(172)"
64 + good_to_bad_8: "ansi(166)"
65 + good_to_bad_9: "ansi(196)" // red

broot/skins/solarized-light.hjson

Added
new file mode 100644
1 +// contributed by [@danieltrautmann](https://github.com/danieltrautmann)
2 +//
3 +//
4 +// The Solarized Light skin uses RGB values, so it might not work well with some
5 +// terminals
6 +//
7 +// If you prefer to keep the background the same as your terminal background, change
8 +// the "default" entry to
9 +// default: "none none / rgb(147, 161, 161) none"
10 +//
11 +// Doc at https://dystroy.org/broot/skins/
13 +skin: {
14 + // base00 default / base1 base2
15 + default: "rgb(101, 123, 131) none / rgb(147, 161, 161) none"
16 + // base1 default
17 + tree: "rgb(147, 161, 161) none"
18 + // default default
19 + file: "none none"
20 + // blue default bold
21 + directory: "rgb(38, 139, 210) none bold"
22 + // red default
23 + exe: "rgb(211, 1, 2) none"
24 + // magenta default
25 + link: "rgb(211, 54, 130) none"
26 + // base1 default italic
27 + pruning: "rgb(147, 161, 161) none italic"
28 + // base1 default
29 + perm__: "rgb(147, 161, 161) none"
30 + // default default
31 + perm_r: "none none"
32 + // default default
33 + perm_w: "none none"
34 + // default default
35 + perm_x: "none none"
36 + // base1 default
37 + owner: "rgb(147, 161, 161) none"
38 + // base1 default
39 + group: "rgb(147, 161, 161) none"
40 + // default default
41 + sparse: "none none"
42 + // base01 default
43 + git_branch: "rgb(88, 110, 117) none"
44 + // green default
45 + git_insertions: "rgb(133, 153, 0) none"
46 + // red default
47 + git_deletions: "rgb(211, 1, 2) none"
48 + // default default
49 + git_status_current: "none none"
50 + // yellow default
51 + git_status_modified: "rgb(181, 137, 0) none"
52 + // green default
53 + git_status_new: "rgb(133, 153, 0) none"
54 + // base1 default
55 + git_status_ignored: "rgb(147, 161, 161) none"
56 + // red default
57 + git_status_conflicted: "rgb(211, 1, 2) none"
58 + // red default
59 + git_status_other: "rgb(211, 1, 2) none"
60 + // default base2
61 + selected_line: "none rgb(238, 232, 213)"
62 + // green default underlined
63 + char_match: "rgb(133, 153, 0) none underlined"
64 + // orange default italic
65 + file_error: "rgb(203, 75, 22) none italic"
66 + // default default
67 + flag_label: "none none"
68 + // yellow default bold
69 + flag_value: "rgb(181, 137, 0) none bold"
70 + // default default
71 + input: "none none"
72 + // orange base2
73 + status_error: "rgb(203, 75, 22) rgb(238, 232, 213)"
74 + // violet base2 bold
75 + status_job: "rgb(108, 113, 196) rgb(238, 232, 213) bold"
76 + // default base2
77 + status_normal: "none rgb(238, 232, 213)"
78 + // yellow base2
79 + status_italic: "rgb(181, 137, 0) rgb(238, 232, 213)"
80 + // base01 base2 bold
81 + status_bold: "rgb(88, 110, 117) rgb(238, 232, 213) bold"
82 + // violet base2
83 + status_code: "rgb(108, 113, 196) rgb(238, 232, 213)"
84 + // default base2
85 + status_ellipsis: "none rgb(238, 232, 213)"
86 + // base2 default
87 + scrollbar_track: "rgb(238, 232, 213) none"
88 + // default default
89 + scrollbar_thumb: "none none"
90 + // default default
91 + help_paragraph: "none none"
92 + // base01 default bold
93 + help_bold: "rgb(88, 110, 117) none bold"
94 + // base01 default italic
95 + help_italic: "rgb(88, 110, 117) none italic"
96 + // base01 base2
97 + help_code: "rgb(88, 110, 117) rgb(238, 232, 213)"
98 + // yellow default
99 + help_headers: "rgb(181, 137, 0) none"
100 + // default default
101 + help_table_border: "none none"
102 + preview_title: "rgb(147, 161, 161) rgb(238, 232, 213)"
103 + preview: "rgb(101, 123, 131) rgb(253, 246, 227) / rgb(147, 161, 161) rgb(238, 232, 213)"
104 + preview_line_number: "rgb(147, 161, 161) rgb(238, 232, 213)"
105 + preview_separator: "rgb(147, 161, 161) rgb(238, 232, 213)"
106 + preview_match: "None ansi(29)"
107 + staging_area_title: "gray(22) rgb(253, 246, 227)"
108 + good_to_bad_0: ansi(28)
109 + good_to_bad_1: ansi(29)
110 + good_to_bad_2: ansi(29)
111 + good_to_bad_3: ansi(29)
112 + good_to_bad_4: ansi(29)
113 + good_to_bad_5: ansi(100)
114 + good_to_bad_6: ansi(136)
115 + good_to_bad_7: ansi(172)
116 + good_to_bad_8: ansi(166)
117 + good_to_bad_9: ansi(196)

broot/skins/white.hjson

Added
new file mode 100644
1 +###############################################################
2 +# A skin for a terminal with a white background
3 +#
4 +# To create your own skin, copy this file, change the entries
5 +# and import your skin file from the main conf file (look
6 +# for "imports")
7 +#
8 +# Doc at https://dystroy.org/broot/skins/
9 +###############################################################
10 +syntax_theme: base16-ocean.light
12 +skin: {
13 + default: gray(1) None
14 + tree: gray(7) None / gray(18) None
15 + file: gray(3) None / gray(8) None
16 + directory: ansi(25) None Bold / ansi(25) None
17 + exe: ansi(130) None
18 + link: Magenta None
19 + pruning: gray(12) None Italic
20 + perm__: gray(5) None
21 + perm_r: ansi(94) None
22 + perm_w: ansi(132) None
23 + perm_x: ansi(65) None
24 + owner: ansi(138) None
25 + group: ansi(131) None
26 + dates: ansi(66) None
27 + sparse: ansi(214) None
28 + git_branch: ansi(229) None
29 + git_insertions: ansi(28) None
30 + git_deletions: ansi(160) None
31 + git_status_current: gray(5) None
32 + git_status_modified: ansi(28) None
33 + git_status_new: ansi(94) None Bold
34 + git_status_ignored: gray(17) None
35 + git_status_conflicted: ansi(88) None
36 + git_status_other: ansi(88) None
37 + selected_line: None gray(19) / None gray(21)
38 + char_match: ansi(22) None
39 + file_error: Red None
40 + flag_label: gray(9) None
41 + flag_value: ansi(166) None Bold
42 + input: gray(1) None / gray(4) gray(20)
43 + status_error: gray(22) ansi(124)
44 + status_normal: gray(2) gray(20)
45 + status_job: ansi(220) gray(5)
46 + status_italic: ansi(166) gray(20)
47 + status_bold: ansi(166) gray(20)
48 + status_code: ansi(17) gray(20)
49 + status_ellipsis: gray(19) gray(15)
50 + purpose_normal: gray(20) gray(2)
51 + purpose_italic: ansi(178) gray(2)
52 + purpose_bold: ansi(178) gray(2) Bold
53 + purpose_ellipsis: gray(20) gray(2)
54 + scrollbar_track: gray(20) none
55 + scrollbar_thumb: ansi(238) none
56 + help_paragraph: gray(2) none
57 + help_bold: ansi(202) none bold
58 + help_italic: ansi(202) none italic
59 + help_code: gray(5) gray(22)
60 + help_headers: ansi(202) none
61 + help_table_border: ansi(239) None
62 + preview_title: gray(3) None / gray(5) None
63 + preview: gray(5) gray(23) / gray(7) gray(23)
64 + preview_line_number: gray(6) gray(20)
65 + preview_separator: gray(7) None / gray(18) None
66 + preview_match: None ansi(29) Underlined
67 + hex_null: gray(15) None
68 + hex_ascii_graphic: gray(2) None
69 + hex_ascii_whitespace: ansi(143) None
70 + hex_ascii_other: ansi(215) None
71 + hex_non_ascii: ansi(167) None
72 + staging_area_title: gray(8) None / gray(13) None
73 + mode_command_mark: gray(15) ansi(204) Bold
74 + good_to_bad_0: ansi(28)
75 + good_to_bad_1: ansi(29)
76 + good_to_bad_2: ansi(29)
77 + good_to_bad_3: ansi(29)
78 + good_to_bad_4: ansi(29)
79 + good_to_bad_5: ansi(100)
80 + good_to_bad_6: ansi(136)
81 + good_to_bad_7: ansi(172)
82 + good_to_bad_8: ansi(166)
83 + good_to_bad_9: ansi(196)

broot/verbs.hjson

Added
new file mode 100644
1 +###############################################################
2 +# This file contains the verb definitions for broot
3 +#
4 +# Some verbs here are examples and not enabled by default: you
5 +# need to uncomment them if you want to use them.
6 +#
7 +# Documentation at https://dystroy.org/broot/verbs/
8 +###############################################################
10 +verbs: [
12 + # You should customize this standard opening of text files.
13 + # If you edit text files in your terminal (vi, emacs, helix, eg.), then
14 + # you'll find it convenient to change the 'key' from 'ctrl-e' to 'enter'.
15 + #
16 + # If $EDITOR isn't set on your computer, you should either set it using
17 + # something similar to
18 + # export EDITOR=/usr/local/bin/nvim
19 + # or just replace it with your editor of choice in the 'execution'
20 + # pattern.
21 + # If your editor is able to open a file on a specific line, use {line}
22 + # so that you may jump directly at the right line from a preview or
23 + # a content search.
24 + # Examples depending on your favourite editor:
25 + # execution: "nvim +{line} {file}"
26 + # execution: "helix {file}:{line}"
27 + {
28 + invocation: edit
29 + shortcut: e
30 + key: ctrl-e
31 + apply_to: text_file
32 + execution: "$EDITOR {file}"
33 + leave_broot: false
34 + }
36 + # Example 1: launching `tail -n` on the selected file (leaving broot)
37 + # {
38 + # name: tail_lines
39 + # invocation: tl {lines_count}
40 + # execution: "tail -f -n {lines_count} {file}"
41 + # }
43 + # Example 2: creating a new file without leaving broot
44 + # {
45 + # name: touch
46 + # invocation: touch {new_file}
47 + # execution: "touch {directory}/{new_file}"
48 + # leave_broot: false
49 + # }
51 + # A convenient shortcut to create new text files in
52 + # the current directory or below
53 + {
54 + invocation: create {subpath}
55 + execution: "$EDITOR {directory}/{subpath}"
56 + leave_broot: false
57 + }
59 + {
60 + invocation: git_diff
61 + shortcut: gd
62 + leave_broot: false
63 + execution: "git difftool -y {file}"
64 + }
66 + # On ctrl-b, propose the creation of a copy of the selection.
67 + # While this might occasionally be useful, this verb is mostly here
68 + # as an example to demonstrate rare standard groups like {file-stem}
69 + # and {file-dot-extension} and the auto_exec verb property which
70 + # allows verbs to stay unexecuted until you hit enter
71 + {
72 + invocation: "backup {version}"
73 + key: ctrl-b
74 + leave_broot: false
75 + auto_exec: false
76 + execution: "cp -r {file} {parent}/{file-stem}-{version}{file-dot-extension}"
77 + }
79 + # By default, `rm` does the system rm, and completely removes
80 + # the file. If you prefer to have the file moved to the system
81 + # trash, you may use the ':trash' internal with the verb below:
82 + # {
83 + # invocation: "rm"
84 + # internal: "trash"
85 + # leave_broot: false
86 + # }
88 + # This verb lets you launch a terminal on ctrl-T
89 + # (on exit you'll be back in broot)
90 + {
91 + invocation: terminal
92 + key: ctrl-t
93 + execution: "$SHELL"
94 + set_working_dir: true
95 + leave_broot: false
96 + }
98 + # Here's an example of a verb needing the shell capabilities.
99 + # It copies all children of the currently selected directory
100 + # to a destination you type.
101 + # It uses a star, which needs the shell for expansion. That's
102 + # why such verb must have the `from_shell: true` parameter.
103 + # {
104 + # invocation: "cpa {dest}"
105 + # external: "cp -r {directory}/* {dest}"
106 + # from_shell: true
107 + # }
109 + # Here's an example of a shortcut bringing you to your home directory
110 + # {
111 + # invocation: home
112 + # key: ctrl-home
113 + # execution: ":focus ~"
114 + # }
116 + # Here's going to the work-dir root of the current git repository
117 + # {
118 + # invocation: gtr
119 + # execution: ":focus {git-root}"
120 + # }
122 + # A popular set of shortcuts for going up and down:
124 + # {
125 + # key: ctrl-k
126 + # execution: ":line_up"
127 + # }
128 + # {
129 + # key: ctrl-j
130 + # execution: ":line_down"
131 + # }
132 + # {
133 + # key: ctrl-u
134 + # execution: ":page_up"
135 + # }
136 + # {
137 + # key: ctrl-d
138 + # execution: ":page_down"
139 + # }
141 + # If you develop using git, you might like to often switch
142 + # to the git status filter:
143 + # {
144 + # key: alt-g
145 + # execution: ":toggle_git_status"
146 + # }
148 + # You can reproduce the bindings of Norton Commander
149 + # on copying or moving to the other panel:
150 + # {
151 + # key: F5
152 + # external: "cp -r {file} {other-panel-directory}"
153 + # leave_broot: false
154 + # }
155 + # {
156 + # key: F6
157 + # external: "mv {file} {other-panel-directory}"
158 + # leave_broot: false
159 + # }

fedora.symlinks

Modified
71 71 ~/.config/rbw
73 +broot
74 +~/.config/broot
73 76 aerc/binds.conf
74 77 ~/.config/aerc/binds.conf
82 85 unison/unison@.service
83 86 ~/.config/systemd/user/unison@.service
88 +unison/unison@.timer
89 +~/.config/systemd/user/unison@.timer
91 +pueue
92 +~/.config/pueue
94 +pueue/pueued.service
95 +~/.config/systemd/user/pueued.service

justfile

Modified
28 28 link:
29 29 java bootstripper.java
31 +# remove links to dorkfiles in HOME
32 +unlink:
33 + java bootstripper.java clean
35 +# Decrypts all my secrets in tresor, using password manager, if available.
36 +decrypt:
37 + java bootstripper.java decrypt
39 +# install rust user land
31 40 tools:
32 41 cd tools;java install.java
43 +# typically the initial git remote for the dotfiles repo is https
44 +# this command changes the remote to ssh
45 +ssh-remote:
46 + git remote rm origin
47 + git remote add origin git@github.com:bugabinga/dotfiles.git

neovim/README.md

Modified
39 39 # todo
41 +* make assignment to map.x fail, e.g. `map.normal = {}`...
41 42 * figure out desirable cmp key maps
42 43 * try loading lsp async for better startup perf
43 44 * navic highlights do not fit winbar

neovim/colors/nugu.lua

Modified
1 +-- TODO: move this to std and refactor to retun bool
2 +-- Set color theme to light/dark based on current system preferences.
3 +function get_background_based_on_os()
4 + -- Default value
5 + local background = 'light'
6 + local uname = vim.uv.os_uname()
7 + -- First check whether we are on WSL or Windows
8 + if uname.sysname == "Windows_NT" or string.match(uname.release, "WSL") then
9 + -- Check if 'reg.exe' is executable
10 + if vim.fn.executable('reg.exe') ~= 0 then
11 + -- Execute command to check if the win32 appearance is set to Dark
12 + local appsUseLightTheme = vim.fn.system({"reg.exe", "Query", "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "/v", "AppsUseLightTheme"})
13 + if not appsUseLightTheme:find("0x1") then
14 + background = 'dark'
15 + end
16 + end
17 + -- Check if 'busctl' is executable (part of systemd)
18 + elseif vim.fn.executable('busctl') ~= 0 then
19 + -- Get the current color scheme from xdg-desktop-portal using busctl
20 + local result = vim.fn.system({
21 + "busctl", "--user", "call", "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop",
22 + "org.freedesktop.portal.Settings", "ReadOne", "ss", "org.freedesktop.appearance", "color-scheme"
23 + })
24 + -- The result is in the form of "v u 0" for light and "v u 1" for dark
25 + local color_scheme = result:match("u%s+(%d+)")
27 + if color_scheme == '1' then
28 + background = 'dark'
29 + end
30 + else
31 + end
33 + return background
34 +end
1 36 if vim.g.colors_name == nil then
2 - vim.opt.background = 'dark'
37 + vim.opt.background = get_background_based_on_os()
3 38 else
4 39 -- Reset all highlights if another colorscheme was previously set
5 40 vim.cmd [[ highlight clear ]]

neovim/init.lua

Modified
9 9 -- ▀ ▀
11 11 -- setup debug mode
12 --- require 'std.debug'.toggle()
12 +-- require 'std.dbg'.toggle()
14 14 vim.cmd.colorscheme 'nugu'
17 17 prequire = require 'std.prequire'
19 19 prequire 'bugabinga.options'
20 -prequire 'bugabinga.lazy'
21 20 prequire 'bugabinga.editorconfig'
22 -prequire 'bugabinga.diagnostic'
23 -prequire 'bugabinga.save_actions'
24 --- prequire 'bugabinga.mark'
25 21 prequire 'bugabinga.sessions'
26 -prequire 'bugabinga.terminal'
22 +prequire 'bugabinga.lazy'
23 +prequire 'bugabinga.save_actions'
27 25 prequire 'bugabinga.lsp'
27 +vim.defer_fn (function ()
28 + prequire 'bugabinga.terminal'
29 + prequire 'bugabinga.diagnostic'
30 +end, 444)

neovim/lazy-lock.json

Modified
10 10 "colorizer.nvim": { "branch": "master", "commit": "c1602ff3f11566bb7f16f90985b0c59d3d7db0ef" },
11 11 "conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" },
12 12 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
13 - "dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
13 + "dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
14 14 "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
15 15 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
16 16 "heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
17 17 "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" },
18 - "lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" },
18 + "lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" },
19 + "lsp-progress.nvim": { "branch": "main", "commit": "d5f4d28efe75ce636bfbe271eb45f39689765aab" },
19 20 "lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },
20 21 "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
21 22 "mini.bracketed": { "branch": "main", "commit": "833d66df6e0588222312a963780c6ec42ed7437d" },
25 26 "neogen": { "branch": "main", "commit": "e932ba918b56723436b77aa3efb844a11b2851ab" },
26 27 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
27 28 "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
28 - "nvim-autopairs": { "branch": "master", "commit": "ffc139f2a96640ca6c4d3dff9b95b7b9eace87ae" },
29 + "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" },
29 30 "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
30 31 "nvim-genghis": { "branch": "main", "commit": "ca258b1e466d131e17eacf0c632abe932bce20ab" },
31 32 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
32 33 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
33 - "nvim-lint": { "branch": "master", "commit": "99cab0b885aaa2f59736c047d23e9a7835d4f9a9" },
34 + "nvim-lint": { "branch": "master", "commit": "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" },
34 35 "nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
35 36 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
36 37 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
37 38 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
38 - "nvim-treesitter": { "branch": "master", "commit": "b7160e87aadbb3f5f6ee87ce139406fe3433044e" },
39 - "nvim-treesitter-context": { "branch": "master", "commit": "7f7eeaa99e5a9beab518f502292871ae5f20de6f" },
39 + "nvim-treesitter": { "branch": "master", "commit": "2b2635551c83f26f87bf122ad25fcaf90b9a6be0" },
40 + "nvim-treesitter-context": { "branch": "master", "commit": "3d5390c49e3f8fe457b376df2a49aa39d75b7911" },
40 41 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
41 42 "nvim-treesitter-textobjects": { "branch": "master", "commit": "bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" },
42 43 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
43 44 "nvim-ts-context-commentstring": { "branch": "main", "commit": "375c2d86cee6674afd75b4f727ce3a80065552f7" },
44 - "nvim-web-devicons": { "branch": "master", "commit": "9154484705968658e9aab2b894d1b2a64bf9f83d" },
45 + "nvim-web-devicons": { "branch": "master", "commit": "26220156aafb198b2de6a4cf80c1b120a3768da0" },
45 46 "nvim-window": { "branch": "main", "commit": "81f29840ac3aaeea6fc2153edfabebd00d692476" },
46 - "oil.nvim": { "branch": "master", "commit": "f60bb7f793477d99ef1acf39e920bf2ca4e644de" },
47 - "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
47 + "oil.nvim": { "branch": "master", "commit": "1360be5fda9c67338331abfcd80de2afbb395bcd" },
48 + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
48 49 "qf_helper.nvim": { "branch": "master", "commit": "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
49 - "schemastore.nvim": { "branch": "main", "commit": "bfe74baf72ca8964a211286fed864f30c672f19b" },
50 + "schemastore.nvim": { "branch": "main", "commit": "6e2af7e093a4b92e3dce014aa1cbb5449ad1ebf9" },
50 51 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
51 52 "ssr.nvim": { "branch": "main", "commit": "7c95cfa5836508f08ae833a4b31d2ed265560f64" },
52 53 "substitute.nvim": { "branch": "main", "commit": "97f49d16f8eea7967d41db4f657dd63af53eeba1" },
55 56 "telescope-zoxide": { "branch": "main", "commit": "54bfe630bad08dc9891ec78c7cf8db38dd725c97" },
56 57 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
57 58 "text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
58 - "todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
59 - "tree-sitter-nu": { "branch": "main", "commit": "91ada3c0bed7d2963f6bbe2a57d68d77e67c5f07" },
59 + "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
60 + "transparent.nvim": { "branch": "main", "commit": "8a2749a2fa74f97fe6557f61b89ac7fd873f3c21" },
61 + "tree-sitter-nu": { "branch": "main", "commit": "983618e8635db65daf898460a59065a70f64145e" },
60 62 "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" },
61 63 "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
62 64 "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },
65 67 "which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" },
66 68 "zen-mode.nvim": { "branch": "main", "commit": "29b292bdc58b76a6c8f294c961a8bf92c5a6ebd6" }

neovim/lua/bugabinga/lsp/init.lua

Modified
148 - local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path )
149 148 local capabilities = vim.lsp.protocol.make_client_capabilities()
150 149 capabilities = table.extend( 'force', capabilities, config.capabilities )
156 155 settings = vim.tbl_deep_extend( 'force', settings, settings_override )
158 + local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path )
159 159 local root_workspace = root_dir and { uri = 'file://' .. root_dir, name = root_dir, } or nil
160 160 local workspace_folders = root_workspace and { root_workspace, } or nil
161 161 local workspace_folders_local = project_local_workspace_folders[config.name]
231 - dbg.print( 'ATTACHING LSP CLIENT', config.name )
231 + dbg.print( 'STARTING LSP CLIENT', config.name )

neovim/lua/bugabinga/options/keymaps.lua

Modified
41 +map.normal {
42 + description = 'Yanks the selected text (in normal mode or visual mode) to the system clipboard.',
43 + category = 'editing',
44 + keys = '<leader>y',
45 + command = '"+y',
48 +map.normal {
49 + description = 'Pastes from the system clipboard (in normal mode or visual mode).',
50 + category = 'editing',
51 + keys = '<leader>p',
52 + command = '"+p',
55 +map.normal {
56 + description = 'Yanks the entire line (when used in normal mode with motion).',
57 + category = 'editing',
58 + keys = '<leader>Y',
59 + command = '"+Y',
41 62 -- disable command history keymap, because i fatfinger it too often
42 63 map {
43 64 keys = 'q:',
134 155 vim.opt.background = 'dark'
136 ----@diagnostic disable-next-line: undefined-field
157 + ---@diagnostic disable-next-line: undefined-field
137 158 vim.notify( 'Toggled background to ' .. vim.opt.background:get() .. '.' )

neovim/lua/bugabinga/options/ui.lua

Modified
1 +local dbg = require 'std.dbg'
1 2 local icon = require 'std.icon'
2 3 local auto = require 'std.auto'
3 4 local ignored = require 'std.ignored'
14 15 events = { 'FileType', },
15 16 pattern = ignored.filetypes,
16 17 command = function ()
18 + dbg.print 'Hiding columns in buffers without source code'
17 19 vim.opt_local.colorcolumn = {}
18 20 vim.opt_local.signcolumn = 'no'
19 21 vim.opt_local.foldcolumn = '0'

neovim/lua/bugabinga/plugins/heirline.lua

Modified
14 14 'nvim-tree/nvim-web-devicons',
15 15 { 'echasnovski/mini.diff', lazy = true, },
16 16 { 'SmiteshP/nvim-navic', lazy = true, },
17 + {
18 + 'linrongbin16/lsp-progress.nvim',
19 + config = true,
20 + lazy = false,
21 + },
18 23 config = function ()
19 24 local heirline = require 'heirline'
175 180 local file_type = {
176 181 provider = function ()
177 - return icon.file .. ' ' .. string.upper( vim.bo.filetype )
182 + return icon.file .. ' ' .. string.lower( vim.bo.filetype )
245 + local lsp_progress = {
246 + provider = function ()
247 + return require 'lsp-progress'.progress()
248 + end,
249 + update = {
250 + 'User',
251 + pattern = 'LspProgressStatusUpdated',
252 + callback = vim.schedule_wrap( function ()
253 + vim.cmd 'redrawstatus'
254 + end ),
255 + },
240 258 local navic = {
241 259 condition = function ()
242 260 local ok, navic = pcall( require, 'nvim-navic' )
334 352 update = 'CursorMoved',
337 - local diagnostic_enabled = {
338 - init = function ( self )
339 - self.icon = (not vim.diagnostic.is_enabled()) and icon.toggle_off or icon.toggle_on
340 - end,
341 - provider = function ( self )
342 - return icon.diagnostic .. ' ' .. self.icon
343 - end,
344 - }
346 355 local diagnostic = {
347 356 condition = conditions.has_diagnostics,
515 524 hl = 'Bold',
518 - local togglers = {
519 - provider = function ()
520 - local togglers = require 'bugabinga.options.togglers'
521 - return tostring( togglers )
522 - end,
523 - }
525 527 local macro_recording = {
526 528 condition = function ()
527 529 return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0
570 572 align,
571 573 diagnostic,
572 - space,
573 - lsp_active,
574 574 align,
575 - togglers,
576 575 space,
577 576 space,
578 - diagnostic_enabled,
579 - space,
581 578 space,
579 + lsp_active,
580 + space,
581 + lsp_progress,
582 + space,
582 583 file_encoding,
583 584 space,
584 585 file_format,

neovim/lua/bugabinga/plugins/transparent.lua

Added
new file mode 100644
1 +local map = require 'std.map'
3 +map.normal {
4 + description = 'Toggle background transparency.',
5 + category = 'ui',
6 + keys = '<leader>tb',
7 + command = '<cmd>TransparentToggle<cr>',
8 +}
10 +return {
11 + 'xiyaowong/transparent.nvim',
12 + cmd = { 'TransparentEnable', 'TransparentDisable', 'TransparentToggle', },
13 + config = true,

neovim/lua/bugabinga/plugins/whichkey.lua

Modified
48 48 g = { name = '|g|enerate', _ = 'which_key_ignore', },
49 49 d = { name = '|d|ebug', _ = 'which_key_ignore', },
50 50 v = { name = '|v|ersion control', _ = 'which_key_ignore', },
51 - s = { name = '|s|essions', _ = 'which_key_ignore', },
52 51 r = { name = '|r|efactor', _ = 'which_key_ignore', },
53 52 t = { name = '|t|oggle', _ = 'which_key_ignore', },
54 53 w = { name = 's|w|ap', _ = 'which_key_ignore', },

neovim/lua/std/timeago.lua

Modified
2 2 --- credit goes to https://github.com/f-person/lua-timeago
3 3 local _ = {}
5 5 local words = {
6 - justnow = 'just now',
7 - minute = {singular = 'a minute ago', plural = 'minutes ago'},
8 - hour = {singular = 'an hour ago', plural = 'hours ago'},
9 - day = {singular = 'a day ago', plural = 'days ago'},
10 - week = {singular = 'a week ago', plural = 'weeks ago'},
11 - month = {singular = 'a month ago', plural = 'months ago'},
12 - year = {singular = 'a year ago', plural = 'years ago'}
6 + justnow = 'now',
7 + minute = { singular = '1 mi', plural = 'mis', },
8 + hour = { singular = '1 hr', plural = 'hrs', },
9 + day = { singular = '1 dy', plural = 'dys', },
10 + week = { singular = '1 wk', plural = 'wks', },
11 + month = { singular = '1 mo', plural = 'mos', },
12 + year = { singular = '1 yr', plural = 'yrs', },
15 15 ---@param num number
16 16 ---@return number
17 -local function round(num) return math.floor(num + 0.5) end
17 +local function round( num ) return math.floor( num + 0.5 ) end
19 19 ---@param time osdate
20 20 ---@return string
21 -function _.format(time)
22 - local now = os.time()
23 - local diff_seconds = os.difftime(now, time)
24 - if diff_seconds < 45 then return words.justnow end
21 +function _.format( time )
22 + local now = os.time()
23 + local diff_seconds = os.difftime( now, time )
24 + if diff_seconds < 45 then return words.justnow end
26 - local diff_minutes = diff_seconds / 60
27 - if diff_minutes < 1.5 then return words.minute.singular end
28 - if diff_minutes < 59.5 then
29 - return round(diff_minutes) .. ' ' .. words.minute.plural
30 - end
26 + local diff_minutes = diff_seconds / 60
27 + if diff_minutes < 1.5 then return words.minute.singular end
28 + if diff_minutes < 59.5 then
29 + return round( diff_minutes ) .. ' ' .. words.minute.plural
30 + end
32 - local diff_hours = diff_minutes / 60
33 - if diff_hours < 1.5 then return words.hour.singular end
34 - if diff_hours < 23.5 then
35 - return round(diff_hours) .. ' ' .. words.hour.plural
36 - end
32 + local diff_hours = diff_minutes / 60
33 + if diff_hours < 1.5 then return words.hour.singular end
34 + if diff_hours < 23.5 then
35 + return round( diff_hours ) .. ' ' .. words.hour.plural
36 + end
38 - local diff_days = diff_hours / 24
39 - if diff_days < 1.5 then return words.day.singular end
40 - if diff_days < 7.5 then
41 - return round(diff_days) .. ' ' .. words.day.plural
42 - end
38 + local diff_days = diff_hours / 24
39 + if diff_days < 1.5 then return words.day.singular end
40 + if diff_days < 7.5 then
41 + return round( diff_days ) .. ' ' .. words.day.plural
42 + end
44 - local diff_weeks = diff_days / 7
45 - if diff_weeks < 1.5 then return words.week.singular end
46 - if diff_weeks < 4.5 then
47 - return round(diff_weeks) .. ' ' .. words.week.plural
48 - end
44 + local diff_weeks = diff_days / 7
45 + if diff_weeks < 1.5 then return words.week.singular end
46 + if diff_weeks < 4.5 then
47 + return round( diff_weeks ) .. ' ' .. words.week.plural
48 + end
50 - local diff_months = diff_days / 30
51 - if diff_months < 1.5 then return words.month.singular end
52 - if diff_months < 11.5 then
53 - return round(diff_months) .. ' ' .. words.month.plural
54 - end
50 + local diff_months = diff_days / 30
51 + if diff_months < 1.5 then return words.month.singular end
52 + if diff_months < 11.5 then
53 + return round( diff_months ) .. ' ' .. words.month.plural
54 + end
56 - local diff_years = diff_days / 365.25
57 - if diff_years < 1.5 then return words.year.singular end
58 - return round(diff_years) .. ' ' .. words.year.plural
56 + local diff_years = diff_days / 365.25
57 + if diff_years < 1.5 then return words.year.singular end
58 + return round( diff_years ) .. ' ' .. words.year.plural
61 61 return _

nushell/config.nu

Modified
25 25 isolation: true
29 +use '/home/oli/.config/broot/launcher/nushell/br' *

nushell/env.nu

Modified
31 31 $env.GIT_EDITOR = 'nvim'
35 34 if not (which neovide | is-empty) {
36 35 $env.VISUAL = 'neovide'
40 39 $env.TERM = "xterm-256color"
42 +if ( not $env.WIN32 ) {
43 + let tools_bin = ( $env.TOOLS | path join bin )
44 + $env.PATH = (
45 + $env.PATH |
46 + split row (char esep) |
47 + prepend $tools_bin
48 + )
43 51 # theme for ls and other programs, that use LS_COLORS
44 52 $env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})

nushell/login.nu

Modified
6 6 use md.nu
7 7 use start.nu
8 8 use timer.nu
9 +use dwnld.nu
10 +use packages.nu
11 +use fedora_bootstrip.nu
10 13 if $env.WIN32 {
11 14 use refreshenv.nu *

nushell/scripts/bw.nu

Modified
2 2 # fuzzy filter wrapper over rbw
3 3 export def main [] {
4 4 # TODO: needs to handle all kinds of weird rbw output
5 5 # TODO: how to get the desired field into clipboard?
6 - sk --ansi -i -c 'rbw search {}' --preview "rbw get --full {3} {1}@{2}" --delimiter '@' --nth 2
6 + ^sk --ansi -i -c 'rbw search {}' --preview "rbw get --full {3} {1}@{2}" --delimiter '@' --nth 2

nushell/scripts/direnv.nu

Modified
1 +def expand-home [] {
2 + let p = $in
3 + if ( $p =~ '~') {
4 + return ($p | path expand)
5 + }
6 + return $p
7 +}
1 9 def direnv [] {
5 13 code: r#'
6 14 open .env
7 15 | lines
8 - | parse --regex '\s*(?P<k>.+?)\s*=\s*?(?P<v>.+)?\s*'
9 - | reduce --fold {} {|x, acc| $acc | upsert $x.k $x.v}
16 + | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 + | reduce --fold {} { | entry, acc|
18 + $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 + }
10 20 | load-env

nushell/scripts/dwnld.nu

Added
new file mode 100644
1 +export def main [
2 + url: path
3 +] {
4 + let basename = ( $url | path basename )
5 + http get $url | save --raw $basename
6 +}

nushell/scripts/fedora_bootstrip.nu

Added
new file mode 100755
1 +# Installs my most used packages on fedora.
2 +# This mainly means devel packages for rust tools or tools in the repos.
3 +export def main [
4 + --gui # install gui stuff
5 +] {
7 + # building c/c++
8 + sudo dnf groupinstall "Development Tools" "Development Libraries"
10 + # deps of some rust crates i like to build
11 + sudo dnf install fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel alsa-lib-devel libspatialaudio-devel pipewire-devel systemd-devel libseat-devel cairo-gobject-devel pango-devel libdisplay-info-devel libinput-devel mesa-libgbm-devel openssl-devel wayland-devel pipewire-devel pango-devel mesa-libgbm-devel libxkbcommon-devel libseat-devel libspatialaudio-devel
13 + # these seem to be deps of the openssl-sys crates build system
14 + sudo dnf install perl-File-Compare perl-File-Copy perl-FindBin perl-IPC-Cmd
16 + # my stuff
17 + sudo dnf install aerc llvm clang cmake unison rustup neovim mold java-latest-openjdk-devel java-latest-openjdk-src perl-Image-ExifTool
19 + # gui stuff
20 + if $gui {
21 + sudo dnf install gnome-tweaks zathura zathura-pdf-mudpf
22 + }

nushell/scripts/packages.nu

Added
new file mode 100644
1 +export def main [
2 + --clear-cache
3 + --cache = "~/.cache/packages"
4 + --packages = "~/Tools/packages.csv"
5 + --prefix = "~/Tools"
6 +] {
7 + check_dependencies
8 + let prefix = $prefix | path expand
9 + let packages = $packages | path expand
10 + let packages = open --raw $packages | from csv --separator ';' --comment '#' --trim all
11 + let cache = $cache | path expand
12 + if $clear_cache {
13 + rm --recursive --trash --interactive-once $cache
14 + return
15 + }
16 + mkdir $cache
18 + print $"Downloading packages..."
19 + let $packages_file = mktemp --suffix _packages.txt --tmpdir XXX
20 + $packages | get url | save --force $packages_file
21 + run-external dlm '--maxConcurrentDownloads' 4 '--inputFile' $packages_file '--outputDir' $cache
23 + $packages | each { |package|
25 + # pipe through url parse for validation
26 + let base = $package.url | url parse | get path | path basename
27 + let cached = $cache | path join $base
29 + print $"Installing ($package.name)"
30 + if ($cached | is-archive) {
31 + print $"Decompressing ($package.name)..."
32 + run-external ouch decompress '--quiet' $cached '--dir' $prefix
33 + } else {
34 + error make {
35 + msg: $"The package ($package.name) does not seem to be an archive."
36 + }
37 + }
39 + print $"TODO: Symlinks"
40 + }
43 +def is-archive [] {
44 + [ .zip .tar.gz .tar.bz2 .tar.xz .7z ] | any { |ext| $in | str ends-with $ext }
47 +def remove-archive-extension [] {
48 + let uri = $in
49 + [ .zip .tar.gz .tar.bz2 .tar.xz .7z ] | reduce --fold $uri { |ext, acc|
50 + $acc | str replace $ext ''
51 + } | str trim
54 +def check_dependencies [] {
55 + let missing = [ ouch dlm ] | any { which $in | is-empty }
56 + if $missing {
57 + error make {
58 + msg: 'Some dependency is missing!'
59 + }
60 + }

nushell/scripts/prompt.nu

Modified
6 6 [ path icon ];
8 8 [ "/home/oli/Notes" (char -u "03C0") ]
9 + [ "/home/okr/Notes" (char -u "03C0") ]
9 10 [ "/home/bugabinga/Notes" (char -u "03C0") ]
10 11 [ "C:\\Users\\okr\\Notizen" (char -u "03C0") ]
12 13 [ "/home/oli/Workspace" (char -u "03BB") ]
14 + [ "/home/okr/Workspace" (char -u "03BB") ]
13 15 [ "/home/bugabinga/Workspace" (char -u "03BB") ]
14 16 [ "C:\\Users\\okr\\Workspaces" (char -u "03BB") ]
16 18 [ "/home/oli" (char home) ]
19 + [ "/home/okr" (char home) ]
17 20 [ "/home/bugabinga" (char home) ]
18 21 [ "C:\\Users\\okr" (char home) ]

nushell/scripts/todo.nu

Modified
1 +def print_markdown [ md: path ] {
2 + if not ( which mdcat | is-empty ) { mdcat $md; return }
3 + if not ( which bat | is-empty ) { bat $md; return }
4 + if not ( which glow | is-empty ) { glow $md; return }
5 + open $md
6 +}
1 8 # Render my To-Do file in the terminal
2 -export def main [] { mdcat ($env.NOTES | path join "TODO.md") }
9 +export def main [] { print_markdown ($env.NOTES | path join "TODO.md") }
4 11 # Open my To-Do file for editing
5 -export def edit [] { nvim ($env.NOTES | path join "TODO.md") }
12 +export def edit [] { run-external $env.EDITOR ($env.NOTES | path join "TODO.md") }
7 14 # Open a list of commands, that I would like to remember to use
8 -export def commands [] { mdcat ($env.NOTES | path join "COMMANDS.md") }
15 +export def commands [] { print_markdown ($env.NOTES | path join "COMMANDS.md") }
10 17 # Open the list of commands to remember for editing.
11 -export def "commands edit" [] { nvim ($env.NOTES | path join "COMMANDS.md") }
18 +export def "commands edit" [] { run-external $env.EDITOR ($env.NOTES | path join "COMMANDS.md") }

pueue/pueue.yml

Added
new file mode 100644
1 +client:
2 + restart_in_place: false
3 + read_local_logs: true
4 + show_confirmation_questions: false
5 + show_expanded_aliases: false
6 + dark_mode: false
7 + max_status_lines: null
8 + status_time_format: '%H:%M:%S'
9 + status_datetime_format: |-
10 + %Y-%m-%d
11 + %H:%M:%S
12 +daemon:
13 + pause_group_on_failure: false
14 + pause_all_on_failure: false
15 + callback: null
16 + env_vars: {}
17 + callback_log_lines: 10
18 + shell_command: null
19 +shared:
20 + pueue_directory: null
21 + runtime_directory: null
22 + alias_file: null
23 + use_unix_socket: true
24 + unix_socket_path: null
25 + host: 127.0.0.1
26 + port: '6924'
27 + pid_path: null
28 + daemon_cert: null
29 + daemon_key: null
30 + shared_secret_path: null
31 +profiles: {}

pueue/pueued.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Pueue Daemon - CLI process scheduler and manager
4 +[Service]
5 +Restart=no
6 +ExecStart=%h/.cargo/bin/pueued -vvv
8 +[Install]
9 +WantedBy=default.target

systemd/environment.d/07_cargo.conf

Deleted
deleted file mode 100644
1 -CARGO_HOME=$HOME/.cargo

systemd/environment.d/99_path.conf

Deleted
deleted file mode 100644
1 -PATH=$CARGO_HOME/bin:$HOME/.local/bin:$HOME/go/bin:$PATH

tools/fedora_bootstrip.nu

Deleted
deleted file mode 100755
1 -#!/usr/bin/env nu
3 -# building c/c++
4 -sudo dnf groupinstall "Development Tools" "Development Libraries"
6 -# deps of some rust crates i like to build
7 -sudo dnf install fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel alsa-lib-devel libspatialaudio-devel pipewire-devel systemd-devel libseat-devel cairo-gobject-devel pango-devel libdisplay-info-devel libinput-devel mesa-libgbm-devel openssl-devel wayland-devel pipewire-devel pango-devel mesa-libgbm-devel libxkbcommon-devel libseat-devel libspatialaudio-devel
9 -# these seem to be deps of the openssl-sys crates build system
10 -sudo dnf install perl-File-Compare perl-File-Copy perl-FindBin perl-IPC-Cmd
12 -# my stuff
13 -sudo dnf install aerc llvm clang cmake unison rustup neovim mold java-latest-openjdk-devel java-latest-openjdk-src gnome-tweaks

tools/tools.csv

Modified
7 7 cargo-cache
8 8 cargo-update;cargo-install-update
9 9 choose
10 +czkawka_cli
10 11 du-dust; dust
11 12 dotenv-linter
13 +dupimg
15 +emplace
13 16 eza; eza; --features vendored-openssl,vendored-libgit2
14 17 fend
15 18 fd-find;fd
37 40 mdcat
38 41 mdsh
39 42 monolith
43 +names
40 44 # netscanner
41 45 neovide;neovide; --git https://github.com/neovide/neovide
42 46 nu;nu; --locked
50 54 ripgrep;rg
52 56 rust-parallel
57 +rversions
54 59 skim
55 60 sbyte
61 66 tealdeer;tldr
62 67 tokei
63 68 topgrade
69 +timebutler
71 +tsdl
72 +ttyper
65 73 unison-fsmonitor
66 74 # ugdb
68 76 vivid
77 +wthrr
69 78 yazi-cli;ya; --locked
70 79 yazi-fm;yazi; --locked
71 80 zoxide

wezterm/.editorconfig

Added
new file mode 100644
1 +root = true
3 +[*]
4 +spell = false
6 +[*.lua]
7 +number = true
8 +relativenumber = true
9 +diagnostic = true
11 +# see https://github.com/CppCXY/EmmyLuaCodeStyle
12 +# optional space/tab
13 +indent_style = space
14 +# if indent_style is space, this is valid
15 +indent_size = 2
16 +# if indent_style is tab, this is valid
17 +tab_width = 2
18 +# none/single/double
19 +quote_style = single
21 +continuation_indent = 2
23 +# this mean utf8 length , if this is 'unset' then the line width is no longer checked
24 +# this option decides when to chopdown the code
25 +max_line_length = 120
27 +# optional crlf/lf/cr/auto, if it is 'auto', in windows it is crlf other platforms are lf
28 +# in neovim the value 'auto' is not a valid option, please use 'unset'
29 +end_of_line = lf
31 +# none/ comma / semicolon / only_kv_colon
32 +table_separator_style = comma
34 +#optional keep/never/always/smart
35 +trailing_table_separator = always
37 +# keep/remove/remove_table_only/remove_string_only
38 +call_arg_parentheses = remove
40 +detect_end_of_line = false
42 +# this will check text end with new line
43 +insert_final_newline = true
45 +# [space]
46 +space_around_table_field_list = true
48 +space_before_attribute = true
50 +space_before_function_open_parenthesis = false
52 +space_before_function_call_open_parenthesis = false
54 +space_before_closure_open_parenthesis = true
56 +# optional always/only_string/only_table/none
57 +# or true/false
58 +space_before_function_call_single_arg = always
60 +space_before_open_square_bracket = false
62 +space_inside_function_call_parentheses = true
64 +space_inside_function_param_list_parentheses = true
66 +space_inside_square_brackets = false
68 +# like t[#t+1] = 1
69 +space_around_table_append_operator = false
71 +ignore_spaces_inside_function_call = false
73 +space_before_inline_comment = 1
75 +# [operator space]
76 +space_around_math_operator = true
78 +space_after_comma = true
80 +space_after_comma_in_for_statement = true
82 +space_around_concat_operator = true
84 +# [align]
86 +align_call_args = true
88 +align_function_params = true
90 +align_continuous_assign_statement = true
92 +align_continuous_rect_table_field = true
94 +align_continuous_line_space = 2
96 +align_if_branch = true
98 +# option none / always / contain_curly/
99 +align_array_table = true
101 +align_continuous_similar_call_args = true
103 +align_continuous_inline_comment = true
104 +# option none / always / only_call_stmt
105 +align_chain_expr = none
107 +# [indent]
109 +never_indent_before_if_condition = false
111 +never_indent_comment_on_if_branch = false
113 +# [line space]
115 +# The following configuration supports four expressions
116 +# keep
117 +# fixed(n)
118 +# min(n)
119 +# max(n)
120 +# for eg. min(2)
122 +line_space_after_if_statement = keep
124 +line_space_after_do_statement = keep
126 +line_space_after_while_statement = keep
128 +line_space_after_repeat_statement = keep
130 +line_space_after_for_statement = keep
132 +line_space_after_local_or_assign_statement = keep
134 +line_space_after_function_statement = fixed(2)
136 +line_space_after_expression_statement = keep
138 +line_space_after_comment = keep
140 +# [line break]
141 +break_all_list_when_line_exceed = false
143 +auto_collapse_lines = false
145 +break_before_braces = false
146 +# [preference]
147 +ignore_space_after_colon = false
149 +remove_call_expression_list_finish_comma = false

wezterm/bugabinga/auto_dark_mode.lua

Deleted
deleted file mode 100644
1 -local wez = require 'wezterm'
3 --- wezterm.gui is not available to the mux server, so take care to
4 --- do something reasonable when this config is evaluated by the mux
5 -local get_appearance = function()
6 - if wez.gui then
7 - return wez.gui.get_appearance()
8 - end
9 - return 'Dark'
10 -end
12 -local scheme_for_appearance = function(appearance)
13 - if appearance:find('Dark',1, true) then
14 - return 'nugu-dark'
15 - else
16 - return 'nugu-light'
17 - end
18 -end
20 --- TODO: what is that good for?
21 --- wez.on('window-config-reloaded', function(window)
22 --- local overrides = window:get_config_overrides() or {}
23 --- local appearance = window:get_appearance()
24 --- local scheme = scheme_for_appearance(appearance)
25 --- if overrides.color_scheme ~= scheme then
26 --- overrides.color_scheme = scheme
27 --- window:set_config_overrides(overrides)
28 --- end
29 --- end)
31 -return scheme_for_appearance(get_appearance())

wezterm/bugabinga/fonts.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +return function ( cfg )
4 + local font_size = 16.0
5 + local font = wez.font 'Cousine'
6 + cfg.font = font
7 + cfg.font_size = font_size
8 + cfg.warn_about_missing_glyphs = false
9 +end

wezterm/bugabinga/hosts/NB-00718.lua

Added
new file mode 100644
1 +return function ( cfg )
2 + cfg.default_domain = { 'WSL:Fedora', }
3 + cfg.default_mux_server_domain = { 'WSL:Fedora', }
4 + cfg.default_prog = { 'powershell', '-NoLogo', }
6 + cfg.window_background_opacity = 0
7 + cfg.win32_system_backdrop = 'Tabbed'
8 +end

wezterm/bugabinga/hosts/fedora.lua

Added
new file mode 100644
1 +local nerd_font = require 'bugabinga.nerd_font'
3 +return function ( cfg )
4 + cfg.font = nerd_font.random();
6 + cfg.background = {
7 + {
8 + source = {
9 + File = '/home/oli/Pictures/Bilder/2012/05/20/Waldshooting_vonni_tini_2012 (12).jpg',
10 + },
11 + hsb = {
12 + hue = 1.0,
13 + saturation = 0.0,
14 + brightness = 0.004,
15 + },
16 + attachment = { Parallax = 0.006, },
17 + vertical_align = 'Middle',
18 + horizontal_align = 'Center',
19 + },
20 + {
21 + source = {
22 + Gradient = {
23 + colors = { 'purple', '#131313', },
24 + orientation = {
25 + Radial = {
26 + cx = 0.5,
27 + cy = 0.5,
28 + radius = 1.25,
29 + },
30 + },
31 + },
32 + },
33 + opacity = 0.1,
34 + width = '100%',
35 + height = '100%',
36 + },
37 + }
38 +end

wezterm/bugabinga/hosts/init.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +return function ( cfg )
4 + local hostname = wez.hostname()
5 + local ok, host = pcall( require, 'bugabinga.hosts.' .. hostname )
6 + if ok then
7 + host( cfg )
8 + else
9 + local msg = 'unknown host ' .. hostname .. '. forgot to create new file in /bugabinga/hosts?'
10 + wez.log_warn( msg )
11 + end
12 +end

wezterm/bugabinga/hosts/x230.lua

Added
new file mode 100644
1 +local nerd_font = require 'bugabinga.nerd_font'
3 +return function(cfg)
4 + cfg.font = nerd_font.random();
5 +end

wezterm/bugabinga/key_binds.lua

Modified
1 1 local wez = require 'wezterm'
2 -local leader = { key = 'VoidSymbol' }
3 +local leader = { key = 'VoidSymbol', }
3 4 if wez.target_triple:find 'windows' then
4 - leader = { key = 'raw:255' }
5 + leader = { key = 'raw:255', }
6 7 local font_size_mode = ' Change Font Size (=-+)'
7 8 local pane_mode = ' Pane (hjklqr)'
10 11 local navigate_backward_mode = ' Navigate backward (bw)'
12 13 local key_tables = {
13 - [resize_pane_mode] = {
14 - { key = 'h', action = wez.action.AdjustPaneSize { 'Left', 1 } },
15 - { key = 'j', action = wez.action.AdjustPaneSize { 'Down', 1 } },
16 - { key = 'k', action = wez.action.AdjustPaneSize { 'Up', 1 } },
17 - { key = 'l', action = wez.action.AdjustPaneSize { 'Right', 1 } },
14 + [resize_pane_mode] = {
15 + { key = 'h', action = wez.action.AdjustPaneSize { 'Left', 1, }, },
16 + { key = 'j', action = wez.action.AdjustPaneSize { 'Down', 1, }, },
17 + { key = 'k', action = wez.action.AdjustPaneSize { 'Up', 1, }, },
18 + { key = 'l', action = wez.action.AdjustPaneSize { 'Right', 1, }, },
19 - -- Cancel the mode
20 - { key = 'Escape', action = 'PopKeyTable' },
21 - },
22 - [font_size_mode] = {
23 - { key = 'j', action = wez.action.DecreaseFontSize },
24 - { key = 'k', action = wez.action.IncreaseFontSize },
25 - { key = '=', action = wez.action.ResetFontSize },
20 + -- Cancel the mode
21 + { key = 'Escape', action = 'PopKeyTable', },
22 + },
23 + [font_size_mode] = {
24 + { key = 'j', action = wez.action.DecreaseFontSize, },
25 + { key = 'k', action = wez.action.IncreaseFontSize, },
26 + { key = '=', action = wez.action.ResetFontSize, },
27 - { key = 'Escape', action = 'PopKeyTable' },
28 - },
29 - [pane_mode] = {
30 - { key = 'h', action = wez.action.ActivatePaneDirection 'Left' },
31 - { key = 'j', action = wez.action.ActivatePaneDirection 'Down' },
32 - { key = 'k', action = wez.action.ActivatePaneDirection 'Up' },
33 - { key = 'l', action = wez.action.ActivatePaneDirection 'Right' },
28 + { key = 'Escape', action = 'PopKeyTable', },
29 + },
30 + [pane_mode] = {
31 + { key = 'h', action = wez.action.ActivatePaneDirection 'Left', },
32 + { key = 'j', action = wez.action.ActivatePaneDirection 'Down', },
33 + { key = 'k', action = wez.action.ActivatePaneDirection 'Up', },
34 + { key = 'l', action = wez.action.ActivatePaneDirection 'Right', },
35 - { key = 'v', action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
36 - { key = 's', action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' }, },
36 + { key = 'v', action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain', }, },
37 + { key = 's', action = wez.action.SplitVertical { domain = 'CurrentPaneDomain', }, },
38 - { key = '=', action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false } },
39 + { key = '=', action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false, }, },
40 - { key = 'q', action = wez.action.CloseCurrentPane { confirm = false } },
41 + { key = 'q', action = wez.action.CloseCurrentPane { confirm = false, }, },
42 - { key = 'Escape', action = 'PopKeyTable' },
43 - },
44 - [navigate_forward_mode] = {
45 - {
46 - key = 'b', -- b as in buffer in vim
47 - action = wez.action.ActivateTabRelative(1),
48 - },
49 - {
50 - key = 'w', -- next workspace
51 - action = wez.action.SwitchWorkspaceRelative(1),
52 - },
53 - },
54 - [navigate_backward_mode] = {
55 - {
56 - key = 'b',
57 - action = wez.action.ActivateTabRelative(-1),
58 - },
59 - {
60 - key = 'w', -- prev workspace
61 - action = wez.action.SwitchWorkspaceRelative(-1),
62 - },
63 - }
43 + { key = 'Escape', action = 'PopKeyTable', },
44 + },
45 + [navigate_forward_mode] = {
46 + {
47 + key = 'b', -- b as in buffer in vim
48 + action = wez.action.ActivateTabRelative( 1 ),
49 + },
50 + {
51 + key = 'w', -- next workspace
52 + action = wez.action.SwitchWorkspaceRelative( 1 ),
53 + },
54 + },
55 + [navigate_backward_mode] = {
56 + {
57 + key = 'b',
58 + action = wez.action.ActivateTabRelative( -1 ),
59 + },
60 + {
61 + key = 'w', -- prev workspace
62 + action = wez.action.SwitchWorkspaceRelative( -1 ),
63 + },
64 + },
66 67 local keys = {
67 - {
68 - key = ']',
69 - mods = 'LEADER',
70 - action = wez.action.ActivateKeyTable { name = navigate_forward_mode },
71 - },
72 - {
73 - key = '[',
74 - mods = 'LEADER',
75 - action = wez.action.ActivateKeyTable { name = navigate_backward_mode },
76 - },
77 - {
78 - key = '0',
79 - mods = 'LEADER',
80 - action = wez.action.ActivateKeyTable { name = font_size_mode, one_shot = false },
81 - },
82 - {
83 - key = 'w',
84 - mods = 'LEADER',
85 - action = wez.action.ActivateKeyTable { name = pane_mode },
86 - },
87 - {
88 - key = 'a',
89 - mods = 'LEADER',
90 - action = wez.action.PaneSelect,
91 - },
92 - {
93 - key = 'f',
94 - mods = 'LEADER',
95 - action = wez.action.TogglePaneZoomState,
96 - },
97 - {
98 - key = 'F5',
99 - mods = 'LEADER',
100 - action = wez.action.ReloadConfiguration,
101 - },
102 - {
103 - key = 'F11',
104 - mods = 'LEADER',
105 - action = wez.action.ToggleFullScreen,
106 - },
107 - {
108 - key = 'F12',
109 - mods = 'LEADER',
110 - action = wez.action.ShowDebugOverlay,
111 - },
112 - {
113 - key = 'u',
114 - mods = 'LEADER',
115 - action = wez.action.CharSelect {
116 - copy_on_select = true,
117 - copy_to = 'ClipboardAndPrimarySelection'
118 - },
119 - },
120 - {
121 - key = 'c',
122 - mods = 'CTRL|SHIFT',
123 - action = wez.action.CopyTo 'Clipboard',
124 - },
125 - {
126 - key = 'v',
127 - mods = 'CTRL|SHIFT',
128 - action = wez.action.PasteFrom 'Clipboard',
129 - },
130 - {
131 - key = 't',
132 - mods = 'LEADER',
133 - action = wez.action.SpawnTab 'CurrentPaneDomain',
134 - },
135 - {
136 - key = 'p',
137 - mods = 'LEADER',
138 - action = wez.action.ActivateCommandPalette,
139 - },
140 - {
141 - key = 'c',
142 - mods = 'LEADER',
143 - action = wez.action.SwitchToWorkspace { name = 'code' },
144 - },
145 - {
146 - key = 'k',
147 - mods = 'LEADER',
148 - action = wez.action.SwitchToWorkspace { name = 'dorkfiles editing' },
149 - },
150 - {
151 - key = 'd',
152 - mods = 'LEADER',
153 - action = wez.action.SwitchToWorkspace { name = 'default' },
154 - },
155 - {
156 - key = 'r',
157 - mods = 'LEADER',
158 - action = wez.action.ShowLauncherArgs {
159 - flags = 'FUZZY|WORKSPACES',
160 - },
161 - },
162 - {
163 - key = '/',
164 - mods = 'LEADER',
165 - action = wez.action.Search 'CurrentSelectionOrEmptyString',
166 - },
167 - {
168 - key = 'Enter',
169 - mods = 'LEADER',
170 - action = wez.action.QuickSelect,
171 - },
172 - {
173 - key = 'q',
174 - mods = 'LEADER',
175 - action = wez.action.QuitApplication,
176 - },
68 + {
69 + key = ']',
70 + mods = 'LEADER',
71 + action = wez.action.ActivateKeyTable { name = navigate_forward_mode, },
72 + },
73 + {
74 + key = '[',
75 + mods = 'LEADER',
76 + action = wez.action.ActivateKeyTable { name = navigate_backward_mode, },
77 + },
78 + {
79 + key = '0',
80 + mods = 'LEADER',
81 + action = wez.action.ActivateKeyTable { name = font_size_mode, one_shot = false, },
82 + },
83 + {
84 + key = 'w',
85 + mods = 'LEADER',
86 + action = wez.action.ActivateKeyTable { name = pane_mode, },
87 + },
88 + {
89 + key = 'a',
90 + mods = 'LEADER',
91 + action = wez.action.PaneSelect,
92 + },
93 + {
94 + key = 'f',
95 + mods = 'LEADER',
96 + action = wez.action.TogglePaneZoomState,
97 + },
98 + {
99 + key = 'F5',
100 + mods = 'LEADER',
101 + action = wez.action.ReloadConfiguration,
102 + },
104 + key = 'F11',
105 + mods = 'LEADER',
106 + action = wez.action.ToggleFullScreen,
107 + },
109 + key = 'F12',
110 + mods = 'LEADER',
111 + action = wez.action.ShowDebugOverlay,
112 + },
114 + key = 'u',
115 + mods = 'LEADER',
116 + action = wez.action.CharSelect {
117 + copy_on_select = true,
118 + copy_to = 'ClipboardAndPrimarySelection',
119 + },
120 + },
122 + key = 'c',
123 + mods = 'CTRL|SHIFT',
124 + action = wez.action.CopyTo 'Clipboard',
125 + },
127 + key = 'v',
128 + mods = 'CTRL|SHIFT',
129 + action = wez.action.PasteFrom 'Clipboard',
130 + },
132 + key = 't',
133 + mods = 'LEADER',
134 + action = wez.action.SpawnTab 'CurrentPaneDomain',
135 + },
137 + key = 'p',
138 + mods = 'LEADER',
139 + action = wez.action.ActivateCommandPalette,
140 + },
142 + key = 'c',
143 + mods = 'LEADER',
144 + action = wez.action.SwitchToWorkspace { name = 'code', },
145 + },
147 + key = 'k',
148 + mods = 'LEADER',
149 + action = wez.action.SwitchToWorkspace { name = 'dorkfiles editing', },
150 + },
152 + key = 'd',
153 + mods = 'LEADER',
154 + action = wez.action.SwitchToWorkspace { name = 'default', },
155 + },
157 + key = 'r',
158 + mods = 'LEADER',
159 + action = wez.action.ShowLauncherArgs {
160 + flags = 'FUZZY|WORKSPACES',
161 + },
162 + },
164 + key = 'd',
165 + mods = 'LEADER',
166 + action = wez.action.ShowLauncherArgs {
167 + flags = 'FUZZY|LAUNCH_MENU_ITEMS',
168 + },
169 + }, {
170 + key = '/',
171 + mods = 'LEADER',
172 + action = wez.action.Search 'CurrentSelectionOrEmptyString',
173 + },
175 + key = 'Enter',
176 + mods = 'LEADER',
177 + action = wez.action.QuickSelect,
178 + },
180 + key = 'q',
181 + mods = 'LEADER',
182 + action = wez.action.QuitApplication,
183 + },
178 185 -- Navigate Tabs by LEADER+n
179 186 for i = 1, 8 do
180 - -- CTRL+ALT + number to activate that tab
181 - table.insert(keys, {
182 - key = tostring(i),
183 - mods = 'LEADER',
184 - action = wez.action.ActivateTab(i - 1),
185 - })
187 + -- CTRL+ALT + number to activate that tab
188 + table.insert( keys, {
189 + key = tostring( i ),
190 + mods = 'LEADER',
191 + action = wez.action.ActivateTab( i - 1 ),
192 + } )
190 -return {
191 - leader = leader,
192 - keys = keys,
193 - key_tables = key_tables,
195 +return function ( cfg )
196 + cfg.disable_default_key_bindings = true
197 + cfg.leader = leader
198 + cfg.keys = keys
199 + cfg.key_tables = key_tables
200 +end

wezterm/bugabinga/launch.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +return function ( cfg )
4 + cfg.launch_menu = {
5 + {
6 + label = 'E-Mail',
7 + args = { 'aerc', },
8 + cwd = wez.home_dir,
9 + },
10 + {
11 + label = 'Bottom',
12 + args = { 'btm', },
13 + cwd = wez.home_dir,
14 + },
15 + {
16 + label = 'Clock',
17 + args = { 'tclock', },
18 + cwd = wez.home_dir,
19 + },
20 + {
21 + label = 'Netscanner',
22 + args = { 'sudo', wez.home_dir .. '/.cargo/bin/netscanner', },
23 + cwd = wez.home_dir,
24 + },
25 + {
26 + label = 'Calc',
27 + args = { 'eva', },
28 + cwd = wez.home_dir,
29 + },
30 + {
31 + label = 'Weather',
32 + args = { 'wthrr' },
33 + cwd = wez.home_dir,
34 + },
35 + {
36 + label = 'Status',
37 + args = { 'nu', '-c', 'loop {clear; macchina --current-shell --interface wlp3s0; sleep 5sec}', },
38 + cwd = wez.home_dir,
39 + },
40 + {
41 + label = 'Units',
42 + args = { 'fend', },
43 + cwd = wez.home_dir,
44 + },
45 + {
46 + label = 'Files',
47 + args = { 'yazi', },
48 + cwd = wez.home_dir,
49 + }, }
50 +end

wezterm/bugabinga/neovim_zen_mode.lua

Modified
1 -return function( wez )
2 - wez.on('user-var-changed', function(window, pane, name, value)
3 - print "zen"
4 - local overrides = window:get_config_overrides() or {}
5 - if name == "ZEN_MODE" then
6 - local incremental = value:find("+")
7 - local number_value = tonumber(value)
8 - if incremental ~= nil then
9 - while (number_value > 0) do
10 - window:perform_action(wez.action.IncreaseFontSize, pane)
11 - number_value = number_value - 1
12 - end
13 - overrides.enable_tab_bar = false
14 - elseif number_value < 0 then
15 - window:perform_action(wez.action.ResetFontSize, pane)
16 - overrides.font_size = nil
17 - overrides.enable_tab_bar = true
18 - else
19 - overrides.font_size = number_value
20 - overrides.enable_tab_bar = false
21 - end
22 - end
23 - window:set_config_overrides(overrides)
24 - end)
25 -end
1 +local wez = require 'wezterm'
3 +wez.on( 'user-var-changed', function ( window, pane, name, value )
4 + local overrides = window:get_config_overrides() or {}
5 + if name == 'ZEN_MODE' then
6 + local incremental = value:find '+'
7 + local number_value = tonumber( value )
8 + if incremental ~= nil then
9 + while number_value > 0 do
10 + window:perform_action( wez.action.IncreaseFontSize, pane )
11 + number_value = number_value - 1
12 + end
13 + overrides.enable_tab_bar = false
14 + elseif number_value < 0 then
15 + window:perform_action( wez.action.ResetFontSize, pane )
16 + overrides.font_size = nil
17 + overrides.enable_tab_bar = true
18 + else
19 + overrides.font_size = number_value
20 + overrides.enable_tab_bar = false
21 + end
22 + end
23 + window:set_config_overrides( overrides )
24 +end )

wezterm/bugabinga/nerd_font.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +return {
4 + random = function ()
5 + local font_names = {}
6 + local nerdfonts = io.open( wez.config_dir .. '/bugabinga/nerdfonts', 'r' )
7 + if nerdfonts then
8 + for font_name in nerdfonts:lines() do
9 + if not font_name:match '^#.*' then
10 + table.insert( font_names, font_name )
11 + end
12 + end
13 + local random_font = font_names[math.random( #font_names )]
14 + return wez.font( random_font )
15 + end
16 + return wez.font 'JetBrains Mono'
17 + end,

wezterm/bugabinga/nerdfonts

Added
new file mode 100644
1 +Bitstream Vera Sans Mono
2 +# Terminus
3 +Anonymous Pro
4 +Aurulent Sans Mono
5 +# BigBlueTerminalPlus
6 +Cascadia Code
7 +Cousine
8 +D2Coding
9 +DejaVu Sans Mono
10 +Droid Sans Mono
11 +Envy Code R
12 +Fantasque Sans Mono
13 +# FiraCode
14 +GeistMono
15 +Hack
16 +Hasklig
17 +Hermit
18 +# IBM 3270
19 +IBM Plex Mono
20 +# Inconsolata
21 +Intel One Mono
22 +JetBrainsMono
23 +Lekton
24 +# Liberation Mono
25 +Lilex
26 +MartianMono
27 +Monaspace Argon Var
28 +Monaspace Krypton Var
29 +Monaspace Neon Var
30 +Monofur
31 +Monoid
32 +Mononoki
33 +Rec Mono Casual
34 +Rec Mono Linear
35 +RobotoMono
36 +Share Tech Mono
37 +Source Code Pro
38 +VictorMono
39 +iA Writer Mono V

wezterm/bugabinga/options.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +return function(cfg)
4 + cfg.default_cwd = wez.home_dir
5 + cfg.inactive_pane_hsb = {
6 + saturation = 0.42,
7 + brightness = 0.69,
8 + }
9 + cfg.default_cursor_style = 'SteadyBlock'
10 + cfg.check_for_updates = false
11 + cfg.audible_bell = 'Disabled'
12 + cfg.visual_bell = {
13 + fade_in_duration_ms = 69,
14 + fade_out_duration_ms = 69,
15 + target = 'CursorColor',
16 + }
17 + cfg.cursor_blink_rate = 0
18 + cfg.front_end = 'WebGpu'
19 + cfg.max_fps = 144
20 + cfg.unzoom_on_switch_pane = true
21 + cfg.scrollback_lines = 16777216
22 +end

wezterm/bugabinga/startup.lua

Added
new file mode 100644
1 +return function ( cfg )
2 + cfg.default_prog = { 'nu', '--login', }
3 +end

wezterm/bugabinga/status.lua

Modified
2 2 local wez = require 'wezterm'
4 4 local DELIMITER = ' · '
6 -local zoomed = function(pane)
7 - local tab = pane:tab()
8 - local any_is_zoomed = false
9 - if tab then
10 - for _, info in ipairs(tab:panes_with_info()) do
11 - if info.is_zoomed then
12 - any_is_zoomed = true
13 - end
14 - end
15 - end
16 - return any_is_zoomed and '🔎 Zoomed Pane' or nil
6 +local zoomed = function ( pane )
7 + local tab = pane:tab()
8 + local any_is_zoomed = false
9 + if tab then
10 + for _, info in ipairs( tab:panes_with_info() ) do
11 + if info.is_zoomed then
12 + any_is_zoomed = true
13 + end
14 + end
15 + end
16 + return any_is_zoomed and '🔎 Zoomed Pane' or nil
19 19 -- TODO: docs have crazy example of styling the status bar, check them out
21 21 -- Show which key table is active in the status area
22 -wez.on('update-status', function(window, pane)
23 - local key_table = window:active_key_table()
24 - local current_workspace = window:active_workspace()
25 - local zoomed_state = zoomed(pane)
26 - local leader = nil
27 - if window:leader_is_active() then
28 - leader = 'LEADER'
29 - end
30 - local fonts = {}
31 - local config = window:effective_config()
32 - local font_size = config.font_size
33 - for _, font in pairs(config.font.font) do
34 - table.insert(fonts, string.format('%s:%s', font.family, font_size))
35 - end
36 - local font = wez.format {
37 - { Text = ' Font ' },
38 - { Attribute = { Intensity = 'Bold' } },
39 - { Text = table.concat(fonts, ', ') },
40 - 'ResetAttributes'
41 - }
22 +wez.on( 'update-status', function ( window, pane )
23 + local key_table = window:active_key_table()
24 + local current_workspace = window:active_workspace()
25 + local zoomed_state = zoomed( pane )
26 + local leader = nil
27 + if window:leader_is_active() then
28 + leader = 'LEADER'
29 + end
30 + local fonts = {}
31 + local config = window:effective_config()
32 + local font_size = config.font_size
33 + for _, font in pairs( config.font.font ) do
34 + table.insert( fonts, string.format( '%s:%s', font.family, font_size ) )
35 + end
36 + local font = wez.format {
37 + { Text = ' Font ', },
38 + { Attribute = { Intensity = 'Bold', }, },
39 + { Text = table.concat( fonts, ', ' ), },
40 + 'ResetAttributes',
41 + }
43 - local status = { ' ' }
44 - if leader then table.insert(status, leader) end
45 - if key_table then table.insert(status, key_table) end
46 - if zoomed_state then table.insert(status, zoomed_state) end
47 - if current_workspace then table.insert(status, current_workspace) end
48 - if font then table.insert(status, font) end
43 + local status = { '', }
44 + if leader then
45 + table.insert( status, leader )
46 + end
47 + if key_table then
48 + table.insert( status, key_table )
49 + end
50 + if zoomed_state then
51 + table.insert( status, zoomed_state )
52 + end
53 + if current_workspace then
54 + table.insert( status, current_workspace )
55 + end
56 + if font then
57 + table.insert( status, font )
58 + end
50 - window:set_right_status(table.concat(status, DELIMITER))
51 - --TODO: shirley, something useful can be done here
52 - window:set_left_status('  ')
53 -end)
60 + window:set_right_status( table.concat( status, DELIMITER ) )
61 + --TODO: shirley, something useful can be done here
62 + window:set_left_status ' π '
63 +end )
65 +return function ( cfg )
66 + cfg.enable_tab_bar = true
67 + -- if this is hidden, we cannot see the right status are
68 + cfg.hide_tab_bar_if_only_one_tab = false
69 + cfg.use_fancy_tab_bar = false
70 + cfg.tab_max_width = 42
71 + cfg.tab_bar_at_bottom = true
74 +end

wezterm/bugabinga/theme.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
2 +local nugu = require 'bugabinga.nugu'
4 +-- wezterm.gui is not available to the mux server, so take care to
5 +-- do something reasonable when this config is evaluated by the mux
6 +local get_appearance = function ()
7 + if wez.gui then
8 + return wez.gui.get_appearance()
9 + end
10 + return 'Dark'
11 +end
13 +local scheme_for_appearance = function ( appearance )
14 + if appearance:find( 'Dark', 1, true ) then
15 + return 'nugu-dark'
16 + else
17 + return 'nugu-light'
18 + end
19 +end
21 +return function ( cfg )
22 + cfg.color_scheme = scheme_for_appearance( get_appearance() )
23 + cfg.color_schemes = nugu
24 +end

wezterm/bugabinga/window.lua

Added
new file mode 100644
1 +return function ( cfg )
2 + -- this effectivly maximizes wezterm
3 + cfg.initial_rows = 200
4 + cfg.initial_cols = 200
6 + cfg.window_decorations = 'TITLE|RESIZE'
7 + cfg.enable_wayland = true
8 + cfg.window_padding = {
9 + left = 2,
10 + right = 2,
11 + top = 2,
12 + bottom = 0,
13 + }
14 +end

wezterm/bugabinga/workspaces.lua

Deleted
deleted file mode 100644
1 -local wez = require 'wezterm'
2 -local mux = wez.mux
3 -local win32 = wez.target_triple:find'windows'
5 -local get_my_code_workspace = function()
6 - if win32 then
7 - return wez.home_dir .. '/Workspaces'
8 - else
9 - return wez.home_dir .. '/Workspace'
10 - end
11 -end
13 -local WORKSPACE = get_my_code_workspace()
15 --- maximize all displayed windows
16 -local maximize_window = function()
17 - local workspace = mux.get_active_workspace()
18 - for _, window in ipairs(mux.all_windows()) do
19 - if window:get_workspace() == workspace then
20 - window:gui_window():maximize()
21 - end
22 - end
23 -end
25 -local setup_workspaces = function()
26 - local dork_ws = 'dorkfiles editing'
27 - local dork_cwd = WORKSPACE .. '/dotfiles'
28 - local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws }
29 - local dork_top_pane = dork_pane:split { cwd = dork_cwd, direction = 'Top', size = 0.69 }
30 - dork_top_pane:split { cwd = dork_cwd, direction = 'Left', size = 0.42 }
31 - dork_tab:set_title 'Dorkfiles Editing'
33 - local wezterm_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/wezterm' }
34 - wezterm_config_tab:set_title 'Wezterm'
35 - wezterm_config_tab:active_pane():split { cwd = dork_cwd .. '/wezterm', direction = 'Left', size = 0.69 }
37 - local nvim_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/neovim' }
38 - nvim_config_tab:set_title 'Neovim'
39 - nvim_config_tab:active_pane():split { cwd = dork_cwd .. '/neovim', direction = 'Left', size = 0.69 }
41 - local code_ws = 'code'
42 - local code_cwd = WORKSPACE
43 - local code_tab, code_pane, code_window = mux.spawn_window { cwd = code_cwd, workspace = code_ws }
44 - local code_top_pane = code_pane:split { cwd = code_cwd, direction = 'Top', size = 0.69 }
45 - code_pane:split { cwd = code_cwd, direction = 'Right', size = 0.42 }
46 - code_tab:set_title 'Code'
47 - code_top_pane:activate()
49 - local default_ws = 'default'
50 - local default_cwd = wez.home_dir
51 - local default_tab, default_pane, default_window = mux.spawn_window { cwd = default_cwd, workspace = default_ws }
52 - local default_top_pane = default_pane:split { cwd = default_cwd, direction = 'Top', size = 0.69 }
53 - default_pane:split { cwd = default_cwd, direction = 'Right', size = 0.42 }
54 - default_top_pane:split { cwd = default_cwd, direction = 'Right', size = 0.42 }
55 - default_tab:set_title 'Default'
56 - default_top_pane:activate()
58 - mux.set_active_workspace(default_ws)
59 -end
61 -wez.on('gui-attached', function()
62 - -- setup_workspaces()
63 - maximize_window()
64 -end)
66 --- NOTE(oli): errors in here do not show up as configuration errors
67 --- check the log file in the wezterm mux server runtime directory
68 --- e.g. /run/user/1000/wezterm/log
69 --- NOTE: mux seems buggy and slow. not sure why or how to really repro
70 --- wez.on('mux-startup', function()
71 --- setup_workspaces()
72 --- end)

wezterm/nerdfonts

Deleted
deleted file mode 100644
1 -Bitstream Vera Sans Mono
2 -# Terminus
3 -Anonymous Pro
4 -Aurulent Sans Mono
5 -# BigBlueTerminalPlus
6 -Cascadia Code
7 -Cousine
8 -D2Coding
9 -DejaVu Sans Mono
10 -Droid Sans Mono
11 -Envy Code R
12 -Fantasque Sans Mono
13 -# FiraCode
14 -GeistMono
15 -Hack
16 -Hasklig
17 -Hermit
18 -# IBM 3270
19 -IBM Plex Mono
20 -# Inconsolata
21 -Intel One Mono
22 -JetBrainsMono
23 -Lekton
24 -# Liberation Mono
25 -Lilex
26 -MartianMono
27 -Monaspace Argon Var
28 -Monaspace Krypton Var
29 -Monaspace Neon Var
30 -Monofur
31 -Monoid
32 -Mononoki
33 -Rec Mono Casual
34 -Rec Mono Linear
35 -RobotoMono
36 -Share Tech Mono
37 -Source Code Pro
38 -VictorMono
39 -iA Writer Mono V

wezterm/wezterm.lua

Modified
1 1 local wez = require 'wezterm'
2 -local nugu = require 'bugabinga.nugu'
2 +local cfg = wez.config_builder()
4 -local win32 = wez.target_triple:find 'windows'
5 -local key_binds = require 'bugabinga.key_binds'
6 -local auto_dark_mode = require 'bugabinga.auto_dark_mode'
7 -local workspaces = require 'bugabinga.workspaces'
8 -require 'bugabinga.status'
9 -local zen_mode = require 'bugabinga.neovim_zen_mode'
10 -zen_mode(wez)
12 -local random_nerd_font = function()
13 - local font_names = {}
14 - local nerdfonts = io.open(wez.config_dir .. '/nerdfonts', 'r')
15 - if nerdfonts then
16 - for font_name in nerdfonts:lines() do
17 - if not font_name:match '^#.*' then
18 - table.insert(font_names, font_name)
19 - end
20 - end
21 - local random_font = font_names[math.random(#font_names)]
22 - font = wez.font(random_font)
23 - end
24 -end
26 -local hostname = wez.hostname()
27 -local enable_wayland = false
28 -local window_decorations = 'INTEGRATED_BUTTONS|RESIZE'
29 -local font_size = 11.0
30 -local font = wez.font 'Cousine'
31 -if hostname == 'x230' then
32 - font_size = 13
33 - font = random_nerd_font();
34 - enable_wayland = true
35 - window_decorations = 'TITLE|RESIZE'
36 -elseif hostname == 'NB-00718' then
37 - font_size = 13
38 -elseif hostname == 'fedora' then
39 - font_size = 13
40 - font = random_nerd_font();
41 - enable_wayland = true
42 - window_decorations = 'RESIZE'
43 -end
45 --- Equivalent to POSIX basename(3)
46 --- Given "/foo/bar" returns "bar"
47 --- Given "c:\\foo\\bar" returns "bar"
48 -local function basename(s)
49 - return string.gsub(s, '(.*[/\\])(.*)', '%2')
50 -end
52 -local exec_domains = {
53 - -- Defines a domain called "systemd" that will run the requested
54 - -- command inside its own individual systemd scope.
55 - -- This defines a strong boundary for resource control and can
56 - -- help to avoid OOMs in one pane causing other panes to be
57 - -- killed.
58 - wez.exec_domain('systemd', function(cmd)
59 - -- The "cmd" parameter is a SpawnCommand object.
60 - -- You can log it to see what's inside:
61 - wez.log_info(cmd)
63 - -- Synthesize a human understandable scope name that is
64 - -- (reasonably) unique. WEZTERM_PANE is the pane id that
65 - -- will be used for the newly spawned pane.
66 - -- WEZTERM_UNIX_SOCKET is associated with the wezterm
67 - -- process id.
68 - local env = cmd.set_environment_variables
69 - local ident = 'wezterm-pane-'
70 - .. env.WEZTERM_PANE
71 - .. '-on-'
72 - .. basename(env.WEZTERM_UNIX_SOCKET)
74 - -- Generate a new argument array that will launch a
75 - -- program via systemd-run
76 - local wrapped = {
77 - '/usr/bin/systemd-run',
78 - '--user',
79 - '--scope',
80 - '--description=Shell started by wezterm',
81 - '--same-dir',
82 - '--collect',
83 - '--unit=' .. ident,
84 - }
86 - -- Append the requested command
87 - -- Note that cmd.args may be nil; that indicates that the
88 - -- default program should be used. Here we're using the
89 - -- shell defined by the SHELL environment variable.
90 - for _, arg in ipairs(cmd.args or { os.getenv 'SHELL' }) do
91 - table.insert(wrapped, arg)
92 - end
94 - -- replace the requested argument array with our new one
95 - cmd.args = wrapped
97 - -- and return the SpawnCommand that we want to execute
98 - return cmd
99 - end),
102 -return {
103 - -- logs key presses
104 - -- debug_key_events = true,
106 - default_cwd = wez.home_dir,
107 - default_prog = { 'nu', '--login' },
108 - default_cursor_style = 'SteadyBlock',
110 - exec_domains = exec_domains,
111 - -- unix_domains = { { name = 'mux' } },
112 - -- default_gui_startup_args = { 'connect', 'mux' },
114 - -- testing, if there is a feelable diff
115 - front_end = 'WebGpu',
116 - -- refresh rate of my displays. TODO: move this to host config
117 - max_fps = 144,
119 - font = font,
120 - font_size = font_size,
121 - -- freetype_load_target = 'Light',
122 - -- freetype_render_target = 'HorizontalLcd',
123 - -- underline_position = "-2pt",
124 - warn_about_missing_glyphs = false,
126 - color_scheme = auto_dark_mode,
127 - color_schemes = nugu,
128 - cursor_blink_rate = 0,
129 - -- https://github.com/wez/wezterm/issues/2635
130 - -- force_reverse_video_cursor = true,
131 - -- cursor_thickness = '1cell',
132 - window_decorations = window_decorations,
133 - enable_wayland = enable_wayland,
134 - enable_tab_bar = true,
135 - -- if this is hidden, we cannot see the right status area
136 - hide_tab_bar_if_only_one_tab = false,
137 - use_fancy_tab_bar = false,
138 - check_for_updates = false,
139 - audible_bell = 'Disabled',
140 - visual_bell = {
141 - fade_in_duration_ms = 69,
142 - fade_out_duration_ms = 69,
143 - target = 'CursorColor',
144 - },
145 - inactive_pane_hsb = {
146 - saturation = 0.42,
147 - brightness = 0.69,
148 - },
149 - tab_max_width = 42,
150 - window_padding = {
151 - left = 2,
152 - right = 2,
153 - top = 2,
154 - bottom = 0,
155 - },
157 - disable_default_key_bindings = true,
158 - leader = key_binds.leader,
159 - keys = key_binds.keys,
160 - key_tables = key_binds.key_tables,
4 +require 'bugabinga.options' ( cfg )
5 +require 'bugabinga.window' ( cfg )
6 +require 'bugabinga.fonts' ( cfg )
7 +require 'bugabinga.startup' ( cfg )
8 +require 'bugabinga.status' ( cfg )
9 +require 'bugabinga.theme' ( cfg )
10 +require 'bugabinga.key_binds' ( cfg )
11 +require 'bugabinga.hosts' ( cfg )
12 +require 'bugabinga.launch' ( cfg )
13 +require 'bugabinga.neovim_zen_mode'
15 +-- logs key presses
16 +-- cfg.debug_key_events = true,
17 +return cfg

x230.symlinks

Modified
25 25 icc/thinkpad_x230.icc
26 26 ~/.config/icc/thinkpad_x230.icc
28 -indexa/config.linux.toml
29 -~/.config/indexa/config.toml
31 28 topgrade/topgrade.linux.toml
32 29 ~/.config/topgrade.toml
34 -stackoverflow/so
35 -~/.config/so
37 31 wezterm
38 32 ~/.config/wezterm
40 34 wezterm/wezterm.service
41 35 ~/.config/systemd/user/wezterm.service
43 -helix/config.toml
44 -~/.config/helix/config.toml
46 -helix/languages.toml
47 -~/.config/helix/languages.toml
49 -helix/themes
50 -~/.config/helix/themes
52 -helix/systemd/helix-dark-mode.service
53 -~/.config/systemd/user/helix-dark-mode.service
55 -xplr
56 -~/.config/xplr
58 -river
59 -~/.config/river
61 37 ssh/config
62 38 ~/.ssh/config
67 43 neovide
68 44 ~/.config/neovide
46 +aerc/binds.conf
47 +~/.config/aerc/binds.conf
49 +aerc/aerc.conf
50 +~/.config/aerc/aerc.conf
71 52 fonts
72 53 ~/.local/share/fonts
55 +rbw
56 +~/.config/rbw
58 +broot
59 +~/.config/broot
61 +zed
62 +~/.config/zed
74 64 unison
75 65 ~/.unison
77 67 unison/unison@.service
78 68 ~/.config/systemd/user/unison@.service
70 +unison/unison@.timer
71 +~/.config/systemd/user/unison@.timer
80 73 hypr
81 74 ~/.config/hypr