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)
NB-00718-WSL.symlinks
Addednew file mode 100644 5 +~/.config/git/.gitconfig.include
20 +~/.local/bin/git-info
29 +~/.config/nushell/config.nu
32 +~/.config/nushell/env.nu
35 +~/.config/nushell/login.nu
37 +nushell/gen-aliases.nu
38 +~/.config/nushell/gen-aliases.nu
41 +~/.config/nushell/scripts
43 +topgrade/topgrade.linux.toml
44 +~/.config/topgrade.toml
47 +/mnt/c/Users/okr/.config/wezterm
62 +~/.config/systemd/user/pueued.service
deleted file mode 100644 4 -git/gitconfig.NB-00718
10 -topgrade/topgrade.windows.toml
11 -~/AppData/Roaming/topgrade.toml
14 -~/AppData/Roaming/nushell
17 -~/AppData/Roaming/bottom
20 -~/AppData/Roaming/Sam Tay/so
22 -subversion/config.win32
23 -~/AppData/Roaming/Subversion/config
26 -~/AppData/Roaming/Subversion/diff.bat
29 -~/AppData/Roaming/Subversion/diff
32 -~/AppData/Roaming/Subversion/diff3.bat
35 -~/AppData/Roaming/Subversion/diff3
38 -~/AppData/Roaming/Subversion/merge.bat
41 -~/AppData/Roaming/Subversion/merge
44 -~/scoop/persist/rustup/.cargo/config.toml
46 -indexa/config.windows.toml
47 -~/AppData/Roaming/indexa/config.toml
53 -~/AppData/Roaming/helix/config.toml
56 -~/AppData/Roaming/helix/languages.toml
59 -~/AppData/Roaming/helix/themes
65 -~/AppData/Roaming/bat/config
68 -~/AppData/Roaming/keyb/keyb.yml
bootstripper.java
Modified 12 12 public static void main(
String[] arguments) throws
Throwable {
13 13 var dorkfile_path_input
= ".";
14 14 var do_clean
= false;
15 + var do_decrypt
= false;
16 17 if (arguments.length
== 1) {
17 18 if (
"clean".equals(arguments[
0])) {
21 + else if(
"decrypt".equals(arguments[
0])) {
20 24 dorkfile_path_input
= arguments[
0];
22 26 }
else if (arguments.length
== 2) {
23 27 if (
"clean".equals(arguments[
0])) {
25 29 dorkfile_path_input
= arguments[
1];
31 + else if (
"decrypt".equals(arguments[
0])) {
33 + dorkfile_path_input
= arguments[
1];
34 42 var dorkfiles_root
= Path.of(dorkfile_path_input).toRealPath();
35 43 log(
"Assuming dorkfiles root repo in {0}.",
36 44 emphasize_local(dorkfiles_root.toString()));
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)) {
44 - delete_symlinks(dorkfiles_root, symlinks_file);
46 - create_symlinks(dorkfiles_root, symlinks_file);
48 - throw fail(
"Expected a file containing symlinks at: {0}. Found nothing!",
46 + decrypt_secrets(dorkfiles_root.resolve(
"tresor"));
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)) {
53 + delete_symlinks(dorkfiles_root, symlinks_file);
55 + create_symlinks(dorkfiles_root, symlinks_file);
57 + throw fail(
"Expected a file containing symlinks at: {0}. Found nothing!",
53 63 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"),
55 65 emphasize_local(secrets_root.getFileName().toString()));
75 85 var target_path
= Path.of(target.replace(
"~", home)).toAbsolutePath();
77 87 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}.",
81 90 emphasize_global(target_path.toString()),
82 91 emphasize_local(source_path.toString()));
84 93 Files.delete(target_path);
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.",
87 96 target_path.toString());
29 29 java bootstripper.java
33 + java bootstripper.java clean
37 + java bootstripper.java decrypt
32 41 cd tools;java install.java
46 + git remote rm origin
47 + git remote add origin git@github.com:bugabinga/dotfiles.git
neovim/colors/nugu.lua
Modified 3 +function get_background_based_on_os()
5 + local background
= 'light' 6 + local uname
= vim.uv.os_uname()
8 + if uname.sysname
== "Windows_NT" or string.
match(uname.release,
"WSL")
then 10 + if vim.fn.executable(
'reg.exe')
~= 0 then 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 18 + elseif vim.fn.executable(
'busctl')
~= 0 then 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" 25 + local color_scheme
= result:match(
"u%s+(%d+)")
27 + if color_scheme
== '1' then 1 36 if vim.g.colors_name
== nil then 2 - vim.opt.background
= 'dark' 37 + vim.opt.background
= get_background_based_on_os()
5 40 vim.cmd
[[ highlight clear ]] 14 14 vim.cmd.colorscheme
'nugu' 17 17 prequire
= require 'std.prequire' 19 19 prequire
'bugabinga.options' 20 -prequire
'bugabinga.lazy' 21 20 prequire
'bugabinga.editorconfig' 22 -prequire
'bugabinga.diagnostic' 23 -prequire
'bugabinga.save_actions' 25 21 prequire
'bugabinga.sessions' 26 -prequire
'bugabinga.terminal' 22 +prequire
'bugabinga.lazy' 23 +prequire
'bugabinga.save_actions' 27 25 prequire
'bugabinga.lsp' 27 +vim.defer_fn (
function ()
28 + prequire
'bugabinga.terminal' 29 + prequire
'bugabinga.diagnostic' neovim/lazy-lock.json
Modified10 10 "colorizer.nvim": {
"branch":
"master",
"commit":
"c1602ff3f11566bb7f16f90985b0c59d3d7db0ef" },
11 11 "conform.nvim": {
"branch":
"master",
"commit":
"1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" },
12 12 "diffview.nvim": {
"branch":
"main",
"commit":
"4516612fe98ff56ae0415a259ff6361a89419b0a" },
13 - "dressing.nvim": {
"branch":
"master",
"commit":
"c5775a888adbc50652cb370073fcfec963eca93e" },
13 + "dressing.nvim": {
"branch":
"master",
"commit":
"1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
14 14 "flash.nvim": {
"branch":
"main",
"commit":
"7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
15 15 "glow.nvim": {
"branch":
"main",
"commit":
"238070a686c1da3bccccf1079700eb4b5e19aea4" },
16 16 "heirline.nvim": {
"branch":
"master",
"commit":
"0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
25 25 "neogen": {
"branch":
"main",
"commit":
"e932ba918b56723436b77aa3efb844a11b2851ab" },
26 26 "nrpattern.nvim": {
"branch":
"master",
"commit":
"f862ce687761078ef3155688151c55f69d28453e" },
27 27 "nui.nvim": {
"branch":
"main",
"commit":
"b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
28 - "nvim-autopairs": {
"branch":
"master",
"commit":
"ffc139f2a96640ca6c4d3dff9b95b7b9eace87ae" },
28 + "nvim-autopairs": {
"branch":
"master",
"commit":
"f158dcb865c36f72c92358f87787dab2c272eaf3" },
29 29 "nvim-cmp": {
"branch":
"main",
"commit":
"ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
30 30 "nvim-genghis": {
"branch":
"main",
"commit":
"ca258b1e466d131e17eacf0c632abe932bce20ab" },
31 31 "nvim-gomove": {
"branch":
"main",
"commit":
"2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
32 32 "nvim-lastplace": {
"branch":
"main",
"commit":
"0bb6103c506315044872e0f84b1f736c4172bb20" },
33 - "nvim-lint": {
"branch":
"master",
"commit":
"99cab0b885aaa2f59736c047d23e9a7835d4f9a9" },
33 + "nvim-lint": {
"branch":
"master",
"commit":
"ba0ab2f813e77d015da1a1c9920328fd2bf295f2" },
34 34 "nvim-navbuddy": {
"branch":
"master",
"commit":
"f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
35 35 "nvim-navic": {
"branch":
"master",
"commit":
"8649f694d3e76ee10c19255dece6411c29206a54" },
36 36 "nvim-neoclip.lua": {
"branch":
"main",
"commit":
"32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
37 37 "nvim-surround": {
"branch":
"main",
"commit":
"ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
38 - "nvim-treesitter": {
"branch":
"master",
"commit":
"b9002f6fe679e2b8025a46116081c0da629a6b8c" },
38 + "nvim-treesitter": {
"branch":
"master",
"commit":
"1fbc25fc111cf5c7e73819657c8968dc5fa302ad" },
39 39 "nvim-treesitter-context": {
"branch":
"master",
"commit":
"7f7eeaa99e5a9beab518f502292871ae5f20de6f" },
40 40 "nvim-treesitter-endwise": {
"branch":
"master",
"commit":
"8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
41 41 "nvim-treesitter-textobjects": {
"branch":
"master",
"commit":
"bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" },
42 42 "nvim-ts-autotag": {
"branch":
"main",
"commit":
"e239a560f338be31337e7abc3ee42515daf23f5e" },
43 43 "nvim-ts-context-commentstring": {
"branch":
"main",
"commit":
"375c2d86cee6674afd75b4f727ce3a80065552f7" },
44 - "nvim-web-devicons": {
"branch":
"master",
"commit":
"9154484705968658e9aab2b894d1b2a64bf9f83d" },
44 + "nvim-web-devicons": {
"branch":
"master",
"commit":
"31bd21ac46b2b6039aa0b856ca02b018cf549ef7" },
45 45 "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" },
48 48 "qf_helper.nvim": {
"branch":
"master",
"commit":
"fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
49 - "schemastore.nvim": {
"branch":
"main",
"commit":
"bfe74baf72ca8964a211286fed864f30c672f19b" },
49 + "schemastore.nvim": {
"branch":
"main",
"commit":
"6e2af7e093a4b92e3dce014aa1cbb5449ad1ebf9" },
50 50 "specs.nvim": {
"branch":
"main",
"commit":
"8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
51 51 "ssr.nvim": {
"branch":
"main",
"commit":
"7c95cfa5836508f08ae833a4b31d2ed265560f64" },
52 52 "substitute.nvim": {
"branch":
"main",
"commit":
"97f49d16f8eea7967d41db4f657dd63af53eeba1" },
56 56 "telescope.nvim": {
"branch":
"master",
"commit":
"a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
57 57 "text-case.nvim": {
"branch":
"main",
"commit":
"e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
58 58 "todo-comments.nvim": {
"branch":
"main",
"commit":
"ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
59 - "tree-sitter-nu": {
"branch":
"main",
"commit":
"0bb9a602d9bc94b66fab96ce51d46a5a227ab76c" },
59 + "tree-sitter-nu": {
"branch":
"main",
"commit":
"983618e8635db65daf898460a59065a70f64145e" },
60 60 "treesj": {
"branch":
"main",
"commit":
"0d81326b5afd36babe7dd480aabbb0b05f33e688" },
61 61 "twilight.nvim": {
"branch":
"main",
"commit":
"1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
62 62 "venn.nvim": {
"branch":
"main",
"commit":
"b09c2f36ddf70b498281845109bedcf08a7e0de0" },
neovim/lua/bugabinga/lsp/init.lua
Modified148 - local root_dir
= type( config.root_dir )
== 'string' and config.root_dir
or config.root_dir( buffer_path )
149 148 local capabilities
= vim.lsp.protocol.make_client_capabilities()
150 149 capabilities
= table.extend(
'force', capabilities, config.capabilities )
156 155 settings
= vim.tbl_deep_extend(
'force', settings, settings_override )
158 + local root_dir
= type( config.root_dir )
== 'string' and config.root_dir
or config.root_dir( buffer_path )
159 159 local root_workspace
= root_dir
and {
uri =
'file://' .. root_dir,
name = root_dir, }
or nil 160 160 local workspace_folders
= root_workspace
and { root_workspace, }
or nil 161 161 local workspace_folders_local
= project_local_workspace_folders[config.name]
231 - dbg.print(
'ATTACHING LSP CLIENT', config.name )
231 + dbg.print(
'STARTING LSP CLIENT', config.name )
neovim/lua/bugabinga/options/ui.lua
Modified 1 +local dbg
= require 'std.dbg' 1 2 local icon
= require 'std.icon' 2 3 local auto
= require 'std.auto' 3 4 local ignored
= require 'std.ignored' 14 15 events
= {
'FileType', },
15 16 pattern
= ignored.filetypes,
16 17 command = function ()
18 + dbg.print
'Hiding columns in buffers without source code' 17 19 vim.opt_local.colorcolumn
= {}
18 20 vim.opt_local.signcolumn
= 'no' 19 21 vim.opt_local.foldcolumn
= '0' 31 31 $env.GIT_EDITOR =
'nvim' 35 34 if not (which neovide | is-empty) {
36 35 $env.VISUAL =
'neovide' 40 39 $env.TERM =
"xterm-256color" 42 +if ( not
$env.WIN32 ) {
43 + let tools_bin = (
$env.TOOLS | path join bin )
46 + split row (char esep) |
44 52 $env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {
""})
11 12 use refreshenv.nu *
nushell/scripts/dwnld.nu
Addednew file mode 100644 4 + let basename = (
$url | path basename )
5 + http get
$url | save --raw
$basename nushell/scripts/prompt.nu
Modified 8 8 [
"/home/oli/Notes" (char -u
"03C0") ]
9 + [
"/home/okr/Notes" (char -u
"03C0") ]
9 10 [
"/home/bugabinga/Notes" (char -u
"03C0") ]
10 11 [
"C:\\Users\\okr\\Notizen" (char -u
"03C0") ]
12 13 [
"/home/oli/Workspace" (char -u
"03BB") ]
14 + [
"/home/okr/Workspace" (char -u
"03BB") ]
13 15 [
"/home/bugabinga/Workspace" (char -u
"03BB") ]
14 16 [
"C:\\Users\\okr\\Workspaces" (char -u
"03BB") ]
16 18 [
"/home/oli" (char home) ]
19 + [
"/home/okr" (char home) ]
17 20 [
"/home/bugabinga" (char home) ]
18 21 [
"C:\\Users\\okr" (char home) ]
nushell/scripts/todo.nu
Modified 1 +def 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 }
2 -export def main [] { mdcat (
$env.NOTES | path join
"TODO.md") }
9 +export def main [] { print_markdown (
$env.NOTES | path join
"TODO.md") }
5 -export def edit [] { nvim (
$env.NOTES | path join
"TODO.md") }
12 +export def edit [] { run-external
$env.EDITOR (
$env.NOTES | path join
"TODO.md") }
8 -export def commands [] { mdcat (
$env.NOTES | path join
"COMMANDS.md") }
15 +export def commands [] { print_markdown (
$env.NOTES | path join
"COMMANDS.md") }
11 -export def "commands edit" [] { nvim (
$env.NOTES | path join
"COMMANDS.md") }
18 +export def "commands edit" [] { run-external
$env.EDITOR (
$env.NOTES | path join
"COMMANDS.md") }
new file mode 100644 2 + restart_in_place:
false 3 + read_local_logs:
true 4 + show_confirmation_questions:
false 5 + show_expanded_aliases:
false 7 + max_status_lines:
null 8 + status_time_format:
'%H:%M:%S' 9 + status_datetime_format:
|- 13 + pause_group_on_failure:
false 14 + pause_all_on_failure:
false 17 + callback_log_lines:
10 20 + pueue_directory:
null 21 + runtime_directory:
null 23 + use_unix_socket:
true 24 + unix_socket_path:
null 30 + shared_secret_path:
null pueue/pueued.service
Addednew file mode 100644 2 +Description=Pueue Daemon - CLI process scheduler and manager
6 +ExecStart=/home/okr/.cargo/bin/pueued -vvv
9 +WantedBy=default.target
systemd/environment.d/07_cargo.conf
Deleteddeleted file mode 1006441 -CARGO_HOME=$HOME/.cargo
systemd/environment.d/99_path.conf
Deleteddeleted file mode 1006441 -PATH=$CARGO_HOME/bin:$HOME/.
local/bin:$HOME/go/bin:$PATH
wezterm/wezterm.lua
Modified 27 27 local hostname
= wez.hostname()
28 28 local enable_wayland
= false 29 +local default_prog
= {
'nu',
'--login' }
29 30 local window_decorations
= 'TITLE|RESIZE' 30 31 local font_size
= 16.0 31 32 local font
= wez.font
'Cousine' 32 33 if hostname
== 'x230' then 33 34 font
= random_nerd_font();
34 35 enable_wayland
= true 36 +elseif hostname
== 'NB-00718' then 37 + default_prog
= {
'powershell' ,
'-NoLogo'}
35 38 elseif hostname
== 'fedora' then 36 39 font
= random_nerd_font();
37 40 enable_wayland
= true 101 104 default_cwd
= wez.home_dir,
102 - default_prog
= {
'nu',
'--login' },
105 + default_prog
= default_prog,
103 106 default_cursor_style
= 'SteadyBlock',
158 161 keys
= key_binds.keys,
159 162 key_tables
= key_binds.key_tables,