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)

+205 / −129 text lines

Diff layout

.gitignore

Modified

+2 / −0 text lines

33nushell/zoxide.nu
44nushell/history.txt
5nushell/history.sqlite3*
56nushell/plugin.nu
7nushell/aliases.nu
79neovim/profile.log
810neovim/plugin

NB-00718.symlinks

Modified

+3 / −0 text lines

6464bat/config
6565~/AppData/Roaming/bat/config
66
67keyb/keyb.yml
68~/AppData/Roaming/keyb/keyb.yml

keyb/keyb.yml

Added
new file mode 100644

+65 / −0 text lines

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

+1 / −1 text lines

7575 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
7676 "which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" },
7777 "zen-mode.nvim": { "branch": "main", "commit": "a31cf7113db34646ca320f8c2df22cf1fbfc6f2a" }
78}No final newline
78}

nushell/gen-aliases.nu

Modified

+2 / −1 text lines

1717# Start defining your aliases here
1919aka cat bat
20aka list eza '--long' '--git'
2021aka show bat
2122aka tar bsdtar
2223aka walk yazi
2324aka tree tre
24aka ll list
2626aka browse firefox
3030aka edit nvim '--clean'
3131aka ed nvim '--clean'
3232aka vi nvim '--clean'
33aka bb bartib
3435# TODO write bak command
3536# aka backup bak

subversion/diff.bat

Modified

+2 / −2 text lines

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

subversion/diff3.bat

Modified

+2 / −2 text lines

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

subversion/merge.bat

Modified

+2 / −2 text lines

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

tools/download.java

Modified

+73 / −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.*;
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 }
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}
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/install.java

Modified

+8 / −3 text lines

77import java.util.Arrays;
99final class install {
10 // TODO: platform key in die csv, um os zu unterscheiden.
1011 static final String CARGO_PACKAGES_CSV_FILE = "tools.csv";
1213 public static void main(String[] __)
2223 for (int index = 1; index < lines.length; ++index) {
2324 var line = lines[index];
2425 var spec = parse(line);
25 if (!which(spec.bin)) {
26 if (spec != null && !which(spec.bin)) {
2627 install(spec);
2728 }
2829 }
5152 }
5354 static void exec(String... command)
54 throws Exception {
55 throws Throwable {
5556 var proc = new ProcessBuilder(command).inheritIO().start();
5657 proc.waitFor();
5758 var exit = proc.exitValue();
5859 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)));
6061 }
6162 }
8384 static Spec parse(String line)
8485 throws Throwable {
86 if (line.startsWith("#"))
87 {
88 return null;
89 }
8590 var by_comma = line.split(";");
8691 if (by_comma.length == 0) {
8792 throw fail("empty line in CSV");

tools/invaders.sh

Modified

+38 / −38 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'
18cat << 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#
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
3939EOFNo final newline

tools/tools.csv

Modified

+6 / −6 text lines

99choose
1010du-dust; dust
1111eva
12exa
12eza; eza; --features vendored-openssl,vendored-libgit2
1313fend
1414fd-find;fd
1515git-delta;delta
2323just
2424lemmeknow
2525lms
26lurk-cli; lurk
26# needs a platform key
27#lurk-cli; lurk
2728lychee;lychee; --locked --no-default-features --features rustls-tls,email-check
2829mask
2930macchina
3132mdcat
3233mdsh
3334monolith
34netscanner
35# netscanner
3536nu;nu; --locked
3637ouch
3738pastel
3940ripgrep;rg
4041rust-parallel
4142sd
42sniffnet
43# sniffnet
4344selene;selene; --no-default-features
4445starship
4546stylua;stylua; --features lua52
4647taplo-cli;taplo
4748tealdeer;tldr
4849tokei
49ugdb
50unf
50# ugdb
5151viu
5252vivid
5353yazi-cli;ya; --locked

topgrade/topgrade.windows.toml

Modified

+1 / −1 text lines

4343[commands]
4444"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"
4646"30 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
4747"31 - MeMate" = "nu X:/update_memate.nu"
4848"40 - TLDR" = "tldr --update"