repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

7a3954e7a1bb24594e01a2347fa062ce817ab26b

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (20)

+240 / −114 text lines

Diff layout

NB-00718-WSL.symlinks

Added
new file mode 100644

+62 / −0 text lines

1git/gitconfig
2~/.config/git/config
3
4git/gitconfig.linux
5~/.config/git/.gitconfig.include
6
7subversion/config
8~/.subversion/config
9
10subversion/diff
11~/.subversion/diff
13subversion/diff3
14~/.subversion/diff3
16subversion/merge
17~/.subversion/merge
19tools/git-info
20~/.local/bin/git-info
22cargo/config.toml
23~/.cargo/config.toml
25bat/config
26~/.config/bat/config
28nushell/config.nu
29~/.config/nushell/config.nu
31nushell/env.nu
32~/.config/nushell/env.nu
34nushell/login.nu
35~/.config/nushell/login.nu
37nushell/gen-aliases.nu
38~/.config/nushell/gen-aliases.nu
40nushell/scripts
41~/.config/nushell/scripts
43topgrade/topgrade.linux.toml
44~/.config/topgrade.toml
46wezterm
47/mnt/c/Users/okr/.config/wezterm
49ssh/config
50~/.ssh/config
52neovim
53~/.config/nvim
55fonts
56~/.local/share/fonts
58pueue
59~/.config/pueue
61pueue/pueued.service
62~/.config/systemd/user/pueued.service

NB-00718.symlinks

Deleted
deleted file mode 100644

+0 / −68 text lines

1git/gitconfig
2~/.gitconfig
3
4git/gitconfig.NB-00718
5~/.gitconfig.include
6
7ssh/config
8~/.ssh/config
9
10topgrade/topgrade.windows.toml
11~/AppData/Roaming/topgrade.toml
12
13nushell
14~/AppData/Roaming/nushell
15
16bottom
17~/AppData/Roaming/bottom
18
19stackoverflow/so
20~/AppData/Roaming/Sam Tay/so
21
22subversion/config.win32
23~/AppData/Roaming/Subversion/config
24
25subversion/diff.bat
26~/AppData/Roaming/Subversion/diff.bat
27
28subversion/diff
29~/AppData/Roaming/Subversion/diff
30
31subversion/diff3.bat
32~/AppData/Roaming/Subversion/diff3.bat
33
34subversion/diff3
35~/AppData/Roaming/Subversion/diff3
36
37subversion/merge.bat
38~/AppData/Roaming/Subversion/merge.bat
39
40subversion/merge
41~/AppData/Roaming/Subversion/merge
42
43cargo/config.toml
44~/scoop/persist/rustup/.cargo/config.toml
45
46indexa/config.windows.toml
47~/AppData/Roaming/indexa/config.toml
48
49wezterm
50~/.config/wezterm
51
52helix/config.toml
53~/AppData/Roaming/helix/config.toml
54
55helix/languages.toml
56~/AppData/Roaming/helix/languages.toml
57
58helix/themes
59~/AppData/Roaming/helix/themes
60
61neovim
62~/AppData/Local/nvim
63
64bat/config
65~/AppData/Roaming/bat/config
66
67keyb/keyb.yml
68~/AppData/Roaming/keyb/keyb.yml

bootstripper.java

Modified

+29 / −20 text lines

1212 public static void main(String[] arguments) throws Throwable {
1313 var dorkfile_path_input = ".";
1414 var do_clean = false;
15 var do_decrypt = false;
1617 if (arguments.length == 1) {
1718 if ("clean".equals(arguments[0])) {
1819 do_clean = true;
19 } else {
20 }
21 else if( "decrypt".equals(arguments[0])) {
22 do_decrypt = true;
23 } else {
2024 dorkfile_path_input = arguments[0];
2125 }
2226 } else if (arguments.length == 2) {
2327 if ("clean".equals(arguments[0])) {
2428 do_clean = true;
2529 dorkfile_path_input = arguments[1];
30 }
31 else if ("decrypt".equals(arguments[0])) {
32 do_decrypt = true;
33 dorkfile_path_input = arguments[1];
2634 } else {
2735 usage();
2836 throw fail();
3442 var dorkfiles_root = Path.of(dorkfile_path_input).toRealPath();
3543 log("Assuming dorkfiles root repo in {0}.",
3644 emphasize_local(dorkfiles_root.toString()));
37 if (!do_clean)
38 decrypt_secrets(dorkfiles_root.resolve("tresor"));
39 var hostname = hostname();
40 log("Hostname: {0}", emphasize_global(hostname));
41 var symlinks_file = dorkfiles_root.resolve(hostname + ".symlinks");
42 if (Files.exists(symlinks_file)) {
43 if (do_clean)
44 delete_symlinks(dorkfiles_root, symlinks_file);
45 else
46 create_symlinks(dorkfiles_root, symlinks_file);
47 } else {
48 throw fail("Expected a file containing symlinks at: {0}. Found nothing!",
49 symlinks_file);
50 }
45 if (do_decrypt) {
46 decrypt_secrets(dorkfiles_root.resolve("tresor"));
47 } else {
48 var hostname = hostname();
49 log("Hostname: {0}", emphasize_global(hostname));
50 var symlinks_file = dorkfiles_root.resolve(hostname + ".symlinks");
51 if (Files.exists(symlinks_file)) {
52 if (do_clean)
53 delete_symlinks(dorkfiles_root, symlinks_file);
54 else
55 create_symlinks(dorkfiles_root, symlinks_file);
56 } else {
57 throw fail("Expected a file containing symlinks at: {0}. Found nothing!",
58 symlinks_file);
59 }
60 }
5161 }
5363 static void decrypt_secrets(Path secrets_root) throws Throwable {
54 log("{0}:Decrypting files in {1} folder.", emphasize_global("TODO"),
64 log("{0}:Decrypting files in {1} folder, using rbw.", emphasize_global("TODO"),
5565 emphasize_local(secrets_root.getFileName().toString()));
5666 }
7585 var target_path = Path.of(target.replace("~", home)).toAbsolutePath();
7787 if (Files.exists(target_path, LinkOption.NOFOLLOW_LINKS)) {
78 var symlink_target = target_path.toRealPath();
79 if (symlink_target.compareTo(source_path) == 0) {
80 log("\nOK {0} exists and points to {1} in dorkfiles!\nDeleting {0}.",
88 if (Files.isSymbolicLink(target_path)) {
89 log("\nOK {0} exists and points to {1}, a symlink indeed!\nDeleting {0}.",
8190 emphasize_global(target_path.toString()),
8291 emphasize_local(source_path.toString()));
8392 // a symlink is always a file. no need to handle folders
8493 Files.delete(target_path);
8594 } else {
86 log("\nNOPE {0} exists, but it points outside of dorkfiles! Clean manually.",
95 log("\nNOPE {0} exists, but it is not a symlink! Clean manually.",
8796 target_path.toString());
8897 }
8998 }

justfile

Modified

+15 / −0 text lines

2828link:
2929 java bootstripper.java
31# remove links to dorkfiles in HOME
32unlink:
33 java bootstripper.java clean
35# Decrypts all my secrets in tresor, using password manager, if available.
36decrypt:
37 java bootstripper.java decrypt
39# install rust user land
3140tools:
3241 cd tools;java install.java
43# typically the initial git remote for the dotfiles repo is https
44# this command changes the remote to ssh
45ssh-remote:
46 git remote rm origin
47 git remote add origin git@github.com:bugabinga/dotfiles.git

neovim/colors/nugu.lua

Modified

+36 / −1 text lines

1-- TODO: move this to std and refactor to retun bool
2-- Set color theme to light/dark based on current system preferences.
3function get_background_based_on_os()
4 -- Default value
5 local background = 'light'
6 local uname = vim.uv.os_uname()
7 -- First check whether we are on WSL or Windows
8 if uname.sysname == "Windows_NT" or string.match(uname.release, "WSL") then
9 -- Check if 'reg.exe' is executable
10 if vim.fn.executable('reg.exe') ~= 0 then
11 -- Execute command to check if the win32 appearance is set to Dark
12 local appsUseLightTheme = vim.fn.system({"reg.exe", "Query", "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "/v", "AppsUseLightTheme"})
13 if not appsUseLightTheme:find("0x1") then
14 background = 'dark'
15 end
16 end
17 -- Check if 'busctl' is executable (part of systemd)
18 elseif vim.fn.executable('busctl') ~= 0 then
19 -- Get the current color scheme from xdg-desktop-portal using busctl
20 local result = vim.fn.system({
21 "busctl", "--user", "call", "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop",
22 "org.freedesktop.portal.Settings", "ReadOne", "ss", "org.freedesktop.appearance", "color-scheme"
23 })
24 -- The result is in the form of "v u 0" for light and "v u 1" for dark
25 local color_scheme = result:match("u%s+(%d+)")
27 if color_scheme == '1' then
28 background = 'dark'
29 end
30 else
31 end
33 return background
34end
136if vim.g.colors_name == nil then
2 vim.opt.background = 'dark'
37 vim.opt.background = get_background_based_on_os()
338else
439 -- Reset all highlights if another colorscheme was previously set
540 vim.cmd [[ highlight clear ]]

neovim/init.lua

Modified

+9 / −6 text lines

99-- ▀ ▀
1111-- setup debug mode
12-- require 'std.debug'.toggle()
12-- require 'std.dbg'.toggle()
1414vim.cmd.colorscheme 'nugu'
1717prequire = require 'std.prequire'
1919prequire 'bugabinga.options'
20prequire 'bugabinga.lazy'
2120prequire 'bugabinga.editorconfig'
22prequire 'bugabinga.diagnostic'
23prequire 'bugabinga.save_actions'
24-- prequire 'bugabinga.mark'
2521prequire 'bugabinga.sessions'
26prequire 'bugabinga.terminal'
22prequire 'bugabinga.lazy'
23prequire 'bugabinga.save_actions'
2725prequire 'bugabinga.lsp'
27vim.defer_fn (function ()
28 prequire 'bugabinga.terminal'
29 prequire 'bugabinga.diagnostic'
30end, 444)

neovim/lazy-lock.json

Modified

+9 / −9 text lines

1010 "colorizer.nvim": { "branch": "master", "commit": "c1602ff3f11566bb7f16f90985b0c59d3d7db0ef" },
1111 "conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" },
1212 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
13 "dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
13 "dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
1414 "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
1515 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
1616 "heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
2525 "neogen": { "branch": "main", "commit": "e932ba918b56723436b77aa3efb844a11b2851ab" },
2626 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
2727 "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
28 "nvim-autopairs": { "branch": "master", "commit": "ffc139f2a96640ca6c4d3dff9b95b7b9eace87ae" },
28 "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" },
2929 "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
3030 "nvim-genghis": { "branch": "main", "commit": "ca258b1e466d131e17eacf0c632abe932bce20ab" },
3131 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
3232 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
33 "nvim-lint": { "branch": "master", "commit": "99cab0b885aaa2f59736c047d23e9a7835d4f9a9" },
33 "nvim-lint": { "branch": "master", "commit": "ba0ab2f813e77d015da1a1c9920328fd2bf295f2" },
3434 "nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
3535 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
3636 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
3737 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
38 "nvim-treesitter": { "branch": "master", "commit": "b9002f6fe679e2b8025a46116081c0da629a6b8c" },
38 "nvim-treesitter": { "branch": "master", "commit": "1fbc25fc111cf5c7e73819657c8968dc5fa302ad" },
3939 "nvim-treesitter-context": { "branch": "master", "commit": "7f7eeaa99e5a9beab518f502292871ae5f20de6f" },
4040 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
4141 "nvim-treesitter-textobjects": { "branch": "master", "commit": "bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" },
4242 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
4343 "nvim-ts-context-commentstring": { "branch": "main", "commit": "375c2d86cee6674afd75b4f727ce3a80065552f7" },
44 "nvim-web-devicons": { "branch": "master", "commit": "9154484705968658e9aab2b894d1b2a64bf9f83d" },
44 "nvim-web-devicons": { "branch": "master", "commit": "31bd21ac46b2b6039aa0b856ca02b018cf549ef7" },
4545 "nvim-window": { "branch": "main", "commit": "81f29840ac3aaeea6fc2153edfabebd00d692476" },
46 "oil.nvim": { "branch": "master", "commit": "f60bb7f793477d99ef1acf39e920bf2ca4e644de" },
47 "plenary.nvim": { "branch": "master", "commit": "f4faa5a3dc77a694ba58f42585985fed88540ac6" },
46 "oil.nvim": { "branch": "master", "commit": "1360be5fda9c67338331abfcd80de2afbb395bcd" },
47 "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
4848 "qf_helper.nvim": { "branch": "master", "commit": "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
49 "schemastore.nvim": { "branch": "main", "commit": "bfe74baf72ca8964a211286fed864f30c672f19b" },
49 "schemastore.nvim": { "branch": "main", "commit": "6e2af7e093a4b92e3dce014aa1cbb5449ad1ebf9" },
5050 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
5151 "ssr.nvim": { "branch": "main", "commit": "7c95cfa5836508f08ae833a4b31d2ed265560f64" },
5252 "substitute.nvim": { "branch": "main", "commit": "97f49d16f8eea7967d41db4f657dd63af53eeba1" },
5656 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
5757 "text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
5858 "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
59 "tree-sitter-nu": { "branch": "main", "commit": "0bb9a602d9bc94b66fab96ce51d46a5a227ab76c" },
59 "tree-sitter-nu": { "branch": "main", "commit": "983618e8635db65daf898460a59065a70f64145e" },
6060 "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" },
6161 "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
6262 "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },

neovim/lua/bugabinga/lsp/init.lua

Modified

+2 / −2 text lines

145145 break
146146 end
148 local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path )
149148 local capabilities = vim.lsp.protocol.make_client_capabilities()
150149 capabilities = table.extend( 'force', capabilities, config.capabilities )
156155 settings = vim.tbl_deep_extend( 'force', settings, settings_override )
157156 end
158 local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path )
159159 local root_workspace = root_dir and { uri = 'file://' .. root_dir, name = root_dir, } or nil
160160 local workspace_folders = root_workspace and { root_workspace, } or nil
161161 local workspace_folders_local = project_local_workspace_folders[config.name]
228228 end,
229229 } )
231 dbg.print( 'ATTACHING LSP CLIENT', config.name )
231 dbg.print( 'STARTING LSP CLIENT', config.name )
232232 end
233233end

neovim/lua/bugabinga/options/ui.lua

Modified

+2 / −0 text lines

1local dbg = require 'std.dbg'
12local icon = require 'std.icon'
23local auto = require 'std.auto'
34local ignored = require 'std.ignored'
1415 events = { 'FileType', },
1516 pattern = ignored.filetypes,
1617 command = function ()
18 dbg.print 'Hiding columns in buffers without source code'
1719 vim.opt_local.colorcolumn = {}
1820 vim.opt_local.signcolumn = 'no'
1921 vim.opt_local.foldcolumn = '0'

nushell/env.nu

Modified

+9 / −1 text lines

3131 $env.GIT_EDITOR = 'nvim'
3534if not (which neovide | is-empty) {
3635 $env.VISUAL = 'neovide'
4039 $env.TERM = "xterm-256color"
42if ( not $env.WIN32 ) {
43 let tools_bin = ( $env.TOOLS | path join bin )
44 $env.PATH = (
45 $env.PATH |
46 split row (char esep) |
47 prepend $tools_bin
48 )
49}
4351# theme for ls and other programs, that use LS_COLORS
4452$env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})

nushell/login.nu

Modified

+1 / −0 text lines

66use md.nu
77use start.nu
88use timer.nu
9use dwnld.nu
1011if $env.WIN32 {
1112 use refreshenv.nu *

nushell/scripts/dwnld.nu

Added
new file mode 100644

+6 / −0 text lines

1export def main [
2 url: path
3] {
4 let basename = ( $url | path basename )
5 http get $url | save --raw $basename
6}

nushell/scripts/prompt.nu

Modified

+3 / −0 text lines

66 [ path icon ];
88 [ "/home/oli/Notes" (char -u "03C0") ]
9 [ "/home/okr/Notes" (char -u "03C0") ]
910 [ "/home/bugabinga/Notes" (char -u "03C0") ]
1011 [ "C:\\Users\\okr\\Notizen" (char -u "03C0") ]
1213 [ "/home/oli/Workspace" (char -u "03BB") ]
14 [ "/home/okr/Workspace" (char -u "03BB") ]
1315 [ "/home/bugabinga/Workspace" (char -u "03BB") ]
1416 [ "C:\\Users\\okr\\Workspaces" (char -u "03BB") ]
1618 [ "/home/oli" (char home) ]
19 [ "/home/okr" (char home) ]
1720 [ "/home/bugabinga" (char home) ]
1821 [ "C:\\Users\\okr" (char home) ]
1922 ]

nushell/scripts/todo.nu

Modified

+11 / −4 text lines

1def print_markdown [ md: path ] {
2 if not ( which mdcat | is-empty ) { mdcat $md; return }
3 if not ( which bat | is-empty ) { bat $md; return }
4 if not ( which glow | is-empty ) { glow $md; return }
5 open $md
6}
7
18# Render my To-Do file in the terminal
2export def main [] { mdcat ($env.NOTES | path join "TODO.md") }
9export def main [] { print_markdown ($env.NOTES | path join "TODO.md") }
411# Open my To-Do file for editing
5export def edit [] { nvim ($env.NOTES | path join "TODO.md") }
12export def edit [] { run-external $env.EDITOR ($env.NOTES | path join "TODO.md") }
714# Open a list of commands, that I would like to remember to use
8export def commands [] { mdcat ($env.NOTES | path join "COMMANDS.md") }
15export def commands [] { print_markdown ($env.NOTES | path join "COMMANDS.md") }
1017# Open the list of commands to remember for editing.
11export def "commands edit" [] { nvim ($env.NOTES | path join "COMMANDS.md") }
18export def "commands edit" [] { run-external $env.EDITOR ($env.NOTES | path join "COMMANDS.md") }

pueue/pueue.yml

Added
new file mode 100644

+31 / −0 text lines

1client:
2 restart_in_place: false
3 read_local_logs: true
4 show_confirmation_questions: false
5 show_expanded_aliases: false
6 dark_mode: false
7 max_status_lines: null
8 status_time_format: '%H:%M:%S'
9 status_datetime_format: |-
10 %Y-%m-%d
11 %H:%M:%S
12daemon:
13 pause_group_on_failure: false
14 pause_all_on_failure: false
15 callback: null
16 env_vars: {}
17 callback_log_lines: 10
18 shell_command: null
19shared:
20 pueue_directory: null
21 runtime_directory: null
22 alias_file: null
23 use_unix_socket: true
24 unix_socket_path: null
25 host: 127.0.0.1
26 port: '6924'
27 pid_path: null
28 daemon_cert: null
29 daemon_key: null
30 shared_secret_path: null
31profiles: {}

pueue/pueued.service

Added
new file mode 100644

+9 / −0 text lines

1[Unit]
2Description=Pueue Daemon - CLI process scheduler and manager
3
4[Service]
5Restart=no
6ExecStart=/home/okr/.cargo/bin/pueued -vvv
7
8[Install]
9WantedBy=default.target

systemd/environment.d/07_cargo.conf

Deleted
deleted file mode 100644

+0 / −1 text lines

1CARGO_HOME=$HOME/.cargo

systemd/environment.d/99_path.conf

Deleted
deleted file mode 100644

+0 / −1 text lines

1PATH=$CARGO_HOME/bin:$HOME/.local/bin:$HOME/go/bin:$PATH

tools/tools.csv

Modified

+1 / −0 text lines

6161tealdeer;tldr
6262tokei
6363topgrade
64timebutler
6465tre
6566unison-fsmonitor
6667# ugdb

wezterm/wezterm.lua

Modified

+5 / −1 text lines

2727local hostname = wez.hostname()
2828local enable_wayland = false
29local default_prog = { 'nu', '--login' }
2930local window_decorations = 'TITLE|RESIZE'
3031local font_size = 16.0
3132local font = wez.font 'Cousine'
3233if hostname == 'x230' then
3334 font = random_nerd_font();
3435 enable_wayland = true
36elseif hostname == 'NB-00718' then
37 default_prog = { 'powershell' , '-NoLogo'}
3538elseif hostname == 'fedora' then
3639 font = random_nerd_font();
3740 enable_wayland = true
99102 -- debug_key_events = true,
101104 default_cwd = wez.home_dir,
102 default_prog = { 'nu', '--login' },
105 default_prog = default_prog,
103106 default_cursor_style = 'SteadyBlock',
105108 -- this effectivly maximizes wezterm
158161 keys = key_binds.keys,
159162 key_tables = key_binds.key_tables,