repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

3d32b5c9292444634f54bf1eab3bf11307ef3990

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (13)

.gitignore

Modified
2 2 tresor/box_do_key
4 4 nushell/zoxide.nu
5 5 nushell/history.txt
6 +nushell/history.sqlite3*
6 7 nushell/plugin.nu
8 +nushell/aliases.nu
8 10 neovim/profile.log
9 11 neovim/plugin

NB-00718.symlinks

Modified
64 64 bat/config
65 65 ~/AppData/Roaming/bat/config
67 +keyb/keyb.yml
68 +~/AppData/Roaming/keyb/keyb.yml

keyb/keyb.yml

Added
new file mode 100644
1 +- name: e-yooso z-11
2 + keybinds:
3 + - name: F1
4 + key: Fn + 1
5 + - name: F2
6 + key: Fn + 2
7 + - name: F3
8 + key: Fn + 3
9 + - name: F4
10 + key: Fn + 4
11 + - name: F5
12 + key: Fn + 5
13 + - name: F6
14 + key: Fn + 6
15 + - name: F7
16 + key: Fn + 7
17 + - name: F8
18 + key: Fn + 8
19 + - name: F9
20 + key: Fn + 9
21 + - name: F10
22 + key: Fn + 0
23 + - name: F11
24 + key: Fn + -
25 + - name: F12
26 + key: Fn + +
28 + - name: left
29 + key: Fn + A
30 + - name: up
31 + key: Fn + W
32 + - name: down
33 + key: Fn + S
34 + - name: right
35 + key: Fn + D
37 + - name: PrintScreen
38 + key: Fn + P
39 + - name: Home
40 + key: Fn + [
41 + - name: End
42 + key: Fn + ]
43 + - name: PageUp
44 + key: Fn + ;
45 + - name: PageDown
46 + key: Fn + '
47 + - name: Insert
48 + key: Fn + .
49 + - name: Delete
50 + key: Fn + /
52 +- name: us intl
53 + keybinds:
54 + - name: ä (ae umlaut)
55 + key: Alt Gr + Q
56 + - name: ö (oe umlaut)
57 + key: Alt Gr + P
58 + - name: ü (ue umlaut)
59 + key: Alt Gr + Y
60 + - name: ß (ss)
61 + key: Alt Gr + S
62 + - name: ß (ss)
63 + key: Alt Gr + S
64 + - name: € (euro)
65 + key: Alt Gr + 5

neovim/lazy-lock.json

Modified
75 75 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
76 76 "which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" },
77 77 "zen-mode.nvim": { "branch": "main", "commit": "a31cf7113db34646ca320f8c2df22cf1fbfc6f2a" }
78 -}

nushell/gen-aliases.nu

Modified
17 17 # Start defining your aliases here
19 19 aka cat bat
20 +aka list eza '--long' '--git'
20 21 aka show bat
21 22 aka tar bsdtar
22 23 aka walk yazi
23 24 aka tree tre
24 -aka ll list
26 26 aka browse firefox
30 30 aka edit nvim '--clean'
31 31 aka ed nvim '--clean'
32 32 aka vi nvim '--clean'
33 +aka bb bartib
34 35 # TODO write bak command
35 36 # aka backup bak

subversion/diff.bat

Modified
1 -@echo off
2 -java --source 17 %~dp0/diff %*
1 +@echo off
2 +java --source 17 %~dp0/diff %*

subversion/diff3.bat

Modified
1 -@echo off
2 -java --source 17 %~dp0/diff3 %*
1 +@echo off
2 +java --source 17 %~dp0/diff3 %*

subversion/merge.bat

Modified
1 -@echo off
2 -java --source 17 %~dp0/merge %*
1 +@echo off
2 +java --source 17 %~dp0/merge %*

tools/download.java

Modified
1 -import static java.lang.System.*;
3 -import java.net.*;
4 -import java.net.http.*;
5 -import java.net.http.HttpClient.*;
6 -import java.net.http.HttpResponse.*;
7 -import java.nio.file.*;
8 -import java.util.*;
9 -import java.util.regex.*;
11 -class 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 - }
33 - static String guess_file_name(String name) {
34 - return name.replaceAll("\\w+:\\/\\/", "").replaceAll("\\/", "_");
35 - }
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 - }
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 - }
52 - static void exit() {
53 - out.printf("%s!%n", emphasize_local("Done"));
54 - System.exit(0);
55 - }
57 - static String emphasize_global(String message) {
58 - return "\033[4m" + message + "\033[0m";
59 - }
61 - static String emphasize_local(String message) {
62 - return "\033[3m" + message + "\033[0m";
63 - }
65 - static void fail(String message, Object... arguments) {
66 - out.printf(message, arguments);
67 - System.exit(-1);
68 - }
70 - static void fail() {
71 - System.exit(-1);
72 - }
73 -}
1 +import static java.lang.System.*;
3 +import java.net.*;
4 +import java.net.http.*;
5 +import java.net.http.HttpClient.*;
6 +import java.net.http.HttpResponse.*;
7 +import java.nio.file.*;
8 +import java.util.*;
9 +import java.util.regex.*;
11 +class 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 + }
33 + static String guess_file_name(String name) {
34 + return name.replaceAll("\\w+:\\/\\/", "").replaceAll("\\/", "_");
35 + }
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 + }
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 + }
52 + static void exit() {
53 + out.printf("%s!%n", emphasize_local("Done"));
54 + System.exit(0);
55 + }
57 + static String emphasize_global(String message) {
58 + return "\033[4m" + message + "\033[0m";
59 + }
61 + static String emphasize_local(String message) {
62 + return "\033[3m" + message + "\033[0m";
63 + }
65 + static void fail(String message, Object... arguments) {
66 + out.printf(message, arguments);
67 + System.exit(-1);
68 + }
70 + static void fail() {
71 + System.exit(-1);
72 + }

tools/install.java

Modified
7 7 import java.util.Arrays;
9 9 final class install {
10 + // TODO: platform key in die csv, um os zu unterscheiden.
10 11 static final String CARGO_PACKAGES_CSV_FILE = "tools.csv";
12 13 public static void main(String[] __)
22 23 for (int index = 1; index < lines.length; ++index) {
23 24 var line = lines[index];
24 25 var spec = parse(line);
25 - if (!which(spec.bin)) {
26 + if (spec != null && !which(spec.bin)) {
26 27 install(spec);
53 54 static void exec(String... command)
54 - throws Exception {
55 + throws Throwable {
55 56 var proc = new ProcessBuilder(command).inheritIO().start();
56 57 proc.waitFor();
57 58 var exit = proc.exitValue();
58 59 if (exit != 0) {
59 - dbg("process failed to exec with code %d.%nproc: %s", exit, emphasize_local(Arrays.toString(command)));
60 + throw fail("process failed to exec with code %d.%nproc: %s", exit, emphasize_local(Arrays.toString(command)));
83 84 static Spec parse(String line)
84 85 throws Throwable {
86 + if (line.startsWith("#"))
87 + {
88 + return null;
89 + }
85 90 var by_comma = line.split(";");
86 91 if (by_comma.length == 0) {
87 92 throw fail("empty line in CSV");

tools/invaders.sh

Modified
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 -#
9 -f=3 b=4
10 -for j in f b; do
11 - for i in {0..7}; do
12 - printf -v $j$i %b "\e[${!j}${i}m"
13 - done
14 -done
15 -bld=$'\e[1m'
16 -rst=$'\e[0m'
18 -cat << EOF
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
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
31 - $f7▌$rst
33 - $f7▌$rst
35 - $f7 ▄█▄ $rst
36 - $f7▄█████████▄$rst
37 - $f7▀▀▀▀▀▀▀▀▀▀▀$rst
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 +#
9 +f=3 b=4
10 +for j in f b; do
11 + for i in {0..7}; do
12 + printf -v $j$i %b "\e[${!j}${i}m"
13 + done
14 +done
15 +bld=$'\e[1m'
16 +rst=$'\e[0m'
18 +cat << EOF
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
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
31 + $f7▌$rst
33 + $f7▌$rst
35 + $f7 ▄█▄ $rst
36 + $f7▄█████████▄$rst
37 + $f7▀▀▀▀▀▀▀▀▀▀▀$rst

tools/tools.csv

Modified
9 9 choose
10 10 du-dust; dust
12 -exa
12 +eza; eza; --features vendored-openssl,vendored-libgit2
13 13 fend
14 14 fd-find;fd
15 15 git-delta;delta
23 23 just
24 24 lemmeknow
26 -lurk-cli; lurk
26 +# needs a platform key
27 +#lurk-cli; lurk
27 28 lychee;lychee; --locked --no-default-features --features rustls-tls,email-check
28 29 mask
29 30 macchina
31 32 mdcat
32 33 mdsh
33 34 monolith
34 -netscanner
35 +# netscanner
35 36 nu;nu; --locked
36 37 ouch
37 38 pastel
39 40 ripgrep;rg
40 41 rust-parallel
42 -sniffnet
43 +# sniffnet
43 44 selene;selene; --no-default-features
44 45 starship
45 46 stylua;stylua; --features lua52
46 47 taplo-cli;taplo
47 48 tealdeer;tldr
48 49 tokei
49 -ugdb
50 -unf
50 +# ugdb
52 52 vivid
53 53 yazi-cli;ya; --locked

topgrade/topgrade.windows.toml

Modified
43 43 [commands]
44 44 "10 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles"
45 -"20 - Install Cargo Tools" = "cd ~/Workspaces/dotfiles/tools ; java ~/Workspaces/dotfiles/tools/install.java"
45 +"20 - Install Cargo Tools" = "cd W:/dotfiles/tools ; java install.java"
46 46 "30 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
47 47 "31 - MeMate" = "nu X:/update_memate.nu"
48 48 "40 - TLDR" = "tldr --update"