repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

topgrade fixeru

ead436aa12b32db57a66890e3c52c94e51a07764

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (7)

neovim/lazy-lock.json

Modified
21 21 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
22 22 "nvim-lint": { "branch": "master", "commit": "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" },
23 23 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
24 - "nvim-rulebook": { "branch": "main", "commit": "252de87c32d6367b44810b7a7b44daf49b963844" },
24 + "nvim-rulebook": { "branch": "main", "commit": "1ef4ea61ebbb4d4b77417870c1247005b12af09d" },
25 25 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
26 - "nvim-treesitter": { "branch": "master", "commit": "28591731d84c2fc18ddda60e1d53da24c31c4987" },
26 + "nvim-treesitter": { "branch": "master", "commit": "8d4fdc5e47e2a4e00179e43f56221250ce365973" },
27 27 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
28 28 "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
29 29 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },

neovim/spell/nerd.utf-8.add

Modified
125 125 stylix
126 126 nixvim
127 127 Krylow
128 +Entwicklerfrühstück
129 +Prozess
130 +NixOs
131 +thymeleaf
132 +htmx
133 +Präsi
134 +Produktlandschaft
136 +Log4J2

neovim/spell/nerd.utf-8.add.spl

Modified

Previous version contains binary or non-UTF-8 data.

Current version contains binary or non-UTF-8 data.

nushell/scripts/notes.nu

Modified
1 -### bugabingas custom note taking and organizing system
2 -###
3 -### notes are grouped into contexts (folders), so that i can distinguish between
4 -### personal and work related notes.
6 -#TODO: subbcommands:
7 -# - search
8 -# - graph
10 -def validate_context [
11 - context: string
12 -] {
13 - if not ($env.NOTES | path exists) {
14 - error make {
15 - msg: "No notes folder found in environment variables.
16 - Make sure a NOTES variable exists in $env."
17 - }
18 - }
19 - if not ($env.NOTES | path join $context | path exists) {
20 -error make {
21 - msg: $"The given context ($context) does not exist in ($env.NOTES).
22 - Create it and try again."
23 - }
24 - }
27 - export def main [
28 - --context: string = "bugabinga" # which context do the notes belong to
29 -] {
30 - # TODO: the context needs to get overridden by env var, so that switch between work and personal is easy
32 - validate_context $context
34 - ls --short-names ($env.NOTES | path join $context)
35 - # TODO: print some high level view of the notes. tree, graph, text ?
38 -def new_note_id [] { random binary 3 | encode base64 --nopad --url }
40 -def new_note [
41 - title: string # title of note. will be used for title and initial heading
42 - author: string # author, usually me...
43 - date: string # creation date of note
44 - tags: list<string> # a list of tags, if already known
45 - context: string # note context
46 -] {
47 - $"---
48 -title: ($title)
49 -author: ($author)
50 -date: ($date)
51 -tags:
52 -- ($context)
53 -($tags | each { '- ' + $in } | str join (char nl))
54 ----
59 -def edit [ ...rest ] {
60 - mut editor = if ( $env.EDITOR == null ) { 'vi' } else { $env.EDITOR }
61 - $editor = if ( $env.VISUAL == null ) { $editor } else { $env.VISUAL }
62 - run-external $editor ...$rest
65 -def notes_directory [
66 - context: string # which context do the notes belong to
67 -] {
68 - $env.NOTES | path join $context
71 -export def new [
72 - title?: string # title of new node
73 - --tags: list<string> # some optional tags for the note
74 - --context: string = "bugabinga" # which context do the notes belong to
75 -] {
76 - validate_context $context
78 - let title = if ($title | is-empty) { input "gimme title: " } else { $title }
79 - let author = 'Oliver Jan Krylow'
80 - let now = date now | date to-record
81 - let date = $"($now.day)/($now.month)/($now.year)" # german dates. what can i say...
82 - let tags = if ($tags == null) { [] } else { $tags }
84 - let note_content = new_note $title $author $date $tags $context
85 - let note_file_name = $"(new_note_id)-($title | str kebab-case).md"
86 - let note_file = [ (notes_directory $context) $note_file_name] | path join
88 - if ($note_file | path exists) {
89 - error make {
90 - msg: "the note you are trying to create exists already"
91 - }
92 - }
93 - $note_content | save --raw $note_file
94 - edit $note_file
97 -export def open [
98 - query: string = "" # intial search term
99 - --context: string = "bugabinga" # which context do the notes belong to
100 -] {
101 - let note = ls --short-names --threads ( notes_directory $context) |
102 - sort-by --reverse modified |
103 - get name |
104 - to text |
105 - ^sk --query $query --bind $"f1:execute\(inlyne (notes_directory $context)/{}\)" --preview $"mdcat (notes_directory $context)/{}" --header "F1: GUI Preview"
107 - edit ( notes_directory $context | path join $note)
1 +### bugabingas custom note taking and organizing system
2 +###
3 +### notes are grouped into contexts (folders), so that i can distinguish between
4 +### personal and work related notes.
6 +#TODO: subbcommands:
7 +# - search
8 +# - graph
10 +def validate_context [
11 + context: string
12 +] {
13 + if not ($env.NOTES | path exists) {
14 + error make {
15 + msg: "No notes folder found in environment variables.
16 + Make sure a NOTES variable exists in $env."
17 + }
18 + }
19 + if not ($env.NOTES | path join $context | path exists) {
20 +error make {
21 + msg: $"The given context ($context) does not exist in ($env.NOTES).
22 + Create it and try again."
23 + }
24 + }
27 + export def main [
28 + --context: string = "bugabinga" # which context do the notes belong to
29 +] {
30 + # TODO: autocomplete function for context parameter
31 + # TODO: the context needs to get overridden by env var, so that switch between work and personal is easy
33 + validate_context $context
35 + ls --short-names ($env.NOTES | path join $context)
36 + # TODO: print some high level view of the notes. tree, graph, text ?
39 +def new_note_id [] { random binary 3 | encode base64 --nopad --url }
41 +def new_note [
42 + title: string # title of note. will be used for title and initial heading
43 + author: string # author, usually me...
44 + date: string # creation date of note
45 + tags: list<string> # a list of tags, if already known
46 + context: string # note context
47 +] {
48 + $"---
49 +title: ($title)
50 +author: ($author)
51 +date: ($date)
52 +tags:
53 +- ($context)
54 +($tags | each { '- ' + $in } | str join (char nl))
55 +---
60 +def edit [ ...rest ] {
61 + mut editor = if ( $env.EDITOR == null ) { 'vi' } else { $env.EDITOR }
62 + $editor = if ( $env.VISUAL == null ) { $editor } else { $env.VISUAL }
63 + run-external $editor ...$rest
66 +def notes_directory [
67 + context: string # which context do the notes belong to
68 +] {
69 + $env.NOTES | path join $context
72 +export def new [
73 + title?: string # title of new node
74 + --tags: list<string> # some optional tags for the note
75 + --context: string = "bugabinga" # which context do the notes belong to
76 +] {
77 + validate_context $context
79 + let title = if ($title | is-empty) { input "gimme title: " } else { $title }
80 + let author = 'Oliver Jan Krylow'
81 + let now = date now | date to-record
82 + let date = $"($now.day)/($now.month)/($now.year)" # german dates. what can i say...
83 + let tags = if ($tags == null) { [] } else { $tags }
85 + let note_content = new_note $title $author $date $tags $context
86 + let note_file_name = $"(new_note_id)-($title | str kebab-case).md"
87 + let note_file = [ (notes_directory $context) $note_file_name] | path join
89 + if ($note_file | path exists) {
90 + error make {
91 + msg: "the note you are trying to create exists already"
92 + }
93 + }
94 + $note_content | save --raw $note_file
95 + edit $note_file
98 +export def open [
99 + query: string = "" # intial search term
100 + --context: string = "bugabinga" # which context do the notes belong to
101 +] {
102 + let note = ls --short-names --threads ( notes_directory $context) |
103 + sort-by --reverse modified |
104 + get name |
105 + to text |
106 + ^sk --query $query --bind $"f1:execute\(inlyne (notes_directory $context)/{}\)" --preview $"mdcat (notes_directory $context)/{}" --header "F1: GUI Preview"
108 + edit ( notes_directory $context | path join $note)

nushell/scripts/sy.nu

Modified
45 45 run-external git ...$git_pull_notes
46 46 # print git $git_pull_dotfiles
47 47 run-external git ...$git_pull_dotfiles
48 - # print topgrade
49 - run-external topgrade
48 + if (not $env.WIN32) {
49 + # print topgrade
50 + run-external topgrade
51 + }
52 54 def all-exist [] { all { which $in | is-not-empty } }

topgrade/win32.toml

Modified
1 1 [misc]
2 -sudo_command = "gsudo"
4 3 [pre_commands]
5 -"Enable Script Execution" = 'gsudo powershell -Command "Set-ExecutionPolicy RemoteSigned"'
6 -"Enable Developer Mode" = 'gsudo powershell -File "X:\Enable Developer Mode.ps1"'
7 -"Setup Drives" = 'gsudo cmd /k "X:\Setup Drives.reg"'
8 -"Disable Caps Lock" = 'gsudo cmd /k "X:\Disable Caps Lock.reg"'
9 -"Register CMD Aliases" = 'gsudo cmd /k "X:\Register CMD Aliases.reg"'
10 -"Enable Long Paths" = 'gsudo cmd /k "X:\Enable Long Paths.reg"'
11 -"Winget Export" = 'winget export --source winget --nowarn --output X:\winget_installed_apps.json'
4 +"01 Enable Script Execution" = 'powershell -Command "Set-ExecutionPolicy RemoteSigned"'
5 +"02 Enable Developer Mode" = 'powershell -File "X:\Enable Developer Mode.ps1"'
6 +"03 Setup Drives" = 'reg import "X:\Setup Drives.reg"'
7 +"04 Disable Caps Lock" = 'reg import "X:\Disable Caps Lock.reg"'
8 +"05 Register CMD Aliases" = 'reg import "X:\Register CMD Aliases.reg"'
9 +"06 Enable Long Paths" = 'reg import "X:\Enable Long Paths.reg"'
10 +"07 Winget Export" = 'winget export --source winget --nowarn --output X:\winget_installed_apps.json'
13 12 [post_commands]

wezterm/bugabinga/code_fonts.csv

Modified
60 60 0,Meslo LG M DZ
61 61 1,Metrickal
62 62 1,Monaspace Argon Var
63 -13,Monaspace Krypton Var
63 +22,Monaspace Krypton Var
64 64 1,Monaspace Neon Var
65 65 1,Monaspace Radon Var
66 66 1,Monaspace Xenon Var
96 96 1,Sudo
97 97 0,Symbols Nerd Font
98 98 0,Symbols Nerd Font Mono
99 -1,TeX Gyre Cursor
99 +0,TeX Gyre Cursor
100 100 1,Terminus
101 101 1,Ubuntu Mono
102 102 0,Verily Serif Mono