repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

eec45f4d28f9255a87813f96c15fa18b411d753c

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (23)

neovim/colors/nugu.lua

Modified
7 7 vim.g.colors_name = 'nugu'
9 9 -- this is necessary to toggle light/dark during runtime
10 -package.loaded['bugabinga.nugu'] = nil
11 -package.loaded['bugabinga.nugu.palette'] = nil
12 10 package.loaded['bugabinga.nugu.palette_dark'] = nil
13 11 package.loaded['bugabinga.nugu.palette_light'] = nil
12 +package.loaded['bugabinga.nugu.palette'] = nil
13 +package.loaded['bugabinga.nugu'] = nil
15 15 require 'bugabinga.nugu' ()

neovim/init.lua

Modified
24 24 require 'bugabinga.save_actions'
25 25 require 'bugabinga.sessions'
26 26 require 'bugabinga.lazy'
27 -require 'bugabinga.terminal'
28 27 require 'bugabinga.diagnostic'
29 28 require 'bugabinga.lsp'

neovim/lazy-lock.json

Modified
3 3 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
4 4 "CopilotChat.nvim": { "branch": "canary", "commit": "9333944fde3c65868818e245c73aa29eef826e9b" },
5 5 "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
6 + "better-escape.nvim": { "branch": "master", "commit": "f45b52f8f87792e8659526f23261ffe278a54be5" },
6 7 "cmd-parser.nvim": { "branch": "master", "commit": "6363b8bddef968c3ec51a38172af44f675f01ef3" },
7 8 "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
8 9 "cmp-dotenv": { "branch": "main", "commit": "4dd53aab60982f1f75848aec5e6214986263325e" },
16 17 "decisive.nvim": { "branch": "main", "commit": "a7251adebccbc9c899cff39a524b20d06e2b78b5" },
17 18 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
18 19 "dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
20 + "eagle.nvim": { "branch": "main", "commit": "f590404f510be11ef2cf7c68e135441bfa48c9a8" },
19 21 "flash.nvim": { "branch": "main", "commit": "ec0bf2842189f65f60fd40bf3557cac1029cc932" },
20 22 "heirline.nvim": { "branch": "master", "commit": "7a79753c1a42c3f52e89a6c42429e7f871e560cd" },
21 23 "in-and-out.nvim": { "branch": "master", "commit": "ab24cafadc3418dffb0c7e9b0621cff60b9ac551" },
22 - "incline.nvim": { "branch": "main", "commit": "16fc9c073e3ea4175b66ad94375df6d73fc114c0" },
24 + "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" },
23 25 "iswap.nvim": { "branch": "master", "commit": "e02cc91f2a8feb5c5a595767d208c54b6e3258ec" },
24 - "lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
26 + "ivy.nvim": { "branch": "0.x", "commit": "cfa7e29ae4d955508d4f7f2ef08cc0c51ee745ed" },
27 + "layers.nvim": { "branch": "main", "commit": "67666f59a2dbe36a469766be6a4c484ae98c4895" },
28 + "lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" },
25 29 "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
26 30 "lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
27 31 "markdown-table-mode.nvim": { "branch": "main", "commit": "f830cd15a97deb3acc53d9f6607bc609f7f32e49" },
29 33 "mini.bracketed": { "branch": "main", "commit": "833d66df6e0588222312a963780c6ec42ed7437d" },
30 34 "mini.bufremove": { "branch": "main", "commit": "1ee294a97e091d3cf967974df622c0d887890dc2" },
31 35 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
36 + "neodim": { "branch": "master", "commit": "d87470828690342d0139efc2fd56ea0b29e9ecb3" },
37 + "no-neck-pain.nvim": { "branch": "main", "commit": "c0d8061f18bccceff0991e096c8f864a720e1ebf" },
32 38 "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
33 39 "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" },
34 40 "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
41 + "nvim-dap": { "branch": "master", "commit": "7ff6936010b7222fea2caea0f67ed77f1b7c60dd" },
35 42 "nvim-docs-view": { "branch": "master", "commit": "365593534e0acd762bfddce6e8313315ffa4fa36" },
43 + "nvim-dr-lsp": { "branch": "main", "commit": "bbed27eb6eba20242d59fc6ac11852730c9af632" },
36 44 "nvim-genghis": { "branch": "main", "commit": "ca258b1e466d131e17eacf0c632abe932bce20ab" },
37 45 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
38 46 "nvim-highlight-colors": { "branch": "main", "commit": "a411550ef85cae467b889ba7d1a96bd78332d90e" },
39 47 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
40 48 "nvim-lint": { "branch": "master", "commit": "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" },
49 + "nvim-lsp-endhints": { "branch": "main", "commit": "391ef40521b631a8a2fb7aef78db6967ead6b39d" },
41 50 "nvim-luapad": { "branch": "master", "commit": "176686eb616a5ada5dfc748f2b5109194bbe8a71" },
42 51 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
43 52 "nvim-rulebook": { "branch": "main", "commit": "bc5e3874a9870709ec91152f9efce6dad49ca862" },
49 58 "nvim-web-devicons": { "branch": "master", "commit": "6b53401918a9033a41159d012160c5fb5eb249ae" },
50 59 "oil.nvim": { "branch": "master", "commit": "1eb9fb35a4613518f79790117ed82c367a0b4a22" },
51 60 "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
61 + "precognition.nvim": { "branch": "main", "commit": "8a81c310b4e76b4884fc5350a5741cf683c645c7" },
52 62 "range-highlight.nvim": { "branch": "master", "commit": "8b5e8ccb3460b2c3675f4639b9f54e64eaab36d9" },
53 63 "refjump.nvim": { "branch": "main", "commit": "a78b585cff29505f7558f3a596bca567474cd663" },
64 + "scratch.nvim": { "branch": "main", "commit": "3e3d2ad0d7f565bc794d9d3ad40e92509802ecad" },
54 65 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
55 66 "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
67 + "surround-ui.nvim": { "branch": "main", "commit": "40abcba017a943d6d3dd304e523f34a43d80405b" },
56 68 "symbol-usage.nvim": { "branch": "main", "commit": "0f9b3da014b7e41559b643e7461fcabb2a7dc83a" },
57 69 "telescope-frecency.nvim": { "branch": "master", "commit": "f67baca08423a6fd00167801a54db38e0b878063" },
58 70 "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },

neovim/lua/bugabinga/nugu/init.lua

Modified
24 24 local ui_important_local = palette.ui_important_local
26 26 vim.g.terminal_color_0 = ui_backdrop -- black
27 -vim.g.terminal_color_1 = content_accent -- maroon
28 -vim.g.terminal_color_2 = info -- green
29 -vim.g.terminal_color_3 = ui_focus -- olive
27 +vim.g.terminal_color_1 = error -- maroon
28 +vim.g.terminal_color_2 = content_focus -- green
29 +vim.g.terminal_color_3 = warning -- olive
30 30 vim.g.terminal_color_4 = content_important_local -- navy
31 31 vim.g.terminal_color_5 = content_important_global -- purple
32 -vim.g.terminal_color_6 = ui_focus -- teal
33 -vim.g.terminal_color_7 = content_normal -- silver
32 +vim.g.terminal_color_6 = info -- teal
33 +vim.g.terminal_color_7 = content_minor -- silver
35 -vim.g.terminal_color_8 = ui_minor -- grey
35 +vim.g.terminal_color_8 = content_unfocus -- grey
36 36 vim.g.terminal_color_9 = error -- red
37 -vim.g.terminal_color_10 = info -- lime
38 -vim.g.terminal_color_11 = content_focus -- yellow
39 -vim.g.terminal_color_12 = ui_important_local -- blue
40 -vim.g.terminal_color_13 = ui_accent -- fuchsia
41 -vim.g.terminal_color_14 = ui_important_global -- aqua
42 -vim.g.terminal_color_15 = ui_normal -- white
37 +vim.g.terminal_color_10 = content_accent -- lime
38 +vim.g.terminal_color_11 = warning -- yellow
39 +vim.g.terminal_color_12 = info -- blue
40 +vim.g.terminal_color_13 = debug -- fuchsia
41 +vim.g.terminal_color_14 = content_focus -- aqua
42 +vim.g.terminal_color_15 = content_normal -- white
44 44 local set_group_properties = function ( self, properties )
45 45 vim.validate {
122 122 _.Debug { fg = ui_normal, bg = debug, bold = true }
124 124 _.Normal { fg = content_normal, bg = content_backdrop }
125 +_.NormalUi { fg = ui_normal, bg = ui_backdrop }
125 126 _.Comment { fg = content_important_global }
126 -_.NotifyBackground { bg = ui_backdrop }
127 +_.NotifyBackground = _.NormalUi
127 128 _.LineNr { fg = ui_minor, bg = content_backdrop }
128 129 _.CursorLineNr { fg = ui_focus, bg = ui_backdrop }
129 130 _.Search { bg = content_unfocus }
130 131 _.IncSearch { fg = content_focus }
131 132 _.CurSearch { fg = content_important_global, bg = content_unfocus }
132 -_.NormalFloat = _.Normal
133 +_.NormalFloat = _.NormalUi
133 134 _.FloatBorder { fg = ui_accent, bg = _.Normal.bg }
134 135 _.ColorColumn { fg = ui_important_global, bg = _.Normal.bg }
135 136 _.Conceal { fg = content_focus, bg = _.Normal.bg }
136 -_.Cursor { bg = ui_accent }
137 +_.Cursor { fg = content_backdrop, bg = ui_accent }
137 138 -- _.lCursor = _.Cursor
138 139 -- _.CursorIM = _.Cursor
139 140 _.Directory { fg = _.Normal.fg }
145 146 -- _.TermCursor = _.Cursor
146 147 -- _.TermCursorNC = _.Cursor
147 148 _.ErrorMsg { fg = error }
148 -_.VertSplit { fg = ui_important_global, bg = _.LineNr.bg }
149 +_.VertSplit { fg = ui_important_global }
149 150 _.Folded = _.Conceal
150 151 _.FoldColumn = _.LineNr
151 152 _.SignColumn = _.LineNr
152 153 _.ModeMsg { bold = true }
153 -_.MsgArea = _.StatusLine
154 -_.MsgSeparator = _.Debug
155 -_.MoreMsg = _.Normal
154 +_.MsgArea = _.NormalUi
155 +_.MsgSeparator = _.NormalUi
156 +_.MoreMsg = _.NormalUi
156 157 _.NonText { fg = content_unfocus }
157 158 _.Whitespace = _.NonText
158 -_.NormalNC = _.Normal
159 +_.NormalNC { fg = content_minor, bg = _.Normal.bg }
159 160 _.Pmenu = _.NormalFloat
160 161 _.PmenuSel { fg = ui_important_local, sp = ui_important_local, bg = _.Pmenu.bg, bold = true, underline = true }
161 162 _.PmenuSbar { bg = ui_unfocus }
167 168 _.SpellCap = _.SpellBad
168 169 _.SpellLocal = _.SpellBad
169 170 _.SpellRare = _.SpellBad
170 -_.StatusLine { fg = ui_focus, bg = ui_unfocus }
171 -_.StatusLineNC { fg = ui_normal, bg = ui_unfocus }
171 +_.StatusLine = _.NormalUi
172 +_.StatusLineNC { fg = ui_minor, bg = ui_backdrop }
172 173 _.Winbar { fg = ui_focus, bg = _.StatusLine.bg }
173 -_.WinbarNC { fg = ui_minor, bg = _.LineNr.bg }
174 +_.WinbarNC { fg = content_minor, bg = _.Normal.bg }
174 175 _.Title { fg = content_important_global, sp = content_important_global, bold = true, underline = true }
175 176 _.TabLine = _.StatusLine
176 177 _.TabLineFill = _.StatusLine

neovim/lua/bugabinga/nugu/palette_dark.lua

Modified
1 +return {
2 + debug = '#ff00ff',
3 + error = '#bd1c54',
4 + info = '#7d9cc5',
5 + warning = '#c79e6e',
2 - return {
3 - debug = '#ff00ff',
4 - error = '#bd1c54',
5 - info = '#7d9cc5',
6 - warning = '#c79e6e',
7 + content_normal = '#fafafa',
8 + content_backdrop = '#020202',
9 + content_accent = '#5d005d',
10 + content_minor = '#757575',
11 + content_focus = '#2eb3d1',
12 + content_unfocus = '#016a85',
13 + content_important_global = '#5e45c5',
14 + content_important_local = '#5e45c5',
8 - content_normal = '#fafafa',
9 - content_backdrop = '#020202',
10 - content_accent = '#5d005d',
11 - content_minor = '#757575',
12 - content_focus = '#2eb3d1',
13 - content_unfocus = '#016a85',
14 - content_important_global = '#5e45c5',
15 - content_important_local = '#5e45c5',
17 - ui_normal = '#fcfcfc',
18 - ui_backdrop = '#000000',
19 - ui_accent = '#3a003a',
20 - ui_minor = '#707070',
21 - ui_focus = '#2dacc8',
22 - ui_unfocus = '#1d5a69',
23 - ui_important_global = '#593fc2',
24 - ui_important_local = '#593fc2',
25 - }
26 -
16 + ui_normal = '#fcfcfc',
17 + ui_backdrop = '#000000',
18 + ui_accent = '#3a003a',
19 + ui_minor = '#707070',
20 + ui_focus = '#2dacc8',
21 + ui_unfocus = '#1d5a69',
22 + ui_important_global = '#593fc2',
23 + ui_important_local = '#593fc2',

neovim/lua/bugabinga/nugu/palette_light.lua

Modified
1 +return {
2 + debug = '#ff00ff',
3 + error = '#ce1e5c',
4 + info = '#8ba7cb',
5 + warning = '#cda77c',
2 - return {
3 - debug = '#ff00ff',
4 - error = '#ce1e5c',
5 - info = '#8ba7cb',
6 - warning = '#cda77c',
7 + content_normal = '#050505',
8 + content_backdrop = '#fdfdfd',
9 + content_accent = '#a300a3',
10 + content_minor = '#525252',
11 + content_focus = '#017b9a',
12 + content_unfocus = '#40b8d6',
13 + content_important_global = '#4a25a9',
14 + content_important_local = '#4a25a9',
8 - content_normal = '#050505',
9 - content_backdrop = '#fdfdfd',
10 - content_accent = '#a300a3',
11 - content_minor = '#525252',
12 - content_focus = '#017b9a',
13 - content_unfocus = '#40b8d6',
14 - content_important_global = '#4a25a9',
15 - content_important_local = '#4a25a9',
17 - ui_normal = '#030303',
18 - ui_backdrop = '#ffffff',
19 - ui_accent = '#c600c6',
20 - ui_minor = '#575757',
21 - ui_focus = '#0283a3',
22 - ui_unfocus = '#719ba5',
23 - ui_important_global = '#4e28b0',
24 - ui_important_local = '#4e28b0',
25 - }
26 -
16 + ui_normal = '#030303',
17 + ui_backdrop = '#ffffff',
18 + ui_accent = '#c600c6',
19 + ui_minor = '#575757',
20 + ui_focus = '#0283a3',
21 + ui_unfocus = '#719ba5',
22 + ui_important_global = '#4e28b0',
23 + ui_important_local = '#4e28b0',

neovim/lua/bugabinga/plugins/incubator.lua

Modified
135 135 -------------------------------------------------------------------------------
137 - 'rafcamlet/nvim-luapad',
137 + 'rafcamlet/nvim-luapad',
138 138 cmd = { 'Luapad', 'LuaRun' },
139 139 opts = {},
140 140 enabled = FUCK_STABILITY,

neovim/lua/bugabinga/plugins/treesj.lua

Modified
5 5 category = 'editing',
6 6 keys = '<leader>j',
7 7 command = function ()
8 - prequire 'treesj'.toggle { split = { recursive = true } }
8 + prequire 'treesj'.toggle { split = { recursive = false } }
9 9 end,

neovim/lua/bugabinga/terminal.lua

Deleted
deleted file mode 100644
1 -local map = require 'std.map'
2 -local auto = require 'std.auto'
4 -map.normal {
5 - description = 'Open terminal in a split',
6 - category = 'terminal',
7 - keys = '<F12>',
8 - command = function ()
9 - local cwd = vim.uv.cwd()
10 - ---@diagnostic disable-next-line: undefined-field
11 - local shell = vim.opt.shell:get()
12 - -- paths in term names seem to be relative to home
13 - local relative_cwd = vim.fn.fnamemodify( cwd, ':~' )
14 - local term_name = string.format( 'term://%s//%s', relative_cwd, shell )
15 - local buffers = vim.api.nvim_list_bufs()
16 - local existing_term = vim.iter( buffers ):map( function ( buffer_number )
17 - return { buffer_number, vim.api.nvim_buf_get_name( buffer_number ) }
18 - end ):filter( function ( buffer )
19 - return string.find( buffer[2], relative_cwd, 1, true )
20 - end ):next()
21 - if existing_term then
22 - term_name = existing_term[2]
23 - end
24 - local open_term_cmd = string.format( 'split %s', term_name )
25 - vim.cmd( open_term_cmd )
26 - end,
27 -}
29 -local terminal_settings = function ()
30 - map.terminal {
31 - description = 'Quit terminal mode via <esc>',
32 - category = 'terminal',
33 - keys = '<esc>',
34 - buffer = true,
35 - command = [[ <C-\><C-n> ]],
36 - }
38 - map.normal.terminal {
39 - description = 'Close.',
40 - category = 'terminal',
41 - keys = '<F12>',
42 - buffer = true,
43 - command = [[<cmd>close<cr>]],
44 - }
46 - vim.opt_local.spell = false
47 - vim.cmd.startinsert()
48 -end
50 -auto 'normalize_terminal_windows' {
51 - description = 'Make terminal windows behave more normally.',
52 - events = 'TermOpen',
53 - pattern = 'term://*',
54 - command = terminal_settings,
55 -}

neovim/lua/std/ignored.lua

Modified
22 22 'starter',
23 23 'svn',
24 24 'toggleterm',
25 + 'copilot-chat',
27 28 local buftypes = {

tools/gnome-settings.nu

Added
new file mode 100755
1 +#!/usr/bin/env nu
3 +def main [] {
4 + const background_settings = [
5 + ['key', 'value'];
6 + ['picture-uri', 'none']
7 + ['color-shading-type', 'solid']
8 + ['primary-color', '#131313']
9 + ['secondary-color', '#131313']
10 + ]
12 + $background_settings | each { | setting |
13 + run-external gsettings set 'org.gnome.desktop.background' $setting.key $setting.value
14 + }
16 + null

tools/packages.csv

Deleted
deleted file mode 100644
1 -name; bin; os_family; url
2 -graalvm; bin; linux; https://download.oracle.com/graalvm/23/latest/graalvm-jdk-23_linux-x64_bin.tar.gz
3 -cosmocc; bin; linux; https://cosmo.zip/pub/cosmocc/cosmocc.zip

tools/tools.csv

Modified
8 8 cargo-update;cargo-install-update
9 9 choose
10 10 czkawka_cli
11 +carl
12 +calendar-rs;calendar
11 13 du-dust; dust
12 14 dotenv-linter
13 15 dupimg

wezterm/bugabinga/code_font.lua

Modified
80 80 if code_fonts then
81 81 for line in code_fonts:lines() do
82 - print('csv line: ' , line)
83 82 local weight, font_name = line:match(csv_line_pattern)
84 83 if not weight or not font_name then
85 84 wez.log_error 'Could not parse code_fonts.csv. Borked?'

wezterm/bugabinga/code_fonts.csv

Modified
22 22 1,Dina ttf 10px
23 23 1,Droid Sans Mono
24 24 1,Edlo
25 -1,Envy Code R
25 +5,Envy Code R
26 26 1,Fantasque Sans Mono
27 27 1,Fira Code
28 28 1,Fira Mono
53 53 1,Luculent
54 54 1,Luxi Mono
55 55 1,M+ 1m
56 -1,M+ 1mn
57 -1,M+ 2m
56 +14,M+ 1mn
57 +14,M+ 2m
58 58 1,Martian Mono
59 59 1,Mensch
60 60 0,Meslo LG M DZ
67 67 1,MonoSpatial
68 68 1,Monoid
69 69 1,Monospace
70 -1,MonteCarlo Fixed 12
70 +0,MonteCarlo Fixed 12
71 71 1,NanumGothic_Coding
72 72 1,NotCourierSans
73 73 1,Office Code Pro
95 95 1,Source Code Pro
96 96 1,Sudo
97 97 1,Symbols Nerd Font
98 -1,Symbols Nerd Font Mono
98 +0,Symbols Nerd Font Mono
99 99 1,TeX Gyre Cursor
100 100 1,Terminus
101 101 1,Ubuntu Mono

wezterm/bugabinga/hosts/fedora.lua

Modified
2 2 local code_font = require 'bugabinga.code_font'
4 4 return function ( cfg )
5 5 cfg.font = code_font.random();
7 6 cfg.window_decorations = 'NONE'
9 - cfg.background = {
10 - {
11 - source = {
12 - File = '/home/oli/Pictures/Bilder/2012/05/20/Waldshooting_vonni_tini_2012 (12).jpg',
13 - },
14 - hsb = {
15 - hue = 1.0,
16 - saturation = 0.0,
17 - brightness = 0.004,
18 - },
19 - attachment = { Parallax = 0.006, },
20 - vertical_align = 'Middle',
21 - horizontal_align = 'Center',
22 - },
23 - {
24 - source = {
25 - Gradient = {
26 - colors = { 'purple', '#131313', },
27 - orientation = {
28 - Radial = {
29 - cx = 0.5,
30 - cy = 0.5,
31 - radius = 1.25,
32 - },
33 - },
34 - },
35 - },
36 - opacity = 0.1,
37 - width = '100%',
38 - height = '100%',
39 - },
40 - }

wezterm/bugabinga/neovim_zen_mode.lua

Modified
1 -local wez = require 'wezterm'
1 +return function (_)
2 + local wez = require 'wezterm'
3 -wez.on( 'user-var-changed', function ( window, pane, name, value )
4 - local overrides = window:get_config_overrides() or {}
5 - if name == 'ZEN_MODE' then
6 - local incremental = value:find '+'
7 - local number_value = tonumber( value )
8 - if incremental ~= nil then
9 - while number_value > 0 do
10 - window:perform_action( wez.action.IncreaseFontSize, pane )
11 - number_value = number_value - 1
4 + wez.on( 'user-var-changed', function ( window, pane, name, value )
5 + local overrides = window:get_config_overrides() or {}
6 + if name == 'ZEN_MODE' then
7 + local incremental = value:find '+'
8 + local number_value = tonumber( value )
9 + if incremental ~= nil then
10 + while number_value > 0 do
11 + window:perform_action( wez.action.IncreaseFontSize, pane )
12 + number_value = number_value - 1
13 + end
14 + overrides.enable_tab_bar = false
15 + elseif number_value < 0 then
16 + window:perform_action( wez.action.ResetFontSize, pane )
17 + overrides.font_size = nil
18 + overrides.enable_tab_bar = true
19 + else
20 + overrides.font_size = number_value
21 + overrides.enable_tab_bar = false
13 - overrides.enable_tab_bar = false
14 - elseif number_value < 0 then
15 - window:perform_action( wez.action.ResetFontSize, pane )
16 - overrides.font_size = nil
17 - overrides.enable_tab_bar = true
18 - else
19 - overrides.font_size = number_value
20 - overrides.enable_tab_bar = false
22 - end
23 - window:set_config_overrides( overrides )
24 -end )
24 + window:set_config_overrides( overrides )
25 + end )
26 +end

wezterm/bugabinga/nugu.lua

Deleted
deleted file mode 100644
1 -return {
2 - ['nugu-dark'] = {
3 - -- The default text color
4 - foreground = '#fcfcfc',
5 - -- The default background color
6 - background = '#000000',
8 - -- Overrides the cell background color when the current cell is occupied by the
9 - -- cursor and the cursor style is set to Block
10 - cursor_bg = '#3a003a',
11 - -- Overrides the text color when the current cell is occupied by the cursor
12 - cursor_fg = '#000000',
13 - -- Specifies the border color of the cursor when the cursor style is set to Block,
14 - -- or the color of the vertical or horizontal bar when the cursor style is set to
15 - -- Bar or Underline.
16 - cursor_border = '#3a003a',
18 - selection_fg = '#000000',
19 - selection_bg = '#2dacc8',
21 - -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
22 - scrollbar_thumb = '#1d5a69',
24 - -- The color of the split lines between panes
25 - split = '#1d5a69',
27 - ansi = {
28 - '#020202', -- black
29 - '#bd1c54', -- red
30 - '#7d9cc5', -- green
31 - '#c79e6e', -- yellow
32 - '#5e45c5', -- blue
33 - '#5d005d', -- magenta
34 - '#2eb3d1', -- cyan
35 - '#fafafa', -- white
36 - },
38 - brights = {
39 - '#050505',
40 - '#b6285a',
41 - '#8aa0bd',
42 - '#bf9f7b',
43 - '#6955ba',
44 - '#5d055d',
45 - '#3fadc5',
46 - '#fcfcfc',
47 - },
49 - compose_cursor = '#2dacc8',
50 - visual_bell = '#593fc2',
51 - },
52 - ['nugu-light'] = {
53 - -- The default text color
54 - foreground = '#030303',
55 - -- The default background color
56 - background = '#ffffff',
58 - -- Overrides the cell background color when the current cell is occupied by the
59 - -- cursor and the cursor style is set to Block
60 - cursor_bg = '#c600c6',
61 - -- Overrides the text color when the current cell is occupied by the cursor
62 - cursor_fg = '#ffffff',
63 - -- Specifies the border color of the cursor when the cursor style is set to Block,
64 - -- or the color of the vertical or horizontal bar when the cursor style is set to
65 - -- Bar or Underline.
66 - cursor_border = '#c600c6',
68 - selection_fg = '#ffffff',
69 - selection_bg = '#0283a3',
71 - -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
72 - scrollbar_thumb = '#719ba5',
74 - -- The color of the split lines between panes
75 - split = '#719ba5',
77 - ansi = {
78 - '#fdfdfd', -- black
79 - '#ce1e5c', -- red
80 - '#8ba7cb', -- green
81 - '#cda77c', -- yellow
82 - '#4a25a9', -- blue
83 - '#a300a3', -- magenta
84 - '#017b9a', -- cyan
85 - '#050505', -- white
86 - },
88 - brights = {
89 - '#fafafa',
90 - '#be295d',
91 - '#90a5c1',
92 - '#c2a482',
93 - '#4d2e9b',
94 - '#960896',
95 - '#08738d',
96 - '#030303',
97 - },
99 - compose_cursor = '#0283a3',
100 - visual_bell = '#4e28b0',
101 - },
102 - }

wezterm/bugabinga/nugu/init.lua

Added
new file mode 100644
1 +local nugu_dark = require 'bugabinga/nugu/palette_dark'
2 +local nugu_light = require 'bugabinga/nugu/palette_light'
4 +local make_theme = function ( palette )
5 + return {
6 + -- The default text color
7 + foreground = palette.ui.normal,
8 + -- The default background color
9 + background = palette.ui.backdrop,
10 + -- Overrides the cell background color when the current cell is occupied by the
11 + -- cursor and the cursor style is set to Block
12 + cursor_bg = palette.ui.accent,
13 + -- Overrides the text color when the current cell is occupied by the cursor
14 + cursor_fg = palette.ui.backdrop,
15 + -- Specifies the border color of the cursor when the cursor style is set to Block,
16 + -- or the color of the vertical or horizontal bar when the cursor style is set to
17 + -- Bar or Underline.
18 + cursor_border = palette.ui.accent,
19 + selection_fg = palette.ui.backdrop,
20 + selection_bg = palette.ui.focus,
21 + -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
22 + scrollbar_thumb = palette.ui.unfocus,
23 + -- The color of the split lines between panes
24 + split = palette.ui.unfocus,
25 + ansi = {
26 + palette.content.backdrop, -- black
27 + palette.error, -- maroon
28 + palette.content.focus, -- green
29 + palette.warning, -- olive
30 + palette.content.important_local, -- navy
31 + palette.content.important_global, -- purple
32 + palette.info, -- teal
33 + palette.content.minor, -- silver
34 + },
35 + brights = {
36 + palette.content.unfocus, -- grey
37 + palette.error, -- red
38 + palette.content.accent, -- lime
39 + palette.warning, -- yellow
40 + palette.info, -- blue
41 + palette.debug, -- fuchsia
42 + palette.content.focus, -- aqua
43 + palette.content.normal, -- white
44 + },
45 + -- Arbitrary colors of the palette in the range from 16 to 255
46 + indexed = {},
47 + -- When the IME, a dead key or a leader key are being processed and are effectively
48 + -- holding input pending the result of input composition, change the cursor
49 + -- to this color to give a visual cue about the compose state.
50 + compose_cursor = palette.ui.focus,
51 + -- Colors for copy_mode and quick_select
52 + -- available since: 20220807-113146-c2fee766
53 + -- In copy_mode, the color of the active text is:
54 + -- 1. copy_mode_active_highlight_* if additional text was selected using the mouse
55 + -- 2. selection_* otherwise
56 + copy_mode_active_highlight_bg = { Color = palette.ui.accent, },
57 + copy_mode_active_highlight_fg = { Color = palette.ui.backdrop, },
58 + copy_mode_inactive_highlight_bg = { Color = palette.ui.unfocus, },
59 + copy_mode_inactive_highlight_fg = { Color = palette.ui.normal, },
60 + quick_select_label_bg = { Color = palette.ui.minor, },
61 + quick_select_label_fg = { Color = palette.ui.normal, },
62 + quick_select_match_bg = { Color = palette.ui.unfocus, },
63 + quick_select_match_fg = { Color = palette.ui.normal, },
64 + tab_bar = {
65 + -- The color of the strip that goes along the top of the window
66 + -- (does not apply when fancy tab bar is in use)
67 + background = palette.ui.backdrop,
69 + -- The active tab is the one that has focus in the window
70 + active_tab = {
71 + -- The color of the background area for the tab
72 + bg_color = palette.ui.backdrop,
73 + -- The color of the text for the tab
74 + fg_color = palette.ui.normal,
76 + -- Specify whether you want "Half", "Normal" or "Bold" intensity for the
77 + -- label shown for this tab.
78 + -- The default is "Normal"
79 + intensity = 'Bold',
81 + -- Specify whether you want "None", "Single" or "Double" underline for
82 + -- label shown for this tab.
83 + -- The default is "None"
84 + underline = 'Double',
86 + -- Specify whether you want the text to be italic (true) or not (false)
87 + -- for this tab. The default is false.
88 + italic = false,
90 + -- Specify whether you want the text to be rendered with strikethrough (true)
91 + -- or not for this tab. The default is false.
92 + strikethrough = false,
93 + },
95 + -- Inactive tabs are the tabs that do not have focus
96 + inactive_tab = {
97 + bg_color = palette.ui.backdrop,
98 + fg_color = palette.ui.normal,
100 + -- The same options that were listed under the `active_tab` section above
101 + -- can also be used for `inactive_tab`.
102 + },
104 + -- You can configure some alternate styling when the mouse pointer
105 + -- moves over inactive tabs
106 + inactive_tab_hover = {
107 + bg_color = palette.ui.focus,
108 + fg_color = palette.ui.normal,
109 + italic = true,
111 + -- The same options that were listed under the `active_tab` section above
112 + -- can also be used for `inactive_tab_hover`.
113 + },
115 + -- The new tab button that let you create new tabs
116 + new_tab = {
117 + bg_color = palette.ui.backdrop,
118 + fg_color = palette.ui.normal,
120 + -- The same options that were listed under the `active_tab` section above
121 + -- can also be used for `new_tab`.
122 + },
124 + -- You can configure some alternate styling when the mouse pointer
125 + -- moves over the new tab button
126 + new_tab_hover = {
127 + bg_color = palette.ui.focus,
128 + fg_color = palette.ui.normal,
129 + italic = true,
131 + -- The same options that were listed under the `active_tab` section above
132 + -- can also be used for `new_tab_hover`.
133 + },
134 + },
136 +end
138 +return {
139 + ['nugu-dark'] = make_theme( nugu_dark.palette ),
140 + ['nugu-light'] = make_theme( nugu_light.palette ),

wezterm/bugabinga/nugu/palette_dark.lua

Added
new file mode 100644
1 +return
2 +{palette = {debug = "#ff00ff", error = "#bd1c54", warning = "#c79e6e", info = "#7d9cc5", content = {normal = "#fafafa", backdrop = "#020202", accent = "#5d005d", minor = "#757575", focus = "#2eb3d1", unfocus = "#016a85", important_local = "#5e45c5", important_global = "#5e45c5"}, ui = {normal = "#fcfcfc", backdrop = "#000000", accent = "#3a003a", minor = "#707070", focus = "#2dacc8", unfocus = "#1d5a69", important_local = "#593fc2", important_global = "#593fc2"}}}

wezterm/bugabinga/nugu/palette_light.lua

Added
new file mode 100644
1 +return
2 +{palette = {debug = "#ff00ff", error = "#ce1e5c", warning = "#cda77c", info = "#8ba7cb", content = {normal = "#050505", backdrop = "#fdfdfd", accent = "#a300a3", minor = "#525252", focus = "#017b9a", unfocus = "#40b8d6", important_local = "#4a25a9", important_global = "#4a25a9"}, ui = {normal = "#030303", backdrop = "#ffffff", accent = "#c600c6", minor = "#575757", focus = "#0283a3", unfocus = "#719ba5", important_local = "#4e28b0", important_global = "#4e28b0"}}}

wezterm/bugabinga/status.lua

Modified
34 34 { Text = ' Font ', },
35 35 { Attribute = { Intensity = 'Bold', }, },
36 36 { Text = table.concat( fonts, ', ' ), },
37 + { Text = ' ' },
37 38 'ResetAttributes',
39 40 local pane_domain = pane:get_domain_name()
61 62 table.insert( status, font )
63 - window:set_right_status( table.concat( status, DELIMITER ) )
64 - --TODO: shirley, something useful can be done here
65 - window:set_left_status ' π '
64 + window:set_right_status(
65 + wez.format {
66 + { Foreground = { AnsiColor = 'White' } },
67 + { Text = table.concat( status, DELIMITER) },
68 + 'ResetAttributes',
69 + }
70 + )
71 + window:set_left_status(
72 + wez.format {
73 + { Foreground = { AnsiColor = 'White' } },
74 + { Text = '  ' },
75 + 'ResetAttributes',
76 + }
77 + )
66 78 end )
68 80 return function ( cfg )

wezterm/wezterm.lua

Modified
1 1 local wez = require 'wezterm'
2 2 local cfg = wez.config_builder()
4 -require 'bugabinga.options' ( cfg )
5 -require 'bugabinga.window' ( cfg )
6 -require 'bugabinga.fonts' ( cfg )
7 -require 'bugabinga.startup' ( cfg )
8 -require 'bugabinga.status' ( cfg )
9 4 require 'bugabinga.theme' ( cfg )
5 +require 'bugabinga.options' ( cfg )
10 6 require 'bugabinga.key_binds' ( cfg )
11 7 require 'bugabinga.mouse_binds' ( cfg )
12 -require 'bugabinga.hosts' ( cfg )
8 +require 'bugabinga.fonts' ( cfg )
9 +require 'bugabinga.window' ( cfg )
10 +require 'bugabinga.startup' ( cfg )
11 +require 'bugabinga.status' ( cfg )
13 12 require 'bugabinga.launch' ( cfg )
14 -require 'bugabinga.neovim_zen_mode'
13 +require 'bugabinga.neovim_zen_mode' (cfg)
14 +require 'bugabinga.hosts' ( cfg )
16 16 -- logs key presses
17 17 -- cfg.debug_key_events = true,