repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

d54f57a7c348478fb074e2fdd7de69a6f1f9457e

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (11)

+202 / −110 text lines

Diff layout

neovim/.lsp.settings.lua

Modified

+8 / −2 text lines

11return {
22 LuaLS = {
33 Lua = {
4 diagnostics = { globals = { 'vim', 'prequire' } },
54 runtime = { version = 'LuaJIT' },
6 workspace = {},
5 diagnostics = { globals = { 'vim', 'prequire' } },
6 workspace = {
7 checkThridParties = false,
8 library = {
9 '${3rd}/luv/library',
10 unpack( vim.api.nvim_get_runtime_file( '', true ) ),
11 },
12 },
713 },
814 },
915}

neovim/lua/bugabinga/options/behaviour.lua

Modified

+6 / −4 text lines

5757-- integrate Nushell with nvim
5858vim.opt.shell = 'nu'
59vim.opt.shellcmdflag = '--commands'
60vim.opt.shellpipe = 'out+err>| save %s'
61vim.opt.shellredir = '| save %s'
62vim.opt.shellquote = ''
59vim.opt.shellcmdflag = '--stdin --no-newline --commands'
60vim.opt.shellredir = 'out+err> %s'
61vim.opt.shellpipe = '| complete | update stderr { ansi strip } | tee { get stderr | save --force --raw %s} | into record'
62vim.opt.shelltemp = false
6363vim.opt.shellxquote = ''
64vim.opt.shellxescape = ''
65vim.opt.shellquote = ''
6567require 'bugabinga.health'.add_dependency

nushell/gen-aliases.nu

Modified

+1 / −0 text lines

3131aka vim nvim
3232aka code nvim
33aka vide neovide
3334aka edit nvim '--clean'
3435aka ed nvim '--clean'
3536aka vi nvim '--clean'

topgrade/topgrade.linux.toml

Modified

+3 / −34 text lines

11[misc]
2# Disable specific steps - same options as the command line flag
3disable = ["restarts", "vim"]
4
2disable = ["vim"]
53assume_yes = true
6
7# Run specific steps - same options as the command line flag
8#only = ["system", "emacs"]
9
10# Do not ask to retry failed steps (default: false)
114no_retry = true
13# Do not set the terminal title
145set_title = true
16# Display the time in step titles
176display_time = true
19# Cleanup temporary or old files
207cleanup = true
229[composer]
2310self_update = false
2512[git]
26# Additional git repositories to pull
27repos = ["/home/oli/Workspace/*", "/home/oli/Source/*"]
13repos = ["/home/oli/Source/*", "/home/oli/Notes"]
14arguments = "--ff --rebase"
2915max_concurrency = 12
3116pull_predefined = false
33# Arguments to pass Git when pulling Repositories
34# arguments = "--ff --rebase"
36# Commands to run before anything
37[pre_commands]
38"00 - Create BTRFS snapshot" = "echo TODO"
40# Custom commands
41[commands]
43# Updating my configuration files
44"00 - Refresh Dotfiles" = "java ~/Workspace/dotfiles/bootstripper.java ~/Workspace/dotfiles"
46# install tools from cargo, that are not already in path
47"01 - Install Cargo Tools" = "cd ~/Workspace/dotfiles/tools ; java ~/Workspace/dotfiles/tools/install.java"

wezterm/bugabinga/code_font.lua

Modified

+23 / −8 text lines

33return {
44 random = function ()
5 local selected = 'JetBrains Mono' -- safe default, because built in to wezterm
56 local font_names = {}
6 local nerdfonts = io.open( wez.config_dir .. '/bugabinga/code_fonts', 'r' )
7 if nerdfonts then
8 for font_name in nerdfonts:lines() do
9 if not font_name:match '^#.*' then
10 table.insert( font_names, font_name )
7 local weights = {}
8 local total_weight = 1 -- to account for luas 1 based indexing
9 local code_fonts = io.open( wez.config_dir .. '/bugabinga/code_fonts.csv', 'r' )
11 if code_fonts then
12 for line in code_fonts:lines() do
13 local weight, font_name = line:match '^%s*(%d*)%s*,%s*(.*)%s*$'
14 table.insert( font_names, font_name )
15 table.insert( weights, tonumber( weight ) )
16 total_weight = total_weight + weight
17 end
18 code_fonts:close()
20 local random_weight = math.random( total_weight )
21 local cursor = 0
22 for idx, weight in ipairs( weights ) do
23 cursor = cursor + weight
24 if cursor >= random_weight then
25 selected = font_names[idx]
26 break
1127 end
1228 end
13 local random_font = font_names[math.random( #font_names )]
14 return wez.font( random_font )
1529 end
16 return wez.font 'JetBrains Mono'
31 return wez.font( selected )
1732 end,

wezterm/bugabinga/code_fonts.csv

Added
new file mode 100644

+110 / −0 text lines

1 1, Anonymous Pro
2 1, Anonymous Pro Minus
3 1, Aurulent Sans Mono
4 1, AverageMono
5 1, BPmono
6 1, BigBlue TerminalPlus
7 1, Bitstream Vera Sans Mono
8 1, Bront
9 1, CMU Typewriter Text
10 1, CPMono_v07
11 1, CamingoCode
12 1, Cascadia Code
13 1, Code New Roman
14 1, CodingFontTobi
15 1, Consola Mono
16 1, Courier Prime Code
17 1, Cousine
18 1, Crisp
19 1, Cutive Mono
20 1, D2Coding
21 1, DejaVu Sans Mono
22 1, Dina ttf 10px
23 1, Droid Sans Mono
24 1, Edlo
25 1, Envy Code R
26 1, Fantasque Sans Mono
27 1, Fira Code
28 1, Fira Mono
29 1, Fixedsys Excelsior 3.01
30 1, FreeMono
31 1, Geist Mono
32 1, Generic Mono II
33 1, GohuFont
34 1, Hack
35 1, Hasklig
36 10, Hermit
37 10, IBM Plex Mono
38 1, Inconsolata
39 1, Inconsolata LGC
40 1, Inconsolata-dz
41 1, Inconsolata-g
42 1, Intel One Mono
43 1, Iosevka
44 1, Iosevka Slab
45 1, JetBrains Mono
46 1, JetBrains Mono NL
47 1, Kawkab Mono
48 1, Latin Modern Mono Light
49 10, Lekton
50 1, Liberation Mono
51 1, Lilex
52 1, Linux Libertine Mono
53 1, Luculent
54 1, Luxi Mono
55 1, M+ 1m
56 1, M+ 1mn
57 1, M+ 2m
58 1, Martian Mono
59 1, Mensch
60 1, Meslo LG M DZ
61 1, Metrickal
62 1, Monaspace Argon Var
63 1, Monaspace Krypton Var
64 1, Monaspace Neon Var
65 1, Monaspace Radon Var
66 1, Monaspace Xenon Var
67 1, MonoSpatial
68 1, Monoid
69 1, Monospace
70 1, MonteCarlo Fixed 12
71 1, NanumGothic_Coding
72 1, NotCourierSans
73 1, Office Code Pro
74 1, Office Code Pro D
75 1, Oxygen Mono
76 1, PT Mono
77 1, Panic Sans
78 1, PixelCarnageMonoTT
79 1, Pointfree
80 1, ProFontWindows
81 1, ProggyCleanTT
82 1, ProggyCleanTTSZ
83 1, ProggySmallTT
84 1, ProggySquareTT
85 1, ProggySquareTTSZ
86 1, ProggyTinyTT
87 1, ProggyTinyTTSZ
88 1, Rec Mono Casual
89 1, Rec Mono Linear
90 1, Roboto Mono
91 1, SV Basic Manual
92 1, Share Tech Mono
93 1, Share-TechMonoTrue
94 1, SmallTypeWriting
95 1, Source Code Pro
96 1, Sudo
97 1, Symbols Nerd Font
98 1, Symbols Nerd Font Mono
99 1, TeX Gyre Cursor
100 1, Terminus
101 1, Ubuntu Mono
102 1, Verily Serif Mono
103 1, Victor Mono
104 1, Whois
105 1, agave
106 1, iA Writer Mono V
107 1, monoOne
108 1, monofur
109 1, mononoki
110 20, saxMono

wezterm/bugabinga/hosts/NB-00718.lua

Modified

+5 / −2 text lines

11local code_font = require 'bugabinga.code_font'
2
23return function ( cfg )
3 cfg.default_domain = 'WSL:Fedora'
4 cfg.default_mux_server_domain = 'WSL:Fedora'
4 cfg.font = code_font.random();
5
6 cfg.default_domain = { 'WSL:Fedora', }
7 cfg.default_mux_server_domain = { 'WSL:Fedora', }
58 cfg.default_prog = { 'powershell', '-NoLogo', }
710 cfg.font_size = 13

wezterm/bugabinga/key_binds.lua

Modified

+32 / −59 text lines

77local font_size_mode = ' Change Font Size (=-+)'
88local pane_mode = ' Pane (hjklqr)'
99local resize_pane_mode = 'ﭕ Resize Pane (hjkl)'
10local navigate_forward_mode = ' Navigate forward (bw)'
11local navigate_backward_mode = ' Navigate backward (bw)'
1311local key_tables = {
1412 [resize_pane_mode] = {
2119 { key = 'Escape', action = 'PopKeyTable', },
2220 },
2321 [font_size_mode] = {
24 { key = 'j', action = wez.action.DecreaseFontSize, },
25 { key = 'k', action = wez.action.IncreaseFontSize, },
26 { key = '=', action = wez.action.ResetFontSize, },
22 { key = '-', action = wez.action.DecreaseFontSize, },
23 { key = '=', action = wez.action.IncreaseFontSize, },
24 { key = '0', action = wez.action.ResetFontSize, },
2826 { key = 'Escape', action = 'PopKeyTable', },
2927 },
3230 { key = 'j', action = wez.action.ActivatePaneDirection 'Down', },
3331 { key = 'k', action = wez.action.ActivatePaneDirection 'Up', },
3432 { key = 'l', action = wez.action.ActivatePaneDirection 'Right', },
33 { key = 'a', action = wez.action.PaneSelect, },
3635 { key = 'v', action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain', }, },
3736 { key = 's', action = wez.action.SplitVertical { domain = 'CurrentPaneDomain', }, },
4342 { key = 'Escape', action = 'PopKeyTable', },
4443 },
45 [navigate_forward_mode] = {
46 {
47 key = 'b', -- b as in buffer in vim
48 action = wez.action.ActivateTabRelative( 1 ),
49 },
50 {
51 key = 'w', -- next workspace
52 action = wez.action.SwitchWorkspaceRelative( 1 ),
53 },
54 },
55 [navigate_backward_mode] = {
56 {
57 key = 'b',
58 action = wez.action.ActivateTabRelative( -1 ),
59 },
60 {
61 key = 'w', -- prev workspace
62 action = wez.action.SwitchWorkspaceRelative( -1 ),
63 },
64 },
6746local keys = {
68 {
69 key = ']',
70 mods = 'LEADER',
71 action = wez.action.ActivateKeyTable { name = navigate_forward_mode, },
72 },
73 {
74 key = '[',
75 mods = 'LEADER',
76 action = wez.action.ActivateKeyTable { name = navigate_backward_mode, },
77 },
7847 {
7948 key = '0',
8049 mods = 'LEADER',
8554 mods = 'LEADER',
8655 action = wez.action.ActivateKeyTable { name = pane_mode, },
8756 },
88 {
89 key = 'a',
90 mods = 'LEADER',
91 action = wez.action.PaneSelect,
92 },
9357 {
9458 key = 'f',
9559 mods = 'LEADER',
11175 action = wez.action.ShowDebugOverlay,
11276 },
11377 {
114 key = 'u',
78 key = '.',
11579 mods = 'LEADER',
11680 action = wez.action.CharSelect {
11781 copy_on_select = true,
11882 copy_to = 'ClipboardAndPrimarySelection',
11983 },
12084 },
85 {
86 key = 'n',
87 mods = 'LEADER',
88 action = wez.action.PromptInputLine {
89 description = wez.format {
90 { Attribute = { Intensity = 'Bold', }, },
91 { Foreground = { AnsiColor = 'Purple', }, },
92 { Text = 'New workspace:', },
93 },
94 action = wez.action_callback( function ( window, pane, line )
95 if line then
96 window:perform_action(
97 wez.action.SwitchToWorkspace { name = line, },
98 pane
99 )
100 end
101 end ),
102 },
103 },
121104 {
122105 key = 'c',
123106 mods = 'CTRL|SHIFT',
136119 {
137120 key = 'p',
138121 mods = 'LEADER',
139 action = wez.action.ActivateCommandPalette,
122 action = wez.action.ShowLauncherArgs {
123 title = '🔭 Launcher',
124 flags = 'FUZZY|DOMAINS|KEY_ASSIGNMENTS|COMMANDS',
125 },
140126 },
141127 {
142 key = 'c',
143 mods = 'LEADER',
144 action = wez.action.SwitchToWorkspace { name = 'code', },
145 },
146 {
147 key = 'k',
148 mods = 'LEADER',
149 action = wez.action.SwitchToWorkspace { name = 'dorkfiles editing', },
150 },
151 {
152 key = 'd',
153 mods = 'LEADER',
154 action = wez.action.SwitchToWorkspace { name = 'default', },
155 },
156 {
157 key = 'r',
128 key = 'Tab',
158129 mods = 'LEADER',
159130 action = wez.action.ShowLauncherArgs {
160131 flags = 'FUZZY|WORKSPACES',
164135 key = 'd',
165136 mods = 'LEADER',
166137 action = wez.action.ShowLauncherArgs {
138 title = '󰮫 Menu',
167139 flags = 'FUZZY|LAUNCH_MENU_ITEMS',
168140 },
169 }, {
141 },
142 {
170143 key = '/',
171144 mods = 'LEADER',
172145 action = wez.action.Search 'CurrentSelectionOrEmptyString',

wezterm/bugabinga/launch.lua

Modified

+1 / −1 text lines

2929 },
3030 {
3131 label = 'Weather',
32 args = { 'wthrr' },
32 args = { 'nu', '-c', 'loop {clear; wthrr --forecast today; sleep 15sec}', },
3333 cwd = wez.home_dir,
3434 },
3535 {

wezterm/bugabinga/mouse_binds.lua

Added
new file mode 100644

+12 / −0 text lines

1local wez = require 'wezterm'
2
3local bindings = {
4 {
5 event = { Down = { streak = 3, button = 'Left', }, },
6 action = wez.action.SelectTextAtMouseCursor 'SemanticZone',
7 mods = 'NONE',
8 },
9}
10return function ( cfg )
11 cfg.mouse_bindings = bindings
12end

wezterm/wezterm.lua

Modified

+1 / −0 text lines

88require 'bugabinga.status' ( cfg )
99require 'bugabinga.theme' ( cfg )
1010require 'bugabinga.key_binds' ( cfg )
11require 'bugabinga.mouse_binds' ( cfg )
1112require 'bugabinga.hosts' ( cfg )
1213require 'bugabinga.launch' ( cfg )
1314require 'bugabinga.neovim_zen_mode'