repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

b2c5052237da9d52e3c7e5405d7d716c4eacd4ae

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (15)

COMMANDS.md

Modified
11 11 - btm (bottom): system overview
12 12 - mdcat: render markdown in the terminal
13 13 - menyoki: capture screenshots, record gifs
14 +- mdsh: markdown pre processor
14 15 - tldr: tool documentation
15 16 - grex: regular expression pattern generator
16 17 - xh: make HTTP requests

bottom/bottom.toml

Modified
73 73 #table_header_color="LightBlue"
75 75 # Represents the colour of the label each widget has.
76 -widget_title_color="Blue"
76 +widget_title_color = "Blue"
78 78 # Represents the average CPU color.
79 79 #avg_cpu_color="Red"
82 82 #cpu_core_colors=["LightMagenta", "LightYellow", "LightCyan", "LightGreen", "LightBlue", "LightRed", "Cyan", "Green", "Blue", "Red"]
84 84 # Represents the colour RAM will use in the memory legend and graph.
85 -ram_color="LightGreen"
85 +ram_color = "LightGreen"
87 87 # Represents the colour SWAP will use in the memory legend and graph.
88 88 #swap_color="LightYellow"
94 94 #tx_color="LightGreen"
96 96 # Represents the colour of the border of unselected widgets.
97 -border_color="Blue"
97 +border_color = "Blue"
99 99 # Represents the colour of the border of selected widgets.
100 100 #highlighted_border_color="LightBlue"
102 102 # Represents the colour of most text.
103 -text_color="Blue"
103 +text_color = "Blue"
105 105 # Represents the colour of text that is selected.
106 106 #selected_text_color="Black"
109 109 #selected_bg_color="LightBlue"
111 111 # Represents the colour of the lines and text of the graph.
112 -graph_color="Blue"
112 +graph_color = "Blue"
114 114 # Represents the colours of the battery based on charge
115 115 #battery_colors = ["red", "yellow", "yellow", "green", "green", "green"]
128 128 # The default widget layout:
129 129 [[row]]
130 - ratio=60
131 - [[row.child]]
132 - type="proc"
133 - default=true
130 +ratio = 60
131 +[[row.child]]
132 +type = "proc"
133 +default = true
134 134 [[row]]
135 - ratio=20
136 - [[row.child]]
137 - type="cpu"
135 +ratio = 20
136 +[[row.child]]
137 +type = "cpu"
138 138 [[row]]
139 - ratio=10
140 - [[row.child]]
141 - type="mem"
139 +ratio = 10
140 +[[row.child]]
141 +type = "mem"

cargo/config.toml

Modified
2 2 [build]
3 3 # enable a cache for crates between builds
4 4 rustc-wrapper = "sccache"
5 5 # since we only care for builds for our own machine, let's benefit from thise juicy modern cpu features
6 -rustflags = [ "-C","target-cpu=native" ]
6 +rustflags = ["-C", "target-cpu=native"]
8 8 # let's have some fun with "omgz performance rice dat cake"
9 9 # aaand we get out of memory errors when building nu...

helix/config.toml

Modified
1 1 theme = "nugu"
3 3 [editor]
4 -shell = [ "nu", "--commands" ]
4 +shell = ["nu", "--commands"]
5 5 true-color = true
6 6 mouse = true

helix/themes/nugu.toml

Modified
1 1 # SYNTAX THEME
3 -"string" = { fg = "accent", modifiers = [ "italic" ] }
3 +"string" = { fg = "accent", modifiers = ["italic"] }
4 4 "string.regexp" = { fg = "accent", bg = "minor_backdrop" }
5 5 "string.special" = { fg = "debug", bg = "minor_backdrop" }
6 -"comment" = { fg = "important_global", modifiers = [ "bold" ] }
6 +"comment" = { fg = "important_global", modifiers = ["bold"] }
7 7 "comment.block.documentation" = { fg = "minor", modifiers = ["dim"] }
8 8 "punctuation" = { fg = "minor" }
9 9 "keyword" = { fg = "minor" }
36 36 "ui.cursor.primary" = { fg = "important_global", bg = "ui_cursor" }
37 37 "ui.cursor.insert" = { bg = "debug" }
38 38 "ui.cursor.select" = { fg = "debug", bg = "debug" }
39 -"ui.cursor.match" = { fg = "important_global" , modifiers = ["slow_blink"] }
39 +"ui.cursor.match" = { fg = "important_global", modifiers = ["slow_blink"] }
41 41 "ui.selection" = { fg = "minor", bg = "ui_minor" }
42 42 "ui.selection.primary" = { fg = "normal", bg = "ui_selection" }
103 103 ui_fg_debug = "#ffffff"
104 104 ui_bg_debug = "#000000"
106 -debug = "#FF2EDD"
106 +debug = "#FF2EDD"

indexa/config.linux.toml

Modified
33 33 # File/directory statuses to index.
34 34 # basename, path and extension are implicitly specified.
35 35 index = [
36 - # "size",
37 - # "mode",
38 - # "created",
39 - # "modified",
40 - # "accessed",
36 + # "size",
37 + # "mode",
38 + # "created",
39 + # "modified",
40 + # "accessed",
43 43 # File/directory statuses to enable fast sorting for.
44 44 # basename is implicitly specified.
45 45 fast_sort = [
46 - # "path",
47 - # "extension",
48 - # "size",
49 - # "mode",
50 - # "created",
51 - # "modified",
52 - # "accessed",
46 + # "path",
47 + # "extension",
48 + # "size",
49 + # "mode",
50 + # "created",
51 + # "modified",
52 + # "accessed",
55 55 # Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.
56 -dirs = [
57 - "/"
58 - ]
56 +dirs = ["/"]
60 58 # Whether to ignore hidden files/directories.
61 59 ignore_hidden = false

indexa/config.windows.toml

Modified
30 30 # File/directory statuses to index.
31 31 # basename, path and extension are implicitly specified.
32 32 index = [
33 - # "size",
34 - # "mode",
35 - # "created",
36 - # "modified",
37 - # "accessed",
33 + # "size",
34 + # "mode",
35 + # "created",
36 + # "modified",
37 + # "accessed",
40 40 # File/directory statuses to enable fast sorting for.
41 41 # basename is implicitly specified.
42 42 fast_sort = [
43 - # "path",
44 - # "extension",
45 - # "size",
46 - # "mode",
47 - # "created",
48 - # "modified",
49 - # "accessed",
43 + # "path",
44 + # "extension",
45 + # "size",
46 + # "mode",
47 + # "created",
48 + # "modified",
49 + # "accessed",
52 52 # Root directories to index. Defaults to / on Unix and %HOMEDRIVE%\ (usually C:\) on Windows.
53 -dirs = [
54 - "C:\\"
55 - ]
53 +dirs = ["C:\\"]
57 55 # Whether to ignore hidden files/directories.
58 56 ignore_hidden = false

justfile

Added
new file mode 100644
1 +set shell := ["nu", "--commands"]
3 +default:
4 + @just --list
6 +# validate config files
7 +lint:
8 + # Lua files
9 + selene .
10 + # toml files
11 + taplo lint
12 + # shell files
13 + # nushell files
14 + # java files
15 + javac -Werror -Xlint:all bootstripper.java
16 + rm bootstripper.class
17 + # json files
18 + # markdown files
19 + # links
20 + lychee .
22 +# format config files
23 +fmt:
24 + # Justfiles
25 + just --fmt --unstable
26 + # lua
27 + stylua --verify .
28 + # shell files
29 + # toml files
30 + taplo fmt
31 + # java files ?
32 + # nushell files ?
33 + # markdown files
35 +# link dorkfiles into HOME
36 +link:
37 + java bootstripper.java

nushell/modules/aliases.nu

Modified
15 15 export alias download = java (build-string $env.DOTFILES /tools/ download.java)
16 16 export alias download_jar = java (build-string $env.DOTFILES /tools/ download_jar.java)
18 -# git
19 -export alias ghead = git rev-parse HEAD
21 18 # systemd
22 19 export alias userctl = systemctl --user

nushell/modules/git.nu

Modified
51 51 git log --pretty=%h»¦«%s»¦«%aN»¦«%aE»¦«%aD -n 25 $rest | lines | split column "»¦«" commit subject name email date | update date { get date | into datetime} | sort-by date
54 +# Show the effective configuration of git
55 +export def git-effective-config [] {
56 + git config --list --show-origin
59 +export alias ghead = git rev-parse HEAD

stackoverflow/so/config/colors.toml

Modified
19 19 # If the terminal doesn't support custom color (like the linux TTY),
20 20 # non-base colors will be skipped.
21 -shadow = []
22 -view = "default"
21 +shadow = []
22 +view = "default"
24 24 # An array with a single value has the same effect as a simple value.
25 -primary = ["default"]
26 -secondary = "cyan" # secondary style is used for code hightlighting
27 -tertiary = "green"
25 +primary = ["default"]
26 +secondary = "cyan" # secondary style is used for code hightlighting
27 +tertiary = "green"
29 29 # Hex values can use lower or uppercase.
30 30 # (base color MUST be lowercase)
31 31 # If the value is an array, the first valid
32 32 # and supported color will be used.
33 -title_primary = ["BLUE", "red"] # `BLUE` will be skipped.
33 +title_primary = ["BLUE", "red"] # `BLUE` will be skipped.
34 34 title_secondary = "yellow"
36 36 # Lower precision values can use only 3 digits.
37 -highlight = "yellow"
37 +highlight = "yellow"
38 38 highlight_inactive = "light yellow"
39 39 # Note: you may want to change hightlight_text for darker terminal themes.
40 -highlight_text = "black" # or "default"
40 +highlight_text = "black" # or "default"

tools/cargo-tools.nu

Modified
2 2 # names of binaries in cargo must not necessarily be equal to the crate name.
3 3 # this table resolves the binary name of a crate.
4 4 # also, a crate can have more than one binary, but for the purpose of checking if a crate is
5 5 # already installed on the system, finding one binary is sufficient.
6 -# we also cannot use `cargo install --list` to search for the binary name, in case the crate
6 +# we also cannot use `cargo install --list` to search for the binary name, in case the crate
7 7 # is not installed yet
8 8 let cargo_crates = [
9 9 [name bin features];
32 32 ["xh" "xh" []]
33 33 ["comrak" "comrak" []]
34 34 # ["bandwhich" "bandwhich" []] masked until https://github.com/imsnif/bandwhich/issues/233
35 - ["linky" "linky" []]
35 + ["lychee" "lychee" []]
36 36 ["viu" "viu" []]
37 37 ["licensor" "licensor" []]
38 38 ["gib" "gib" []]
39 39 ["silicon" "silicon" []]
40 40 ["bottom" "btm" []]
41 41 ["sic" "sic" []]
42 + ["just" "just" []]
43 + ["mdsh" "mdsh" []]
44 + ["git-delta" "delta" []]
45 + ["selene" "selene" ["--no-default-features"]]
46 + ["stylua" "stylua" ["--features=lua52"]]
47 + ["taplo-cli" "taplo" []]
44 50 def so-features [] {
79 85 # crates, that are not even on crates.io are not likely to be packeged anywhere else.
80 86 # so we skip the check if the binary is already in path
81 - $cargo_git_crates | each { |crate|
87 + $cargo_git_crates | each { |crate|
82 88 cargo install --locked --git $crate
84 90 install-helix-editor

topgrade/topgrade.linux.toml

Modified
47 47 "01 - Install Cargo Tools" = "nu ~/Workspace/dotfiles/tools/cargo-tools.nu"
49 49 # Dateisystem-Indexer ix erfrischen
50 -<<<<<<< HEAD
51 50 "02 - Indexa Update" = "ix --update"
53 -=======
54 -"03 - Indexa Update" = "ix --update"
55 ->>>>>>> 6e776c53721196aa1f34d22b8f6dfe2185b26bac

topgrade/topgrade.windows.toml

Modified
28 28 max_concurrency = 12
30 -pull_predefined= false
30 +pull_predefined = false
32 32 # Arguments to pass Git when pulling Repositories
33 33 arguments = "--ff --rebase --autostash"
52 52 "04 - Indexa Update" = "ix --update"
54 54 # Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren
55 -"05 - TLDR" = "tldr --update"
55 +"05 - TLDR" = "tldr --update"

wezterm/wezterm.lua

Modified
1 -local wez = require'wezterm'
1 +local wez = require("wezterm")
3 3 local hostname = wez.hostname()
4 4 local enable_wayland = false
5 -local window_decorations = 'RESIZE'
6 -local color_scheme = 'nugu' -- not there yet ;)
5 +local window_decorations = "RESIZE"
6 +local color_scheme = "nugu-dark" -- not there yet ;)
7 +local color_schemes = {
8 + ["nugu-dark"] = {
9 + -- The default text color
10 + foreground = "#c9c9c9",
11 + -- The default background color
12 + background = "#131313",
14 + -- Overrides the cell background color when the current cell is occupied by the
15 + -- cursor and the cursor style is set to Block
16 + cursor_bg = "#56968C",
17 + -- Overrides the text color when the current cell is occupied by the cursor
18 + cursor_fg = "#f0f0f0",
19 + -- Specifies the border color of the cursor when the cursor style is set to Block,
20 + -- or the color of the vertical or horizontal bar when the cursor style is set to
21 + -- Bar or Underline.
22 + cursor_border = "#52ad70",
24 + -- the foreground color of selected text
25 + selection_fg = "#ffffff",
26 + -- the background color of selected text
27 + selection_bg = "#287F70",
29 + -- The color of the scrollbar "thumb"; the portion that represents the current viewport
30 + scrollbar_thumb = "#56968C",
32 + -- The color of the split lines between panes
33 + split = "#31ae99",
35 + ansi = { "#18574C", "#A21300", "#31ae99", "#A2A213", "#818181", "#13A2A2", "#8BABA5", "#f0f0f0" },
36 + brights = { "#8BABA5", "#A21300", "#aefeff", "#A2A213", "#13A2A2", "#992FAE", "#2F77AE", "#ffffff" },
38 + -- Since: 20220319-142410-0fcdea07
39 + -- When the IME, a dead key or a leader key are being processed and are effectively
40 + -- holding input pending the result of input composition, change the cursor
41 + -- to this color to give a visual cue about the compose state.
42 + compose_cursor = "#2F77AE",
43 + },
7 45 local font_size = 12.0
46 +local font = wez.font("BlexMono Nerd Font", { weight = "Medium" })
9 48 if hostname == "x230" then
10 - enable_wayland = true
11 - window_decorations = 'NONE'
12 - font_size = 11.0
49 + enable_wayland = true
50 + window_decorations = "NONE"
51 + font_size = 11.0
13 52 elseif hostname == "pop-os" then
14 - color_scheme = 'Ubuntu'
15 - font_size = 13.0
53 + color_scheme = "Ubuntu"
54 + font_size = 13.0
55 +elseif hostname == "PC-00625" then
56 + window_decorations = "TITLE|RESIZE"
57 + font_size = 11.0
58 + font = wez.font("CaskaydiaCove NF")
18 61 return {
19 - font = wez.font('BlexMono Nerd Font', { weight = "Medium" }),
20 - font_size = font_size,
21 - color_scheme = color_scheme,
22 - -- first step into nugu territory
23 - color_schemes = { nugu = { background = "#131313", } },
24 - default_prog = { 'nu' },
25 - window_decorations = window_decorations,
26 - enable_tab_bar = true,
27 - hide_tab_bar_if_only_one_tab = true,
28 - check_for_updates = false,
29 - show_update_window = false,
30 - tab_max_width = 24,
31 - enable_wayland = enable_wayland,
32 - window_padding = {
33 - left = 12,
34 - right = 8,
35 - top = 12,
36 - bottom = 8,
37 - }
38 -}
62 + font = font,
63 + font_size = font_size,
64 + color_scheme = color_scheme,
65 + color_schemes = color_schemes,
66 + default_prog = { "nu" },
67 + window_decorations = window_decorations,
68 + enable_tab_bar = true,
69 + hide_tab_bar_if_only_one_tab = true,
70 + check_for_updates = false,
71 + show_update_window = false,
72 + tab_max_width = 24,
73 + enable_wayland = enable_wayland,
74 + window_padding = {
75 + left = 12,
76 + right = 8,
77 + top = 12,
78 + bottom = 8,
79 + },