dotfiles
bugabingas dorkfiles
owned by bugabinga
Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
d5d4565b72a09fbc93dcd2b964a8263a04b7ba6c
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (11)
neovim/.lsp.settings.lua
Modified4 - diagnostics = {
globals = {
'vim',
'prequire' } },
5 4 runtime = {
version =
'LuaJIT' },
5 + diagnostics = {
globals = {
'vim',
'prequire' } },
7 + checkThridParties =
false,
9 + '${3rd}/luv/library',
10 + unpack( vim.api.nvim_get_runtime_file(
'',
true ) ),
neovim/lua/bugabinga/options/behaviour.lua
Modified58 58 vim.opt.shell
= 'nu' 59 -vim.opt.shellcmdflag
= '--commands' 60 -vim.opt.shellpipe
= 'out+err>| save %s' 61 -vim.opt.shellredir
= '| save %s' 62 -vim.opt.shellquote
= '' 59 +vim.opt.shellcmdflag
= '--stdin --no-newline --commands' 60 +vim.opt.shellredir
= 'out+err> %s' 61 +vim.opt.shellpipe
= '| complete | update stderr { ansi strip } | tee { get stderr | save --force --raw %s} | into record' 62 +vim.opt.shelltemp
= false 63 63 vim.opt.shellxquote
= '' 64 +vim.opt.shellxescape
= '' 65 +vim.opt.shellquote
= '' 65 67 require 'bugabinga.health'.add_dependency
nushell/gen-aliases.nu
Modified33 34 aka edit nvim
'--clean' 34 35 aka ed nvim
'--clean' 35 36 aka vi nvim
'--clean' topgrade/topgrade.linux.toml
Modified 3 -disable = [
"restarts",
"vim"]
23 10 self_update =
false 27 -repos = [
"/home/oli/Workspace/*",
"/home/oli/Source/*"]
13 +repos = [
"/home/oli/Source/*",
"/home/oli/Notes"]
14 +arguments =
"--ff --rebase" 29 15 max_concurrency =
12 31 16 pull_predefined =
false 38 -"00 - Create BTRFS snapshot" =
"echo TODO" 44 -"00 - Refresh Dotfiles" =
"java ~/Workspace/dotfiles/bootstripper.java ~/Workspace/dotfiles" 47 -"01 - Install Cargo Tools" =
"cd ~/Workspace/dotfiles/tools ; java ~/Workspace/dotfiles/tools/install.java" wezterm/bugabinga/code_font.lua
Modified 2 2 local wez
= require 'wezterm' 6 + local selected
= 'JetBrains Mono' 6 7 local font_names
= {}
7 - local nerdfonts
= io.
open( wez.config_dir
.. '/bugabinga/code_fonts',
'r' )
9 - for font_name
in nerdfonts:lines()
do 10 - if not font_name:match
'^#.*' then 11 - table.
insert( font_names, font_name )
9 + local total_weight
= 1 10 + local code_fonts
= io.
open( wez.config_dir
.. '/bugabinga/code_fonts.csv',
'r' )
13 + for line
in code_fonts:lines()
do 14 + local weight, font_name
= line:match
'^%s*(%d*)%s*,%s*(.*)%s*$' 15 + table.
insert( font_names, font_name )
16 + table.
insert( weights,
tonumber( weight ) )
17 + total_weight
= total_weight
+ weight
21 + local random_weight
= math.
random( total_weight )
23 + for idx, weight
in ipairs( weights )
do 24 + cursor
= cursor
+ weight
25 + if cursor
>= random_weight
then 26 + selected
= font_names[idx]
14 - local random_font
= font_names[
math.
random(
#font_names )]
15 - return wez.font( random_font )
17 - return wez.font
'JetBrains Mono' 32 + return wez.font( selected )
wezterm/bugabinga/code_fonts.csv
Addednew file mode 100644 2 + 1,
Anonymous Pro Minus 3 + 1,
Aurulent Sans Mono 6 + 1,
BigBlue TerminalPlus 7 + 1,
Bitstream Vera Sans Mono 9 + 1,
CMU Typewriter Text 16 + 1,
Courier Prime Code 26 + 1,
Fantasque Sans Mono 29 + 1,
Fixedsys Excelsior 3.01 46 + 1,
JetBrains Mono NL 48 + 1,
Latin Modern Mono Light 52 + 1,
Linux Libertine Mono 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 70 + 1,
MonteCarlo Fixed 12 71 + 1,
NanumGothic_Coding 74 + 1,
Office Code Pro D 78 + 1,
PixelCarnageMonoTT 93 + 1,
Share-TechMonoTrue 97 + 1,
Symbols Nerd Font 98 + 1,
Symbols Nerd Font Mono 102 + 1,
Verily Serif Mono 106 + 1,
iA Writer Mono V wezterm/bugabinga/hosts/NB-00718.lua
Modified 1 1 local code_font
= require 'bugabinga.code_font' 2 3 return function ( cfg )
3 - cfg.default_domain
= 'WSL:Fedora' 4 - cfg.default_mux_server_domain
= 'WSL:Fedora' 4 + cfg.font
= code_font.random();
6 + cfg.default_domain
= {
'WSL:Fedora', }
7 + cfg.default_mux_server_domain
= {
'WSL:Fedora', }
5 8 cfg.default_prog
= {
'powershell',
'-NoLogo', }
wezterm/bugabinga/key_binds.lua
Modified 7 7 local font_size_mode
= ' Change Font Size (=-+)' 8 8 local pane_mode
= ' Pane (hjklqr)' 9 9 local resize_pane_mode
= 'ﭕ Resize Pane (hjkl)' 10 -local navigate_forward_mode
= ' Navigate forward (bw)' 11 -local navigate_backward_mode
= ' Navigate backward (bw)' 13 11 local key_tables
= {
14 12 [resize_pane_mode] = {
21 19 {
key =
'Escape',
action =
'PopKeyTable', },
23 21 [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, },
28 26 {
key =
'Escape',
action =
'PopKeyTable', },
32 30 {
key =
'j',
action = wez.action.ActivatePaneDirection
'Down', },
33 31 {
key =
'k',
action = wez.action.ActivatePaneDirection
'Up', },
34 32 {
key =
'l',
action = wez.action.ActivatePaneDirection
'Right', },
33 + {
key =
'a',
action = wez.action.PaneSelect, },
36 35 {
key =
'v',
action = wez.action.SplitHorizontal {
domain =
'CurrentPaneDomain', }, },
37 36 {
key =
's',
action = wez.action.SplitVertical {
domain =
'CurrentPaneDomain', }, },
43 42 {
key =
'Escape',
action =
'PopKeyTable', },
45 - [navigate_forward_mode]
= {
48 - action = wez.action.ActivateTabRelative(
1 ),
52 - action = wez.action.SwitchWorkspaceRelative(
1 ),
55 - [navigate_backward_mode]
= {
58 - action = wez.action.ActivateTabRelative(
-1 ),
62 - action = wez.action.SwitchWorkspaceRelative(
-1 ),
71 - action = wez.action.ActivateKeyTable {
name = navigate_forward_mode, },
76 - action = wez.action.ActivateKeyTable {
name = navigate_backward_mode, },
86 55 action
= wez.action.ActivateKeyTable {
name = pane_mode, },
91 - action = wez.action.PaneSelect,
111 75 action
= wez.action.ShowDebugOverlay,
116 80 action = wez.action.CharSelect {
117 81 copy_on_select =
true,
118 82 copy_to =
'ClipboardAndPrimarySelection',
88 + action = wez.action.PromptInputLine {
89 + description = wez.format {
90 + {
Attribute = {
Intensity =
'Bold', }, },
91 + {
Foreground = {
AnsiColor =
'Purple', }, },
92 + {
Text =
'New workspace:', },
94 + action = wez.action_callback(
function ( window, pane, line )
96 + window:perform_action(
97 + wez.action.SwitchToWorkspace {
name = line, },
123 106 mods =
'CTRL|SHIFT',
139 - action = wez.action.ActivateCommandPalette,
122 + action = wez.action.ShowLauncherArgs {
123 + title =
'🔭 Launcher',
124 + flags =
'FUZZY|DOMAINS|KEY_ASSIGNMENTS|COMMANDS',
144 - action = wez.action.SwitchToWorkspace {
name =
'code', },
149 - action = wez.action.SwitchToWorkspace {
name =
'dorkfiles editing', },
154 - action = wez.action.SwitchToWorkspace {
name =
'default', },
159 130 action = wez.action.ShowLauncherArgs {
160 131 flags =
'FUZZY|WORKSPACES',
166 137 action
= wez.action.ShowLauncherArgs {
167 139 flags =
'FUZZY|LAUNCH_MENU_ITEMS',
172 145 action = wez.action.Search
'CurrentSelectionOrEmptyString',
wezterm/bugabinga/launch.lua
Modified 32 + args = {
'nu',
'-c',
'loop {clear; wthrr --forecast today; sleep 15sec}', },
33 33 cwd = wez.home_dir,
wezterm/bugabinga/mouse_binds.lua
Addednew file mode 100644 1 +local wez
= require 'wezterm' 5 + event = {
Down = {
streak =
3,
button =
'Left', }, },
6 + action = wez.action.SelectTextAtMouseCursor
'SemanticZone',
10 +return function ( cfg )
11 + cfg.mouse_bindings
= bindings
wezterm/wezterm.lua
Modified 8 8 require 'bugabinga.status' ( cfg )
9 9 require 'bugabinga.theme' ( cfg )
10 10 require 'bugabinga.key_binds' ( cfg )
11 +require 'bugabinga.mouse_binds' ( cfg )
11 12 require 'bugabinga.hosts' ( cfg )
12 13 require 'bugabinga.launch' ( cfg )
13 14 require 'bugabinga.neovim_zen_mode'