repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

d87fe4b52b239f933dd150af087de8b438ab3ea7

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

neovim/lazy-lock.json

Modified
2 2 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 - "attempt.nvim": { "branch": "main", "commit": "e6c5f29db1628f0b11cc47bb0e78b43bc1cf8f08" },
4 3 "better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" },
5 4 "cmp-omni": { "branch": "main", "commit": "9436e6cdd7c5dfa24a99a60d9280b24dbdea3649" },
6 5 "dressing.nvim": { "branch": "master", "commit": "e6eff7a5a950a853c3903d906dbcea03f778db5f" },
7 - "gitsigns.nvim": { "branch": "main", "commit": "5a04466685008f29c71fa5ec25d421deb1c83fea" },
6 + "gitsigns.nvim": { "branch": "main", "commit": "adcf2c7f2f495f5df148683764bf7cba6a70f34c" },
8 7 "glow.nvim": { "branch": "main", "commit": "cf2177a514859fa3c55837b46de91d93b24cf488" },
9 8 "heirline.nvim": { "branch": "master", "commit": "76136ccd93ed608e8109762f032cf1118981ebbd" },
10 9 "hlargs.nvim": { "branch": "main", "commit": "cfc9beab4e176a13311efe03e38e6b6fed5df4f6" },
13 12 "lazy.nvim": { "branch": "main", "commit": "14d76aac4bd3ff07c1fca074c210f28f766a931e" },
14 13 "lush.nvim": { "branch": "main", "commit": "b10ef2bfff0647e701b691019ade3edd5e44eb50" },
15 14 "neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" },
16 - "noice.nvim": { "branch": "main", "commit": "6c87c1d11c38180fb72bf8f45518a0a3e081afc1" },
15 + "noice.nvim": { "branch": "main", "commit": "74f9155f2ff2f7172d5709c8df9357ba69b834db" },
17 16 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
18 17 "nui.nvim": { "branch": "main", "commit": "7a524120a7a70761b5a65b602fd235a65cb005aa" },
19 18 "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" },
25 24 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
26 25 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
27 26 "nvim-surround": { "branch": "main", "commit": "211eaad7c6d01ef4ac02cba9052b3082ec232101" },
28 - "nvim-treesitter": { "branch": "master", "commit": "12d970f8aea7eed4d98727b3234ab098ddde3576" },
27 + "nvim-treesitter": { "branch": "master", "commit": "461d841771c7a576e5fd33d1320934a4a0f1dbc9" },
29 28 "nvim-treesitter-textobjects": { "branch": "master", "commit": "52f1f3280d9092bfaee5c45be5962fabee3d9654" },
30 29 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
31 30 "nvim-ts-context-commentstring": { "branch": "main", "commit": "7f625207f225eea97ef7a6abe7611e556c396d2f" },
32 - "nvim-web-devicons": { "branch": "master", "commit": "9ab9b0b894b2388a9dbcdee5f00ce72e25d85bf9" },
31 + "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" },
33 32 "oil.nvim": { "branch": "master", "commit": "0138a2e0f9baacd98d5531ebb5078fafc5114fae" },
34 33 "playground": { "branch": "master", "commit": "2b81a018a49f8e476341dfcb228b7b808baba68b" },
35 34 "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },

wezterm/bugabinga/workspaces.lua

Modified
1 1 local wez = require 'wezterm'
2 2 local mux = wez.mux
3 +local win32 = wez.target_triple:find'windows'
5 5 local get_my_code_workspace = function()
6 - if wez.target_triple:find('windows') then
6 + if win32 then
7 7 return 'W:'
8 8 else
9 9 return os.getenv 'HOME' .. '/Workspace'
13 13 local WORKSPACE = get_my_code_workspace()
15 -wez.on('gui-attached', function()
16 - -- maximize all displayed windows on startup
15 +-- maximize all displayed windows
16 +local maximize_window = function()
17 17 local workspace = mux.get_active_workspace()
18 18 for _, window in ipairs(mux.all_windows()) do
19 19 if window:get_workspace() == workspace then
20 20 window:gui_window():maximize()
23 -end)
23 +end
25 --- NOTE(oli): errors in here do not show up as configuration errors
26 --- check the log file in the wezterm mux server runtime directory
27 --- e.g. /run/user/1000/wezterm/log
28 -wez.on('mux-startup', function()
25 +local setup_workspaces = function()
29 26 local dork_ws = 'dorkfiles editing'
30 27 local dork_cwd = WORKSPACE .. '/dotfiles'
31 28 local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws }
51 48 default_top_pane:activate()
53 50 mux.set_active_workspace(default_ws)
51 +end
53 +wez.on('gui-attached', function()
54 + maximize_window()
55 + -- mux server seems very slow on windows...
56 + if win32 then setup_workspaces() end
57 +end)
59 +-- NOTE(oli): errors in here do not show up as configuration errors
60 +-- check the log file in the wezterm mux server runtime directory
61 +-- e.g. /run/user/1000/wezterm/log
62 +wez.on('mux-startup', function()
63 + setup_workspaces()
54 64 end)

wezterm/wezterm.lua

Modified
3 3 local wez = require 'wezterm'
4 4 local nugu = require 'bugabinga.nugu'
6 6 local key_binds = require 'bugabinga.key_binds'
7 7 local dark_mode = require 'bugabinga.dark_mode'
8 -local workspaces = require 'bugabinga.workspaces'
8 +-- TODO mux server seems slow.
9 +-- local workspaces = require 'bugabinga.workspaces'
9 10 local status = require 'bugabinga.status'
11 12 local hostname = wez.hostname()
13 14 local font = wez.font 'IBM Plex Mono'
15 16 if hostname == 'x230' then
17 + font_size = 11
16 18 enable_wayland = true
17 - window_decorations = 'RESIZE'
18 19 elseif hostname == 'pop-os' then
19 20 font_size = 16
20 21 elseif hostname == 'PC-00625' then
21 - font_size = 16
22 - font = wez.font 'Cascadia Code'
23 - window_decorations = 'TITLE|RESIZE'
22 + font_size = 12
27 25 return {
28 26 -- logs key presses
29 27 --debug_key_events = true,
34 32 warn_about_missing_glyphs = false,
35 33 color_scheme = dark_mode,
36 34 color_schemes = nugu,
37 - window_background_opacity = 1.0,
38 - -- nightly
39 - -- win32_system_backdrop = 'Acrylic',
40 - --default_cwd = wez.home_dir,
35 + default_cwd = wez.home_dir,
41 36 default_prog = { 'nu' },
42 37 default_cursor_style = 'SteadyBlock',
43 38 cursor_blink_rate = 0,
44 - cursor_thickness = '0.6cell',
39 + cursor_thickness = '1cell',
45 40 window_decorations = window_decorations,
46 41 enable_tab_bar = true,
47 42 -- if this is hidden, we cannot see the right status area
51 46 show_update_window = false,
52 47 audible_bell = 'Disabled',
53 48 visual_bell = {
54 - fade_in_duration_ms = 75,
55 - fade_out_duration_ms = 75,
49 + fade_in_duration_ms = 69,
50 + fade_out_duration_ms = 69,
56 51 target = 'CursorColor',
58 53 inactive_pane_hsb = {
59 - saturation = 0.33,
60 - brightness = 0.66,
54 + saturation = 0.42,
55 + brightness = 0.69,
62 - tab_max_width = 24,
57 + tab_max_width = 42,
63 58 enable_wayland = enable_wayland,
64 59 window_padding = {
65 - left = 12,
66 - right = 8,
67 - top = 12,
68 - bottom = 8,
60 + left = 2,
61 + right = 2,
62 + top = 2,
63 + bottom = 0,
70 65 disable_default_key_bindings = true,
71 66 leader = key_binds.leader,
72 67 keys = key_binds.keys,
73 68 key_tables = key_binds.key_tables,
74 - unix_domains = {
75 - {
76 - name = 'unix',
77 - } },
78 - default_domain = 'unix',
79 - default_gui_startup_args = { 'connect', 'unix' },
80 - -- TODO(oli): create different launchers per OS
81 - launch_menu = {
82 - {
83 - label = 'Bash',
84 - args = {'bash', '-l'},
85 - }
86 - }