repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nuhsell: prelude to big packages clean up

c98d23a85888433cc0b48e0ad13c7e562fb918d2

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (24)

+362 / −909 text lines

Diff layout

helix/config.toml

Modified

+1 / −1 text lines

1theme = "nugu-light"
1theme = "nugu-dark"
33[editor]
44shell = ["nu", "--commands"]

helix/themes/nugu-dark.toml

Modified

+17 / −17 text lines

123123normal = "#ededed"
124124backdrop = "#121212"
125accent = "#e808e8"
126important_local = "#9b66f0"
127important_global = "#b086f3"
128minor = "#686868"
129focus = "#7d9e9b"
130unfocus = "#284c4a"
131ui_normal = "#fefefe"
132ui_backdrop = "#010101"
133ui_accent = "#b63ab6"
134ui_important_global = "#9c6cea"
135ui_important_local = "#884de6"
136ui_minor = "#565656"
137ui_focus = "#738584"
138ui_unfocus = "#1f3231"
139error = "#ec1274"
140warning = "#f89f89"
141info = "#9c9bf5"
125accent = "#812281"
126important_local = "#948fa6"
127important_global = "#f3f3f5"
128minor = "#8b8b8b"
129focus = "#7ba1aa"
130unfocus = "#406f79"
131ui_normal = "#dbdbdb"
132ui_backdrop = "#242424"
133ui_accent = "#9d299d"
134ui_important_global = "#ffffff"
135ui_important_local = "#a7a3b6"
136ui_minor = "#9d9d9d"
137ui_focus = "#a4a4a4"
138ui_unfocus = "#6e6e6e"
139error = "#ac5a77"
140warning = "#b4b1ae"
141info = "#b8b8b8"
142142debug = "#ff00ff"

helix/themes/nugu-light.toml

Modified

+18 / −18 text lines

121121[palette]
123normal = "#2b2b2b"
123normal = "#121212"
124124backdrop = "#ededed"
125accent = "#750b75"
126important_local = "#8169c3"
127important_global = "#553d98"
128minor = "#787878"
129focus = "#267b8e"
130unfocus = "#929292"
131ui_normal = "#1a1a1a"
132ui_backdrop = "#ffffff"
133ui_accent = "#5a265a"
134ui_important_global = "#897bb1"
135ui_important_local = "#bab1d1"
136ui_minor = "#a3a3a3"
137ui_focus = "#53a5b7"
138ui_unfocus = "#bdbdbd"
139error = "#d6638b"
140warning = "#d9cbbb"
141info = "#c7d0db"
125accent = "#491349"
126important_local = "#4c4365"
127important_global = "#000000"
128minor = "#3b3b3b"
129focus = "#184e5b"
130unfocus = "#6f6f6f"
131ui_normal = "#242424"
132ui_backdrop = "#dbdbdb"
133ui_accent = "#2d0c2d"
134ui_important_global = "#000000"
135ui_important_local = "#3c3550"
136ui_minor = "#292929"
137ui_focus = "#212c2e"
138ui_unfocus = "#5d5d5d"
139error = "#804056"
140warning = "#928e8a"
141info = "#949494"
142142debug = "#ff00ff"

neovim/colors/nugu.lua

Modified

+6 / −2 text lines

55 vim.cmd [[ highlight clear ]]
66else
77 -- only set bg, first time nugu is loaded
8 -- vim.opt.background = const.os_background
9 vim.opt.background = 'light'
8
9 local start_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field
10 vim.opt.background = const.os_background
11 local end_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field
12 local time_elapsed = end_time - start_time
13 vim.notify(string.format('Queried OS background in (%d ms).', time_elapsed / 1e6), vim.log.levels.INFO)
1014end
1216vim.g.colors_name = 'nugu'

neovim/lua/bugabinga/nugu/init.lua

Modified

+1 / −1 text lines

187187_.WildMenu = _.Debug
188188_.TextYankPost { fg = content_backdrop, bg = ui_important_local }
190_.String { fg = content_important_local, italic = true }
190_.String { fg = content_focus, italic = true }
191191_.Constant = _.String
192192_.Character = _.String
193193_.Number = _.String

neovim/lua/bugabinga/nugu/palette_dark.lua

Modified

+17 / −17 text lines

11return {
22 debug = '#ff00ff',
3 error = '#ec1274',
4 info = '#9c9bf5',
5 warning = '#f89f89',
3 error = '#ac5a77',
4 info = '#b8b8b8',
5 warning = '#b4b1ae',
77 content_normal = '#ededed',
88 content_backdrop = '#121212',
9 content_accent = '#e808e8',
10 content_minor = '#686868',
11 content_focus = '#7d9e9b',
12 content_unfocus = '#284c4a',
13 content_important_global = '#b086f3',
14 content_important_local = '#9b66f0',
9 content_accent = '#812281',
10 content_minor = '#8b8b8b',
11 content_focus = '#7ba1aa',
12 content_unfocus = '#406f79',
13 content_important_global = '#f3f3f5',
14 content_important_local = '#948fa6',
16 ui_normal = '#fefefe',
17 ui_backdrop = '#010101',
18 ui_accent = '#b63ab6',
19 ui_minor = '#565656',
20 ui_focus = '#738584',
21 ui_unfocus = '#1f3231',
22 ui_important_global = '#9c6cea',
23 ui_important_local = '#884de6',
16 ui_normal = '#dbdbdb',
17 ui_backdrop = '#242424',
18 ui_accent = '#9d299d',
19 ui_minor = '#9d9d9d',
20 ui_focus = '#a4a4a4',
21 ui_unfocus = '#6e6e6e',
22 ui_important_global = '#ffffff',
23 ui_important_local = '#a7a3b6',
2424}No final newline

neovim/lua/bugabinga/nugu/palette_light.lua

Modified

+17 / −17 text lines

11return {
22 debug = '#ff00ff',
3 error = '#f2529a',
4 info = '#dbdbfb',
5 warning = '#fcd5cc',
3 error = '#804056',
4 info = '#949494',
5 warning = '#928e8a',
77 content_normal = '#121212',
88 content_backdrop = '#ededed',
9 content_accent = '#e808e8',
10 content_minor = '#5f5f5f',
11 content_focus = '#248883',
12 content_unfocus = '#aaaaaa',
13 content_important_global = '#9068cc',
14 content_important_local = '#a382d5',
9 content_accent = '#491349',
10 content_minor = '#3b3b3b',
11 content_focus = '#184e5b',
12 content_unfocus = '#6f6f6f',
13 content_important_global = '#000000',
14 content_important_local = '#4c4365',
16 ui_normal = '#010101',
17 ui_backdrop = '#fefefe',
18 ui_accent = '#b63ab6',
19 ui_minor = '#717171',
20 ui_focus = '#339d97',
21 ui_unfocus = '#bcbcbc',
22 ui_important_global = '#a588cf',
23 ui_important_local = '#b8a1d9',
16 ui_normal = '#242424',
17 ui_backdrop = '#dbdbdb',
18 ui_accent = '#2d0c2d',
19 ui_minor = '#292929',
20 ui_focus = '#212c2e',
21 ui_unfocus = '#5d5d5d',
22 ui_important_global = '#000000',
23 ui_important_local = '#3c3550',
2424}No final newline

nugu/justfile

Modified

+2 / −2 text lines

3232 use site.nu; site html dark | save --raw {{output}}/site-dark.html
3434open: html
35 firefox --new-tab {{output}}/site-dark.html
36 firefox --new-tab {{output}}/site-light.html
35 start {{output}}/site-dark.html
36 start {{output}}/site-light.html
3838helix: build
3939 rm --force --recursive {{output}}/helix

nugu/nugu.nu

Modified

+13 / −13 text lines

139139 --light # use the light variant of flux color modification
140140] {
141141 pastel desaturate $deescalator |
142 pastel ( if $light { "lighten" } else { "darken" } ) $compensator |
142 pastel ( if $light { "darken" } else { "lighten" } ) $compensator |
143143 pastel format hex |
144144 ansi strip
154154 --light # make the light variant
155155] {
156156 let base = (open base.toml | get palette)
157 def normal_flux [ --c: float=0.069 --d:float=0.069 ] { if $light { flux $c $d --light } else { flux $c $d } }
158 def inverted_flux [ --c: float=0.069 --d:float=0.069 ] { if $light { flux $c $d } else { flux $c $d --light } }
157 def normal_flux [ --c: float=0.069 --d:float=0.42 ] { if $light { flux $c $d --light } else { flux $c $d } }
158 def inverted_flux [ --c: float=0.069 --d:float=0.42 ] { if $light { flux $c $d } else { flux $c $d --light } }
160160 let normal = if $light { $base.backdrop } else { $base.normal }
161161 let backdrop = if $light { $base.normal } else { $base.backdrop }
168168 let warning = (
169169 $base.warning
170170 | mix $base.accent
171 | inverted_flux --c 0.042
171 | normal_flux
172172 )
173173 let info = (
174174 $base.info
175175 | mix $base.accent
176 | inverted_flux --c 0.042
176 | normal_flux
177177 )
178178 let content_normal = (
179179 $normal
180 | normal_flux
180 | inverted_flux
181181 )
182182 let content_backdrop = (
183183 $backdrop
184 | inverted_flux
184 | normal_flux
185185 )
186186 let content_accent = (
187187 $base.accent
188 | normal_flux --c 0
188 | normal_flux
189189 )
190190 let content_minor = (
191191 $normal
196196 $base.focus
197197 | mix $content_normal
198198 | mix $base.important
199 | normal_flux --c 0.042 --d 0.42
199 | normal_flux
200200 )
201201 let content_unfocus = (
202202 $base.focus
203203 | mix $content_backdrop
204204 | mix $base.important
205 | normal_flux --c 0.069 --d 0.69
205 | normal_flux --d 0.69
206206 )
207207 let content_important_local = (
208208 $base.important
216216 | mix $content_normal
217217 | mix $base.important
218218 | mix $base.accent
219 | normal_flux --c 0
219 | normal_flux --c 0.42
220220 )
221221 let ui_normal = (
222222 $content_normal
228228 )
229229 let ui_accent = (
230230 $content_accent
231 | normal_flux --c 0 --d 0.42
231 | normal_flux --d 0
232232 )
233233 let ui_minor = (
234234 $content_minor
244244 )
245245 let ui_important_local = (
246246 $content_important_local
247 | normal_flux
247 | normal_flux --d 0
248248 )
249249 let ui_important_global = (
250250 $content_important_global

nugu/site.nu

Modified

+117 / −0 text lines

1010 str join (char newline)
13def make-code-block-divs [] {
14 '
15 <pre><code>
16<span class="keyword">package</span> <span class="package">com.orga.my.package</span>;
18<span class="keyword">import</span> java.util.<span class="type">List</span>;
19<span class="keyword">import</span> java.util.<span class="type">Map</span>;
20<span class="keyword">import</span> java.util.<span class="type">Optional</span>;
21<span class="keyword">import</span> org.springframework.stereotype.<span class="type">Service</span>;
22<span class="keyword">import</span> jakarta.validation.constraints.<span class="type">NotNull</span>;
24<span class="comment">// DemoService: A chaotic showcase of every Java keyword and type</span>
25<span class="annotation">@Service</span>
26<span class="keyword">public</span> <span class="keyword">final</span> <span class="keyword">class</span> <span class="class-name">DemoService</span> <span class="keyword">implements</span> <span class="type">DemoInterface</span> {
27 <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> CONSTANT = <span class="string">"CONST"</span>;
28 <span class="keyword">private</span> <span class="keyword">transient</span> <span class="keyword">volatile</span> <span class="type">int</span> counter = 0;
29 <span class="keyword">private</span> <span class="type">Map</span><<span class="type">Long</span>, <span class="type">Double</span>> cache;
31 <span class="comment">// Enum for no reason other than to flex</span>
32 <span class="keyword">public</span> <span class="keyword">enum</span> <span class="class-name">Mode</span> { ON, OFF }
34 <span class="comment">// Record because Java loves new toys</span>
35 <span class="keyword">public</span> <span class="keyword">record</span> <span class="class-name">Data</span>(<span class="type">byte</span> b, <span class="type">short</span> s) {}
37 <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="type">void</span> demo(<span class="annotation">@NotNull</span> <span class="type">Object</span> obj) <span class="keyword">throws</span> <span class="type">Exception</span> {
38 <span class="keyword">assert</span> obj != <span class="literal">null</span> : <span class="string">"Obj is null, you fool"</span>;
39 <span class="keyword">var</span> value = <span class="keyword">new</span> <span class="type">Data</span>((<span class="type">byte</span>) 1, (<span class="type">short</span>) 2);
40 <span class="keyword">if</span> (obj <span class="keyword">instanceof</span> <span class="type">String</span> str) {
41 <span class="keyword">switch</span> (str) {
42 <span class="keyword">case</span> <span class="string">"test"</span> -> { <span class="keyword">yield</span> <span class="literal">true</span>; }
43 <span class="keyword">default</span> -> { <span class="keyword">yield</span> <span class="literal">false</span>; }
44 }
45 }
46 <span class="keyword">else</span> {
47 <span class="keyword">for</span> (<span class="type">int</span> i = 0; i < 10; i++) {
48 <span class="keyword">continue</span>;
49 }
50 }
51 <span class="keyword">while</span> (counter < 5) {
52 <span class="keyword">try</span> {
53 <span class="keyword">double</span> result = Math.random();
54 <span class="keyword">if</span> (result > 0.5) <span class="keyword">break</span>;
55 } <span class="keyword">catch</span> (<span class="type">Exception</span> e) {
56 <span class="keyword">throw</span> <span class="keyword">new</span> <span class="type">RuntimeException</span>(<span class="string">"Chaos"</span>, e);
57 } <span class="keyword">finally</span> {
58 counter++;
59 }
60 }
61 <span class="keyword">synchronized</span> (<span class="keyword">this</span>) {
62 cache.put(1L, 42.0);
63 }
64 <span class="keyword">return</span>;
65 }
67 <span class="comment">// Abstract method in an interface for no reason</span>
68 <span class="keyword">interface</span> <span class="class-name">DemoInterface</span> {
69 <span class="keyword">abstract</span> <span class="type">void</span> pointless();
70 }
72 <span class="comment">// Module stuff because Java wants to be fancy</span>
73 <span class="keyword">module</span> demo.module {
74 <span class="keyword">requires</span> java.base;
75 <span class="keyword">exports</span> com.orga.my.package;
76 <span class="keyword">provides</span> <span class="type">DemoInterface</span> <span class="keyword">with</span> <span class="class-name">DemoService</span>;
77 }
78}
79 </code></pre>
80 '
81}
1383export def html [ theme: string ] {
1484 let palette = ( open $"output/($theme).toml" | get palette )
1585 let palette_colors = ( $palette | reject content ui )
1989 let global_color_divs = ( $palette_colors | to-divs )
2090 let content_color_divs = ( $content_colors | to-divs )
2191 let ui_color_divs = ( $ui_colors | to-divs )
92 let code_block_divs = make-code-block-divs
2293 let backdrop = if $theme == "dark" { "black" } else { "white" }
2394 let normal = if $theme == "dark" { "white" } else { "black" }
2596 $"
2697 <!DOCTYPE html>
2798 <html>
99 <head>
100 <meta charset='UTF-8'>
101 <meta name='viewport' content='width=device-width, initial-scale=1.0'>
102 </head>
28103 <script>
29104 function copy\(color\) {
30105 navigator.clipboard.writeText\(color\);
80155 transform: scale\(1.666\);
81156 z-index: 999;
82157 }
158 pre {
159 max-width: 800px;
160 margin: 20px auto;
161 padding: 15px;
162 border-radius: 8px;
163 box-shadow: 0 2px 5px rgba\(0, 0, 0, 0.5);
164 background: ($palette.content.backdrop);
165 color: ($palette.content.normal);
166 font-family: 'Cousine', 'Consolas', monospace;
167 font-size: 16px;
168 line-height: 1.5;
169 overflow-x: auto;
170 tab-size: 2;
171 }
172 code {
173 display: block;
174 }
175 .code-block {
176 max-width: 800px;
177 margin: 20px auto;
178 padding: 15px;
179 border-radius: 8px;
180 box-shadow: 0 4px 8px rgba\(142, 142, 142, 0.3);
181 border: 1px solid #999999;
182 line-height: 1.5;
183 overflow-x: auto;
184 tab-size: 2;
185 }
186 .keyword { color: ($palette.content.minor); }
187 .string { color: ($palette.content.focus); font-style: italic; }
188 .comment { color: ($palette.content.important_global); font-weight: bold; }
189 .class-name { color: ($palette.content.important_local); }
190 .package { color: ($palette.content.minor); }
191 .type { color: ($palette.content.important_local); }
192 .literal { color: ($palette.content.focus); }
193 .annotation { color: ($palette.content.minor); }
83194 </style>
84196 <h1>nugu color palette</h1>
86198 <h2>global colors</h2>
97209 <div class='grid'>
98210 ($ui_color_divs)
99211 </div>
213 <h2>syntax example</h2>
214 <div class='code-block'>
215 ($code_block_divs)
216 </div>
100217 </html>
101218 "

tools/crates.csv

Modified

+0 / −15 text lines

11name;bin;cargo_args
2asm-cli-rust; asm-cli-rust; --git https://github.com/cch123/asm-cli-rust
32bat
4bk
53bottom; btm
6cargo-cache
74cargo-update;cargo-install-update
8carl
9calendar-rs;calendar
105du-dust; dust
116dotenv-linter
12diskonaut
13eva
14emplace
15eza; eza; --features vendored-openssl,vendored-libgit2
167fend
178fd-find;fd
18git-delta;delta
199gitu;gitu; --locked
20gitoxide;gix
2110hexyl
2211hyperfine
2312inlyne
2716lurk-cli; lurk
2817lychee;lychee; --locked --no-default-features --features rustls-tls,email-check
2918macchina
30mdbook
3119mdcat
3220monolith
3321names
4028presenterm
4129pueue;pueue;--locked
4230ripgrep;rg
43rbw
4431skim;sk
4532sbyte
4633sniffnet
4835tealdeer;tldr
4936tokei
5037topgrade
51tsdl
5238ttyper
53unison-fsmonitor
5439ugdb
5540vivid
5641wthrr

tools/download.java

Deleted
deleted file mode 100644

+0 / −73 text lines

1import static java.lang.System.*;
2
3import java.net.*;
4import java.net.http.*;
5import java.net.http.HttpClient.*;
6import java.net.http.HttpResponse.*;
7import java.nio.file.*;
8import java.util.*;
9import java.util.regex.*;
10
11class download {
12 public static void main(String[] command_line_arguments) {
13 if (command_line_arguments.length < 1) {
14 usage();
15 fail("give me an url to download from!");
16 }
17 var client = HttpClient.newBuilder().followRedirects(Redirect.NORMAL).build();
18 var source_name = command_line_arguments[0];
19 var source = URI.create(source_name);
20 var current_working_directory = System.getProperty("user.dir");
21 Path target;
22 if (command_line_arguments.length == 2) {
23 target = Paths.get(current_working_directory, command_line_arguments[1]);
24 } else {
25 target = Paths.get(current_working_directory, guess_file_name(source_name));
26 }
27 out.printf("Downloading %s into %s.%n", emphasize_local(source.toString()), emphasize_local(target.toString()));
28 download_ressource(client, source, target);
29 // TODO: download links in html to other pages
30 exit();
31 }
32
33 static String guess_file_name(String name) {
34 return name.replaceAll("\\w+:\\/\\/", "").replaceAll("\\/", "_");
35 }
36
37 static void download_ressource(HttpClient client, URI source, Path target) {
38 //TODO: handle copmressed ressources
39 //TODO: show progess
40 var request = HttpRequest.newBuilder().uri(source).build();
41 client
42 .sendAsync(request, BodyHandlers.ofFile(target))
43 .thenAccept(response -> out.printf("Downloaded %s into %s!%n", emphasize_local(source.toString()), emphasize_global(response.body().toString())))
44 .join();
45 }
46
47 static void usage() {
48 out.printf("Downloads a file from an %s.%n", emphasize_local("URL"));
49 out.printf("%s: java download.java <source url> <destination path>%n", emphasize_global("Usage"));
50 }
51
52 static void exit() {
53 out.printf("%s!%n", emphasize_local("Done"));
54 System.exit(0);
55 }
56
57 static String emphasize_global(String message) {
58 return "\033[4m" + message + "\033[0m";
59 }
60
61 static String emphasize_local(String message) {
62 return "\033[3m" + message + "\033[0m";
63 }
64
65 static void fail(String message, Object... arguments) {
66 out.printf(message, arguments);
67 System.exit(-1);
68 }
69
70 static void fail() {
71 System.exit(-1);
72 }
73}

tools/download_jar.java

Deleted
deleted file mode 100644

+0 / −198 text lines

1import static java.lang.System.out;
2
3import java.io.*;
4import java.net.*;
5import java.net.http.*;
6import java.net.http.HttpResponse.*;
7import java.nio.file.*;
8import java.util.*;
9import java.util.concurrent.ConcurrentSkipListSet;
10
11class download_jar {
12 public static void main(final String[] command_line_arguments) {
13 help();
14 var current_working_directory = Paths.get(System.getProperty("user.dir"));
15 var download_directory = current_working_directory.resolve("downloaded_artifacts");
16 var maven_repository = "https://repo.maven.apache.org/maven2";
17 var expected_count_of_arguments = 3;
18 if (contains(command_line_arguments, "-d")) {
19 expected_count_of_arguments = expected_count_of_arguments + 2;
20 try {
21 var given_download_directory = command_line_arguments[index_of(command_line_arguments, "-d") + 1];
22 download_directory = current_working_directory.resolve(given_download_directory);
23 } catch (IndexOutOfBoundsException exception) {
24 out.println("The -d option requires an argument.");
25 usage();
26 fail();
27 }
28 }
29 if (contains(command_line_arguments, "-r")) {
30 expected_count_of_arguments = expected_count_of_arguments + 2;
31 try {
32 var given_maven_repository = command_line_arguments[index_of(command_line_arguments, "-r") + 1];
33 maven_repository = given_maven_repository;
34 } catch (IndexOutOfBoundsException exception) {
35 out.println("The -r option requires an argument.");
36 usage();
37 fail();
38 }
39 }
40 if (command_line_arguments.length != expected_count_of_arguments) {
41 usage();
42 fail();
43 }
44 var maven_coordinates_reversed = new String[3];
45 for (var index = 2; index >= 0; --index) {
46 maven_coordinates_reversed[index] = command_line_arguments[expected_count_of_arguments - index - 1];
47 }
48 var group_id = maven_coordinates_reversed[2];
49 var artifact_id = maven_coordinates_reversed[1];
50 var version = maven_coordinates_reversed[0];
51
52 if (Files.exists(download_directory) && Files.isRegularFile(download_directory)) {
53 fail("The given download directory path %s already points to a file!%n", download_directory.toString());
54 } else if (!Files.exists(download_directory)) {
55 out.printf("Creating directory at %s%n.", emphasize_global(download_directory.toString()));
56 try {
57 Files.createDirectories(download_directory);
58 } catch (IOException __) {
59 fail("Unable to create directory at %s", emphasize_global(download_directory.toString()));
60 }
61 }
62
63 var expected_artifact_base_url = guess_maven_artifact_url(maven_repository, group_id, artifact_id, version);
64 var client = HttpClient.newHttpClient();
65 var request = HttpRequest.newBuilder().uri(URI.create(expected_artifact_base_url)).build();
66 var target_directory = download_directory;
67 client.sendAsync(request, BodyHandlers.ofString()).thenApply(HttpResponse::statusCode).thenAccept(status -> {
68 if (status > 299) {
69 fail("Could not find maven artifact at %s.%n", expected_artifact_base_url);
70 } else {
71 download_ressource(client, target_directory,
72 build_ressource_url(expected_artifact_base_url, artifact_id, version, ".jar"));
73 download_ressource(client, target_directory,
74 build_ressource_url(expected_artifact_base_url, artifact_id, version, "-sources.jar"));
75 // FIXME BLOCKER! How do we implement the version clash resolution?
76 // Preferably in a manner that avoids pointless downloads...
77 var processed_cache = new ConcurrentSkipListSet<String>();
78 process_pom(client, processed_cache,
79 build_ressource_url(expected_artifact_base_url, artifact_id, version, ".pom"));
80 }
81 }).join();
82
83 out.printf("download directory:\t%s%nmaven repository:\t%s%nmaven coordinates:\t%s:%s:%s%n",
84 emphasize_global(download_directory.toString()), emphasize_global(maven_repository), emphasize_global(group_id),
85 emphasize_global(artifact_id), emphasize_global(version));
86 exit();
87 }
88
89 static Collection<String> process_pom(HttpClient client, Set<String> processed, String pom_url) {
90 if (processed.contains(pom_url))
91 return Collections.emptyList();
92 var request = HttpRequest.newBuilder().uri(URI.create(pom_url)).build();
93 return client.sendAsync(request, BodyHandlers.ofInputStream()).thenApply(input -> {
94 // TODO add pom to list of processed so that a pom only ever gets read once
95 processed.add(pom_url);
96 // TODO traverse path to root of poms and collect managed dependencies
97 // TODO collect declared dependencies from given pom
98 return List.<String>of();
99 }).join();
100 }
101
102 static void download_ressource(HttpClient client, Path target_directory, String ressource_url) {
103 var request = HttpRequest.newBuilder().uri(URI.create(ressource_url)).build();
104 var ressource_name = ressource_url.substring(ressource_url.lastIndexOf('/') + 1);
105 var target_ressource_path = target_directory.resolve(ressource_name);
106 client.sendAsync(request, BodyHandlers.ofFile(target_ressource_path)).join();
107 }
108
109 static String build_ressource_url(String base, String artifact_id, String version, String suffix) {
110 var url = new StringBuilder(base);
111 if (!base.endsWith("/"))
112 url.append('/');
113 url.append(artifact_id);
114 url.append('-');
115 url.append(version);
116 url.append(suffix);
117 return url.toString();
118 }
119
120 static String guess_maven_artifact_url(String base, String group_id, String artifact_id, String version) {
121 var url = new StringBuilder(base);
122 if (!base.endsWith("/"))
123 url.append('/');
124 url.append(group_id.replaceAll("\\.", "\\/"));
125 url.append('/');
126 url.append(artifact_id);
127 url.append('/');
128 url.append(version);
129 url.append('/');
130 return url.toString();
131 }
132
133 static class Dependency {
134 String artifactId;
135 String groupId;
136 String version;
137 String scope;
138 boolean optional;
139 }
140
141 static <T> int index_of(T[] array, T item) {
142 var length = array.length;
143 if (length == 0)
144 return -1;
145 for (var index = 0; index < length; ++index) {
146 var element = array[index];
147 if (Objects.equals(element, item))
148 return index;
149 }
150 return -1;
151 }
152
153 @SafeVarargs
154 static <T> boolean contains(T[] array, T... items) {
155 if (array.length == 0)
156 return false;
157 if (items.length == 0)
158 return false;
159 for (var element : array) {
160 for (var argument : items) {
161 if (element.equals(argument))
162 return true;
163 }
164 }
165 return false;
166 }
167
168 static void help() {
169 out.printf("Downloads an artifact from a %s repository with its %s.%n", emphasize_local("maven"),
170 emphasize_local("transitive dependencies"));
171 }
172
173 static void usage() {
174 out.printf("%s: java download_jar.java <group id> <artifact id> <version>%n", emphasize_global("Usage"));
175 }
176
177 static void exit() {
178 out.printf("%s!%n", emphasize_local("Done"));
179 System.exit(0);
180 }
181
182 static String emphasize_global(String message) {
183 return "\033[4m" + message + "\033[0m";
184 }
185
186 static String emphasize_local(String message) {
187 return "\033[3m" + message + "\033[0m";
188 }
189
190 static void fail(String message, Object... arguments) {
191 out.printf(message, arguments);
192 System.exit(-1);
193 }
194
195 static void fail() {
196 System.exit(-1);
197 }
198}

tools/fedora_packages.txt

Added
new file mode 100644

+50 / −0 text lines

1aerc
2android-tools
3ani-cli
4bat
5carapace-bin
6cliphist
7cmake
8cmus
9curl
10difftastic
11direnv
12ethtool
13fd-find
14ffmpeg
15firefox
16flatpak
17fzf
18gamemode
19gamescope
20gh
21git
22gnupg2
23golang
24hplip
25hplip-gui
26java-latest-openjdk
27java-latest-openjdk-devel
28java-latest-openjdk-javadoc
29java-latest-openjdk-src
30just
31lua-language-server
32luajit
33lutris
34mold
35mpv
36neovim
37pandoc
38pavucontrol
39picard
40ripgrep
41rustup
42shfmt
43skim
44steam
45tealdeer
46wezterm
47wl-clipboard
48zathura
49zathura-pdf-mupdf
50zig

tools/git-info

Deleted
deleted file mode 100755

+0 / −338 text lines

1#!/bin/sh
2#
3# git-info - shows information about a Git repository a la `svn info'
4#
5# How to use:
6# $ git info
7# $ git info ~/src/somewhere/somefile
8# $ git info some/relative/file_or_directory
9# $ git info ~/repos/something.git
10#
11# Copyright (c) 2009-2022 Akinori MUSHA
12#
13# All rights reserved.
14#
15# Redistribution and use in source and binary forms, with or without
16# modification, are permitted provided that the following conditions
17# are met:
18# 1. Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# 2. Redistributions in binary form must reproduce the above copyright
21# notice, this list of conditions and the following disclaimer in the
22# documentation and/or other materials provided with the distribution.
23#
24# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
25# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
28# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34# SUCH DAMAGE.
35#
36
37COLOR=
38
39main () {
40 local opt
41 local OPTS_SPEC="\
42$0 [<options>] [<path>]
43
44$0 shows information about a Git repository.
45--
46h,help show the help
47color?when show colored output (always|never|auto)
48"
49 eval "$(echo "$OPTS_SPEC" | git rev-parse --parseopt --stuck-long -- "$@" || echo exit $?)"
50
51 while [ $# -gt 0 ]; do
52 opt="$1"
53 shift
54
55 case "$opt" in
56 --color)
57 COLOR=always
58 ;;
59 --color\=*)
60 COLOR="${opt#*=}"
61 ;;
62 --)
63 break
64 ;;
65 *)
66 die "Unexpected option: $opt"
67 ;;
68 esac
69 done
70
71 initialize_colors
72
73 case "$#" in
74 1)
75 ;;
76 0)
77 if [ -n "$GIT_DIR" ]; then
78 set -- "$GIT_DIR"
79 else
80 set -- .
81 fi
82 ;;
83 *)
84 die "Too many arguments"
85 ;;
86 esac
87
88 git_info "$1"
89}
90
91initialize_colors () {
92 if [ -z "$COLOR" ]; then
93 if git config --get-colorbool color.info; then
94 COLOR=always
95 else
96 COLOR=never
97 fi
98 fi
99
100 case "$COLOR" in
101 always|never)
102 COLOR_BRANCH=$COLOR
103 ;;
104 auto)
105 if git config --get-colorbool color.branch; then
106 COLOR_BRANCH=always
107 else
108 COLOR_BRANCH=never
109 fi
110 ;;
111 *)
112 die "option \`color' expects \"always\", \"auto\", or \"never\""
113 ;;
114 esac
115
116 if [ "$COLOR" = always ]; then
117 REMOTE_COLOR="$(get_color color.info.remote color.branch.remote red)"
118 LOCAL_COLOR="$(get_color color.info.local color.branch.local green)"
119 PATH_COLOR="$(get_color color.info.path '' 'bold')"
120 REPOSITORY_COLOR="$(get_color color.info.repository '' 'bold')"
121 ID_COLOR="$(get_color color.info.id '' 'yellow')"
122 RESET_COLOR=$(printf "\033[m")
123 else
124 REMOTE_COLOR=
125 LOCAL_COLOR=
126 PATH_COLOR=
127 REPOSITORY_COLOR=
128 ID_COLOR=
129 RESET_COLOR=
130 fi
131}
132
133get_color () {
134 local key1="$1" key2="$2" fb="$3"
135 local color="$(git config --get-color "$key1" '')"
136 case "$color" in
137 ''|'')
138 git config --get-color "$key2" "$fb"
139 ;;
140 *)
141 printf '%s' "$color"
142 ;;
143 esac
144}
145
146git_info () {
147 local path="$1" dir relpath root git_dir
148
149 if [ -d "$path" ]; then
150 dir="$(cd -P "$path" && pwd)" || die "$path: Cannot cd to the directory"
151 case "$path" in
152 *.git)
153 git_dir="$dir"
154 ;;
155 esac
156 elif [ -f "$path" ]; then
157 dir="$(dirname "$path")"
158 dir="$(cd -P "$dir" && pwd)" || die "$dir: Cannot cd to the directory"
159 relpath="$(basename "$path")"
160 else
161 die "$path: No such file or directory"
162 fi
163
164 if [ -n "$git_dir" ]; then
165 dir=
166 relpath=
167 elif case "$dir" in ?*.git) [ -d "$dir/objects" -a -d "$dir/refs" ] ;; *) false ;; esac; then
168 git_dir="$dir"
169 relpath=
170 else
171 root="$(
172 cd "$dir" || exit 1
173 while [ ! -e .git ]; do
174 [ "$(pwd)" = / ] && exit 1
175 cd ..
176 done
177 pwd
178 )" || die "Not a git repository."
179 git_dir="$root/.git"
180 if [ "$dir" = "$root" ]; then
181 relpath=.
182 elif [ -n "$relpath" ]; then
183 relpath="${dir#"$root/"}/$relpath"
184 else
185 relpath="${dir#"$root/"}"
186 fi
187 fi
188
189 set -- "$git_dir"
190 if [ -n "$relpath" ]; then
191 set -- "$@" "$relpath"
192 fi
193
194 do_git_info "$@"
195}
196
197do_git_info () {
198 local git_dir="$1" relpath="$2" root line field color reset
199
200 shift
201
202 echo "Repository Path: $PATH_COLOR$git_dir$RESET_COLOR"
203
204 if [ $# -gt 0 ]; then
205 root="$(dirname "$git_dir")"
206 if [ "$relpath" = . ]; then
207 echo "Path: $PATH_COLOR$root$RESET_COLOR"
208 else
209 echo "Path: $PATH_COLOR$root/$relpath$RESET_COLOR"
210 fi
211 fi
212
213 maketemp
214
215 GIT_DIR="$git_dir" git remote -v > "$TEMPFILE"
216 if [ -s "$TEMPFILE" ]; then
217 echo "Remote Repositories:"
218 sed -e "s/^\([^ ]\{1,\}\)\([ ]\{1,\}\)\([^ ]\{1,\}\)/$REMOTE_COLOR\1$RESET_COLOR\2$REPOSITORY_COLOR\3$RESET_COLOR/" \
219 -e 's/^/ /' \
220 "$TEMPFILE"
221 fi
222
223 GIT_DIR="$git_dir" git branch -r --color=$COLOR_BRANCH > "$TEMPFILE"
224 if [ -s "$TEMPFILE" ]; then
225 echo "Remote Branches:"
226 sed -e "s/\([ ]\{1,\}->[ ]\{1,\}\)\([^ ]\{1,\}\)/\1$REMOTE_COLOR\2$RESET_COLOR/" \
227 -e 's/^ */ /' "$TEMPFILE"
228 fi
229
230 GIT_DIR="$git_dir" git branch --color=$COLOR_BRANCH > "$TEMPFILE"
231 if [ -s "$TEMPFILE" ]; then
232 echo "Local Branches:"
233 sed 's/^/ /' "$TEMPFILE"
234 fi
235
236 echo "Repository Configuration:"
237 GIT_DIR="$git_dir" git config --local --list | sort | {
238 prev_section=
239 prev_subsection=
240 while read line; do
241 case "$line" in
242 (*=*)
243 lhs=$(expr "$line" : '\([^=]\{1,\}\)')
244 rhs=$(expr "$line" : '[^=]\{1,\}=\(.*\)')
245 case "$lhs" in
246 (?*.?*.?*)
247 section=$(expr "$lhs" : '\([^.]\{1,\}\)')
248 subsection=$(expr "$lhs" : '[^.]\{1,\}\.\(.\{1,\}\)\.')
249 key=$(expr "$lhs" : '[^.]\{1,\}\..\{1,\}\.\([^.]\{0,\}\)$')
250 if [ "$section" != "$prev_section" -o "$subsection" != "$prev_subsection" ]; then
251 prev_section=$section
252 prev_subsection=$subsection
253 case "$section" in
254 (remote)
255 subsection=$REMOTE_COLOR$subsection$RESET_COLOR
256 ;;
257 (branch)
258 subsection=$LOCAL_COLOR$subsection$RESET_COLOR
259 esac
260 printf "\t[%s \"%s\"]\n" "$section" "$subsection"
261 fi
262 case "$section" in
263 (remote)
264 if [ "$key" = url ]; then
265 rhs=$REPOSITORY_COLOR$rhs$RESET_COLOR
266 fi
267 ;;
268 (branch)
269 if [ "$key" = remote ]; then
270 rhs=$REMOTE_COLOR$rhs$RESET_COLOR
271 fi
272 esac
273 printf "\t\t%s = %s\n" "$key" "$rhs"
274 ;;
275 (?*.?*)
276 section=$(expr "$lhs" : '\([^.]\{1,\}\)')
277 key=$(expr "$lhs" : '[^.]\{1,\}\.\([^.]\{1,\}\)$')
278 if [ "$section" != "$prev_section" -o -n "$prev_subsection" ]; then
279 prev_section=$section
280 prev_subsection=
281 printf "\t[%s]\n" "$section"
282 fi
283 printf "\t\t$key = $rhs\n"
284 ;;
285 (*)
286 esac
287 esac
288 done
289 }
290
291 (cd "$root" && GIT_DIR="$git_dir" git log --max-count=1 "$@") | {
292 while read -r field line; do
293 color=
294 reset=
295 case "$field" in
296 commit)
297 field='Commit ID:'
298 color="$ID_COLOR"
299 reset="$RESET_COLOR"
300 ;;
301 *:)
302 ;;
303 '')
304 break
305 ;;
306 esac
307 echo "Last Changed $field $color$line$reset"
308 done
309 cat > "$TEMPFILE"
310 }
311 echo "Last Changed Log:"
312 sed 's/^ / /' "$TEMPFILE"
313
314 finalize
315}
316
317die () {
318 [ "$#" -gt 0 ] && echo "$0: $@" >&2
319 finalize
320 exit 1
321}
322
323TEMPFILE=
324
325maketemp () {
326 if [ -z "$TEMPFILE" ]; then
327 TEMPFILE="$(mktemp /tmp/git-info.XXXXXX)" || die
328 trap "finalize; exit 130" 1 2 3 15
329 fi
330}
331
332finalize () {
333 if [ -n "$TEMPFILE" ]; then
334 rm -f "$TEMPFILE"
335 fi
336}
337
338main "$@"No final newline

tools/gnome-settings.nu

Deleted
deleted file mode 100755

+0 / −17 text lines

1#!/usr/bin/env nu
2
3def main [] {
4 const background_settings = [
5 ['key', 'value'];
6 ['picture-uri', 'none']
7 ['color-shading-type', 'solid']
8 ['primary-color', '#131313']
9 ['secondary-color', '#131313']
10 ]
11
12 $background_settings | each { | setting |
13 run-external gsettings set 'org.gnome.desktop.background' $setting.key $setting.value
14 }
15
16 null
17}

tools/invaders.sh

Deleted
deleted file mode 100755

+0 / −39 text lines

1#!/usr/bin/bash
2#
3# ANSI color scheme script featuring Space Invaders
4#
5# Original: http://crunchbang.org/forums/viewtopic.php?pid=126921%23p126921#p126921
6# Modified by lolilolicon
7#
8
9f=3 b=4
10for j in f b; do
11 for i in {0..7}; do
12 printf -v $j$i %b "\e[${!j}${i}m"
13 done
14done
15bld=$'\e[1m'
16rst=$'\e[0m'
17
18cat << EOF
19
20 $f1 ▀▄ ▄▀ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4 ▀▄ ▄▀ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst
21 $f1 ▄█▀███▀█▄ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4 ▄█▀███▀█▄ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst
22 $f1█▀███████▀█ $f2▀▀███▀▀███▀▀ $f3▀█▀██▀█▀ $f4█▀███████▀█ $f5▀▀███▀▀███▀▀ $f6▀█▀██▀█▀$rst
23 $f1▀ ▀▄▄ ▄▄▀ ▀ $f2 ▀█▄ ▀▀ ▄█▀ $f3▀▄ ▄▀ $f4▀ ▀▄▄ ▄▄▀ ▀ $f5 ▀█▄ ▀▀ ▄█▀ $f6▀▄ ▄▀$rst
24
25 $bld$f1▄ ▀▄ ▄▀ ▄ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4▄ ▀▄ ▄▀ ▄ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst
26 $bld$f1█▄█▀███▀█▄█ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4█▄█▀███▀█▄█ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst
27 $bld$f1▀█████████▀ $f2▀▀▀██▀▀██▀▀▀ $f3▀▀█▀▀█▀▀ $f4▀█████████▀ $f5▀▀▀██▀▀██▀▀▀ $f6▀▀█▀▀█▀▀$rst
28 $bld$f1 ▄▀ ▀▄ $f2▄▄▀▀ ▀▀ ▀▀▄▄ $f3▄▀▄▀▀▄▀▄ $f4 ▄▀ ▀▄ $f5▄▄▀▀ ▀▀ ▀▀▄▄ $f6▄▀▄▀▀▄▀▄$rst
29
30
31 $f7▌$rst
32
33 $f7▌$rst
34
35 $f7 ▄█▄ $rst
36 $f7▄█████████▄$rst
37 $f7▀▀▀▀▀▀▀▀▀▀▀$rst
38
39EOFNo final newline

tools/packages.nu

Modified

+1 / −1 text lines

2222}
2424def make-cache-path [
25 name: string # application name, for which to generate a stable system location for cache files
25 name: string # namespace for new cache location in systems cache
2626] {
2727 let os = sys host | get name
2828 let system_location = if $OS =~ "Windows" {

tools/packages.nuon

Modified

+93 / −94 text lines

1[
2 [name binary version win32_url lnx_url];
3 [
4 ziggy
5 ziggy
6 0.0.1
7 https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-windows.zip
8 https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-linux-musl.tar.xz
9 ]
10 [
11 superhtml
12 superhtml
13 0.5.3
14 https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-windows.zip
15 https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-linux-musl.tar.gz
16 ]
17 [
18 lemminx
19 lemminx
20 0.29.0
21 https://github.com/redhat-developer/vscode-xml/releases/download/{ version }/lemminx-win32.zip
22 https://github.com/redhat-developer/vscode-xml/releases/download/{ version }/lemminx-linux.zip
23 ]
24 [
25 mergiraf
26 mergiraf
27 0.8.1
28 https://codeberg.org/mergiraf/mergiraf/releases/download/v{ version }/mergiraf_x86_64-pc-windows-gnu.zip
29 https://codeberg.org/mergiraf/mergiraf/releases/download/v{ version }/mergiraf_x86_64-unknown-linux-musl.tar.gz
30 ]
31 [
32 ouch
33 ouch
34 0.5.1
35 https://github.com/ouch-org/ouch/releases/download/{ version }/ouch-x86_64-pc-windows-msvc.zip
36 https://github.com/ouch-org/ouch/releases/download/{ version }/ouch-x86_64-unknown-linux-musl.tar.gz
37 ],
38 [
39 heatseaker
40 hs
41 1.7.2
42 https://github.com/rschmitt/heatseeker/releases/download/v{ version }/heatseeker-v{ version }-x86_64-pc-windows-msvc.zip
43 https://github.com/rschmitt/heatseeker/releases/download/v{ version }/heatseeker-v{ version }-x86_64-unknown-linux-musl.tar.gz
44 ],
45 [
46 ijq
47 ijq
48 1.1.2
49 https://git.sr.ht/~gpanders/ijq/refs/download/v{ version }/ijq-{ version }-windows-amd64.tar.gz
50 https://git.sr.ht/~gpanders/ijq/refs/download/v{ version }/ijq-{ version }-linux-amd64.tar.gz
51 ],
52 [
53 spoon
54 spoon
55 0.0.9
56 https://github.com/Bios-Marcel/spoon/releases/download/v{ version }/spoon.exe
57 null
58 ],
59 [
60 ttyper
61 ttyper
62 1.6.0
63 https://github.com/max-niederman/ttyper/releases/download/v{ version }/ttyper-x86_64-pc-windows-msvc.zip
64 https://github.com/max-niederman/ttyper/releases/download/v{ version }/ttyper-x86_64-unknown-linux-musl.tar.gz
65 ],
66 [
67 tree-sitter
68 tree-sitter
69 0.24.4
70 https://github.com/tree-sitter/tree-sitter/releases/download/v{ version }/tree-sitter-windows-x64.gz
71 https://github.com/tree-sitter/tree-sitter/releases/download/v{ version }/tree-sitter-linux-x64.gz
72 ],
73 [
74 win32yank
75 win32yank
76 0.1.1
77 https://github.com/equalsraf/win32yank/releases/download/v{ version }/win32yank-x64.zip
78 null
79 ],
80 [
81 Contextive.LanguageServer
82 Contextive.LanguageServer
83 1.17.0
84 https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-win-x64-{ version }.zip
85 https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-linux-x64-{ version }.zip
86 ],
87 [
88 zls
89 zls
90 0.14.0
91 https://builds.zigtools.org/zls-windows-x86_64-{ version }.zip
92 https://builds.zigtools.org/zls-linux-x86_64-{ version }.tar.xz
93 ]
94]
1[
2 [
3 name,
4 binary,
5 version,
6 "win32_url",
7 lnx_url
8 ];
9 [
10 "Contextive.LanguageServer",
11 "Contextive.LanguageServer",
12 "1.17.0",
13 "https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-win-x64-{ version }.zip",
14 "https://github.com/dev-cycles/contextive/releases/download/v{ version }/Contextive.LanguageServer-linux-x64-{ version }.zip"
15 ],
16 [
17 heatseaker,
18 hs,
19 "1.7.2",
20 "https://github.com/rschmitt/heatseeker/releases/download/v{ version }/heatseeker-v{ version }-x86_64-pc-windows-msvc.zip",
21 "https://github.com/rschmitt/heatseeker/releases/download/v{ version }/heatseeker-v{ version }-x86_64-unknown-linux-musl.tar.gz"
22 ],
23 [
24 lemminx,
25 lemminx,
26 "0.29.0",
27 "https://github.com/redhat-developer/vscode-xml/releases/download/{ version }/lemminx-win32.zip",
28 "https://github.com/redhat-developer/vscode-xml/releases/download/{ version }/lemminx-linux.zip"
29 ],
30 [
31 mergiraf,
32 mergiraf,
33 "0.8.1",
34 "https://codeberg.org/mergiraf/mergiraf/releases/download/v{ version }/mergiraf_x86_64-pc-windows-gnu.zip",
35 "https://codeberg.org/mergiraf/mergiraf/releases/download/v{ version }/mergiraf_x86_64-unknown-linux-musl.tar.gz"
36 ],
37 [
38 ouch,
39 ouch,
40 "0.5.1",
41 "https://github.com/ouch-org/ouch/releases/download/{ version }/ouch-x86_64-pc-windows-msvc.zip",
42 "https://github.com/ouch-org/ouch/releases/download/{ version }/ouch-x86_64-unknown-linux-musl.tar.gz"
43 ],
44 [
45 spoon,
46 spoon,
47 "0.0.9",
48 "https://github.com/Bios-Marcel/spoon/releases/download/v{ version }/spoon.exe",
49 null
50 ],
51 [
52 superhtml,
53 superhtml,
54 "0.5.3",
55 "https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-windows.zip",
56 "https://github.com/kristoff-it/superhtml/releases/download/v{ version }/x86_64-linux-musl.tar.gz"
57 ],
58 [
59 tree-sitter,
60 tree-sitter,
61 "0.24.4",
62 "https://github.com/tree-sitter/tree-sitter/releases/download/v{ version }/tree-sitter-windows-x64.gz",
63 "https://github.com/tree-sitter/tree-sitter/releases/download/v{ version }/tree-sitter-linux-x64.gz"
64 ],
65 [
66 ttyper,
67 ttyper,
68 "1.6.0",
69 "https://github.com/max-niederman/ttyper/releases/download/v{ version }/ttyper-x86_64-pc-windows-msvc.zip",
70 "https://github.com/max-niederman/ttyper/releases/download/v{ version }/ttyper-x86_64-unknown-linux-musl.tar.gz"
71 ],
72 [
73 "win32yank",
74 "win32yank",
75 "0.1.1",
76 "https://github.com/equalsraf/win32yank/releases/download/v{ version }/win32yank-x64.zip",
77 null
78 ],
79 [
80 ziggy,
81 ziggy,
82 "0.0.1",
83 "https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-windows.zip",
84 "https://github.com/kristoff-it/ziggy/releases/download/{ version }/x86_64-linux-musl.tar.xz"
85 ],
86 [
87 zls,
88 zls,
89 "0.14.0",
90 "https://github.com/zigtools/zls/releases/download/{ version }/zls-x86-windows.zip",
91 "https://github.com/zigtools/zls/releases/download/{ version }/zls-x86-linux.tar.xz"
92 ]
93]No final newline

tools/rbwsearch

Deleted
deleted file mode 100755

+0 / −32 text lines

1#!/bin/bash
2
3rbwsearch() {
4 SEARCH_ARGS=()
5 RBW_ARGS=()
6
7 while [[ $# -gt 0 ]]; do
8 case $1 in
9 -f|--field)
10 RBW_ARGS+=("$1" "$2")
11 shift
12 shift
13 ;;
14 -*)
15 RBW_ARGS+=("$1")
16 shift
17 ;;
18 *)
19 SEARCH_ARGS+=("$1")
20 shift
21 ;;
22 esac
23 done
24 rbw unlocked || rbw unlock || return
25 IFS=$'\t' read -r NAME FOLDER < <(rbw list --fields name,folder|sk -q "${SEARCH_ARGS[*]}")
26 if [ -n "$FOLDER" ]; then
27 RBW_ARGS+=("--folder" "$FOLDER")
28 fi
29 rbw get --clipboard "${RBW_ARGS[@]}" "$NAME"
30}
31
32rbwsearch $@

tools/wezterm_terminfo.sh

Deleted
deleted file mode 100755

+0 / −4 text lines

1tempfile=$(mktemp) \
2 && curl -o "$tempfile" https://raw.githubusercontent.com/wez/wezterm/main/termwiz/data/wezterm.terminfo \
3 && tic -x -o ~/.terminfo "$tempfile" \
4 && rm "$tempfile"

wezterm/bugabinga/nugu/palette_dark.lua

Modified

+1 / −1 text lines

11return
2{palette = {debug = "#ff00ff", error = "#ec1274", warning = "#fbcbbf", info = "#cfcefa", content = {normal = "#ededed", backdrop = "#121212", accent = "#e808e8", minor = "#686868", focus = "#7d9e9b", unfocus = "#284c4a", important_local = "#9b66f0", important_global = "#b086f3"}, ui = {normal = "#fefefe", backdrop = "#010101", accent = "#b63ab6", minor = "#565656", focus = "#738584", unfocus = "#1f3231", important_local = "#884de6", important_global = "#9c6cea"}}}No final newline
2{palette = {debug = "#ff00ff", error = "#ac5a77", warning = "#b4b1ae", info = "#b8b8b8", content = {normal = "#ededed", backdrop = "#121212", accent = "#812281", minor = "#8b8b8b", focus = "#7ba1aa", unfocus = "#406f79", important_local = "#948fa6", important_global = "#f3f3f5"}, ui = {normal = "#dbdbdb", backdrop = "#242424", accent = "#9d299d", minor = "#9d9d9d", focus = "#a4a4a4", unfocus = "#6e6e6e", important_local = "#a7a3b6", important_global = "#ffffff"}}}No final newline

wezterm/bugabinga/nugu/palette_light.lua

Modified

+1 / −1 text lines

11return
2{palette = {debug = "#ff00ff", error = "#f2529a", warning = "#f9aa96", info = "#a8a7f7", content = {normal = "#121212", backdrop = "#ededed", accent = "#e808e8", minor = "#5f5f5f", focus = "#248883", unfocus = "#aaaaaa", important_local = "#a382d5", important_global = "#9068cc"}, ui = {normal = "#010101", backdrop = "#fefefe", accent = "#b63ab6", minor = "#717171", focus = "#339d97", unfocus = "#bcbcbc", important_local = "#b8a1d9", important_global = "#a588cf"}}}No final newline
2{palette = {debug = "#ff00ff", error = "#804056", warning = "#928e8a", info = "#949494", content = {normal = "#121212", backdrop = "#ededed", accent = "#491349", minor = "#3b3b3b", focus = "#184e5b", unfocus = "#6f6f6f", important_local = "#4c4365", important_global = "#000000"}, ui = {normal = "#242424", backdrop = "#dbdbdb", accent = "#2d0c2d", minor = "#292929", focus = "#212c2e", unfocus = "#5d5d5d", important_local = "#3c3550", important_global = "#000000"}}}No final newline

wezterm/bugabinga/workspace_switcher.lua

Modified

+7 / −8 text lines

11--- stolen and adapted from https://github.com/MLFlexer/smart_workspace_switcher.wezterm/blob/main/plugin/init.lua
3local wezterm = require 'wezterm'
3local wezterm = require 'wezterm'
44local act = wezterm.action
55local mux = wezterm.mux
6262end
6464local function zoxide_chosen( window, pane, path, label_path )
65 local default_prog = window:effective_config().default_prog
6566 window:perform_action(
66 act.SwitchToWorkspace {
67 act.SwitchToWorkspace {
6768 name = label_path,
6869 spawn = {
70 args = default_prog,
6971 label = 'Workspace: ' .. label_path,
7072 cwd = path,
7173 },
72 } ,
74 },
7375 pane
7476 )
7577 -- increment zoxide path score
7981local function workspace_chosen( window, pane, workspace )
8082 window:perform_action(
81 act.SwitchToWorkspace {
83 act.SwitchToWorkspace {
8284 name = workspace,
83 } ,
85 },
8486 pane
8587 )
8688end
9799local function switch_workspace()
98100 return wezterm.action_callback( function ( window, pane )
99 wezterm.emit( 'smart_workspace_switcher.workspace_switcher.start', window, pane )
100101 local choices = get_choices()
102103 window:perform_action(
110111 -- path is choosen
111112 zoxide_chosen( inner_window, inner_pane, id, label )
112113 end
113 else
114 wezterm.emit( 'smart_workspace_switcher.workspace_switcher.canceled', window, pane )
115114 end
116115 end ),
117116 title = 'Choose Workspace',