repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

eb5c48ee1cff970c37d64ae3084607b21f9ffa5f

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (30)

+336 / −461 text lines

Diff layout

environment.d/path.conf

Modified

+2 / −1 text lines

11CARGO_HOME = /home/oli/.cargo
2PATH = $CARGO_HOME/bin:$PATH
2GO_HOME = /home/oli/go
3PATH = $CARGO_HOME/bin:$GO_HOME/bin:$PATH

helix/themes/nugu-dark.toml

Modified

+18 / −18 text lines

121121[palette]
123normal = "#ececec"
124backdrop = "#131313"
125accent = "#560356"
126important_local = "#5540ab"
127important_global = "#5540ab"
128minor = "#676767"
129focus = "#3093aa"
130unfocus = "#04586b"
131ui_normal = "#ffffff"
123normal = "#fafafa"
124backdrop = "#020202"
125accent = "#5d005d"
126important_local = "#5e45c5"
127important_global = "#5e45c5"
128minor = "#757575"
129focus = "#2eb3d1"
130unfocus = "#016a85"
131ui_normal = "#fcfcfc"
132132ui_backdrop = "#000000"
133ui_accent = "#2f042f"
134ui_important_global = "#4c3d87"
135ui_important_local = "#4c3d87"
136ui_minor = "#545454"
137ui_focus = "#2e7585"
138ui_unfocus = "#053843"
139error = "#9e1e4b"
140warning = "#b88f60"
141info = "#708eb5"
133ui_accent = "#3a003a"
134ui_important_global = "#593fc2"
135ui_important_local = "#593fc2"
136ui_minor = "#707070"
137ui_focus = "#2dacc8"
138ui_unfocus = "#1d5a69"
139error = "#bd1c54"
140warning = "#c79e6e"
141info = "#7d9cc5"
142142debug = "#ff00ff"

helix/themes/nugu-light.toml

Modified

+19 / −19 text lines

121121[palette]
123normal = "#ffffff"
124backdrop = "#000000"
125accent = "#a006a0"
126important_local = "#8270ca"
127important_global = "#8270ca"
128minor = "#8d8d8d"
129focus = "#60bdd4"
130unfocus = "#0788a8"
131ui_normal = "#ececec"
132ui_backdrop = "#131313"
133ui_accent = "#bd0fbd"
134ui_important_global = "#9e92cf"
135ui_important_local = "#9e92cf"
136ui_minor = "#a0a0a0"
137ui_focus = "#85c6d6"
138ui_unfocus = "#11a1c5"
139error = "#d8326c"
140warning = "#d0b596"
141info = "#a3b6cf"
123normal = "#050505"
124backdrop = "#fdfdfd"
125accent = "#a300a3"
126important_local = "#4a25a9"
127important_global = "#4a25a9"
128minor = "#525252"
129focus = "#017b9a"
130unfocus = "#40b8d6"
131ui_normal = "#030303"
132ui_backdrop = "#ffffff"
133ui_accent = "#c600c6"
134ui_important_global = "#4e28b0"
135ui_important_local = "#4e28b0"
136ui_minor = "#575757"
137ui_focus = "#0283a3"
138ui_unfocus = "#719ba5"
139error = "#ce1e5c"
140warning = "#cda77c"
141info = "#8ba7cb"
142142debug = "#ff00ff"

neovim/colors/nugu.lua

Modified

+2 / −2 text lines

77vim.g.colors_name = 'nugu'
99-- this is necessary to toggle light/dark during runtime
10package.loaded['bugabinga.nugu'] = nil
11package.loaded['bugabinga.nugu.palette'] = nil
1210package.loaded['bugabinga.nugu.palette_dark'] = nil
1311package.loaded['bugabinga.nugu.palette_light'] = nil
12package.loaded['bugabinga.nugu.palette'] = nil
13package.loaded['bugabinga.nugu'] = nil
1515require 'bugabinga.nugu' ()

neovim/init.lua

Modified

+0 / −1 text lines

2424require 'bugabinga.save_actions'
2525require 'bugabinga.sessions'
2626require 'bugabinga.lazy'
27require 'bugabinga.terminal'
2827require 'bugabinga.diagnostic'
2928require 'bugabinga.lsp'

neovim/lazy-lock.json

Modified

+1 / −3 text lines

5151 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
5252 "nvim-rulebook": { "branch": "main", "commit": "bc5e3874a9870709ec91152f9efce6dad49ca862" },
5353 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
54 "nvim-treesitter": { "branch": "master", "commit": "45386764cc9535200d2288cab929c5093d33660e" },
54 "nvim-treesitter": { "branch": "master", "commit": "cc2c11c403a9143827501223b4ee64432dcaf246" },
5555 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
5656 "nvim-treesitter-textobjects": { "branch": "master", "commit": "4a2d05ec24eaa6b655c7d19092a3b6c0219d46b9" },
5757 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
6363 "refjump.nvim": { "branch": "main", "commit": "a78b585cff29505f7558f3a596bca567474cd663" },
6464 "scratch.nvim": { "branch": "main", "commit": "3e3d2ad0d7f565bc794d9d3ad40e92509802ecad" },
6565 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
66 "spellwarn.nvim": { "branch": "main", "commit": "2f4dbc58bb90bc63b295461216b91ccf4e7f782d" },
6766 "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
6867 "surround-ui.nvim": { "branch": "main", "commit": "40abcba017a943d6d3dd304e523f34a43d80405b" },
6968 "symbol-usage.nvim": { "branch": "main", "commit": "0f9b3da014b7e41559b643e7461fcabb2a7dc83a" },
7574 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
7675 "text-case.nvim": { "branch": "main", "commit": "13daf28a829e6d0646904c94214cb289bb0c6f34" },
7776 "timespent.nvim": { "branch": "master", "commit": "3eda13f7468de06a8b948d0eddf82f15b5d88dca" },
78 "tiny-inline-diagnostic.nvim": { "branch": "main", "commit": "1a83e7ce5c9d0ae4d89fc5c812b55ff8ed1d39e7" },
7977 "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
8078 "toggle.nvim": { "branch": "main", "commit": "50769ba8982d3d3a8fbd1d1a2e5cad63c73df662" },
8179 "tree-sitter-nu": { "branch": "main", "commit": "e3b4c967937cad628dca09bd098cd780d8288750" },

neovim/lua/bugabinga/nugu/init.lua

Modified

+24 / −23 text lines

2424local ui_important_local = palette.ui_important_local
2626vim.g.terminal_color_0 = ui_backdrop -- black
27vim.g.terminal_color_1 = content_accent -- maroon
28vim.g.terminal_color_2 = info -- green
29vim.g.terminal_color_3 = ui_focus -- olive
27vim.g.terminal_color_1 = error -- maroon
28vim.g.terminal_color_2 = content_focus -- green
29vim.g.terminal_color_3 = warning -- olive
3030vim.g.terminal_color_4 = content_important_local -- navy
3131vim.g.terminal_color_5 = content_important_global -- purple
32vim.g.terminal_color_6 = ui_focus -- teal
33vim.g.terminal_color_7 = content_normal -- silver
32vim.g.terminal_color_6 = info -- teal
33vim.g.terminal_color_7 = content_minor -- silver
35vim.g.terminal_color_8 = ui_minor -- grey
35vim.g.terminal_color_8 = content_unfocus -- grey
3636vim.g.terminal_color_9 = error -- red
37vim.g.terminal_color_10 = info -- lime
38vim.g.terminal_color_11 = content_focus -- yellow
39vim.g.terminal_color_12 = ui_important_local -- blue
40vim.g.terminal_color_13 = ui_accent -- fuchsia
41vim.g.terminal_color_14 = ui_important_global -- aqua
42vim.g.terminal_color_15 = ui_normal -- white
37vim.g.terminal_color_10 = content_accent -- lime
38vim.g.terminal_color_11 = warning -- yellow
39vim.g.terminal_color_12 = info -- blue
40vim.g.terminal_color_13 = debug -- fuchsia
41vim.g.terminal_color_14 = content_focus -- aqua
42vim.g.terminal_color_15 = content_normal -- white
4444local set_group_properties = function ( self, properties )
4545 vim.validate {
122122_.Debug { fg = ui_normal, bg = debug, bold = true }
124124_.Normal { fg = content_normal, bg = content_backdrop }
125_.NormalUi { fg = ui_normal, bg = ui_backdrop }
125126_.Comment { fg = content_important_global }
126_.NotifyBackground { bg = ui_backdrop }
127_.NotifyBackground = _.NormalUi
127128_.LineNr { fg = ui_minor, bg = content_backdrop }
128129_.CursorLineNr { fg = ui_focus, bg = ui_backdrop }
129130_.Search { bg = content_unfocus }
130131_.IncSearch { fg = content_focus }
131132_.CurSearch { fg = content_important_global, bg = content_unfocus }
132_.NormalFloat = _.Normal
133_.NormalFloat = _.NormalUi
133134_.FloatBorder { fg = ui_accent, bg = _.Normal.bg }
134135_.ColorColumn { fg = ui_important_global, bg = _.Normal.bg }
135136_.Conceal { fg = content_focus, bg = _.Normal.bg }
136_.Cursor { bg = ui_accent }
137_.Cursor { fg = content_backdrop, bg = ui_accent }
137138-- _.lCursor = _.Cursor
138139-- _.CursorIM = _.Cursor
139140_.Directory { fg = _.Normal.fg }
145146-- _.TermCursor = _.Cursor
146147-- _.TermCursorNC = _.Cursor
147148_.ErrorMsg { fg = error }
148_.VertSplit { fg = ui_important_global, bg = _.LineNr.bg }
149_.VertSplit { fg = ui_important_global }
149150_.Folded = _.Conceal
150151_.FoldColumn = _.LineNr
151152_.SignColumn = _.LineNr
152153_.ModeMsg { bold = true }
153_.MsgArea = _.StatusLine
154_.MsgSeparator = _.Debug
155_.MoreMsg = _.Normal
154_.MsgArea = _.NormalUi
155_.MsgSeparator = _.NormalUi
156_.MoreMsg = _.NormalUi
156157_.NonText { fg = content_unfocus }
157158_.Whitespace = _.NonText
158_.NormalNC = _.Normal
159_.NormalNC { fg = content_minor, bg = _.Normal.bg }
159160_.Pmenu = _.NormalFloat
160161_.PmenuSel { fg = ui_important_local, sp = ui_important_local, bg = _.Pmenu.bg, bold = true, underline = true }
161162_.PmenuSbar { bg = ui_unfocus }
167168_.SpellCap = _.SpellBad
168169_.SpellLocal = _.SpellBad
169170_.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 }
172173_.Winbar { fg = ui_focus, bg = _.StatusLine.bg }
173_.WinbarNC { fg = ui_minor, bg = _.LineNr.bg }
174_.WinbarNC { fg = content_minor, bg = _.Normal.bg }
174175_.Title { fg = content_important_global, sp = content_important_global, bold = true, underline = true }
175176_.TabLine = _.StatusLine
176177_.TabLineFill = _.StatusLine

neovim/lua/bugabinga/nugu/palette_dark.lua

Modified

+22 / −24 text lines

1return {
2 debug = '#ff00ff',
3 error = '#bd1c54',
4 info = '#7d9cc5',
5 warning = '#c79e6e',
2 return {
3 debug = '#ff00ff',
4 error = '#9e1e4b',
5 info = '#708eb5',
6 warning = '#b88f60',
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 = '#ececec',
9 content_backdrop = '#131313',
10 content_accent = '#560356',
11 content_minor = '#676767',
12 content_focus = '#3093aa',
13 content_unfocus = '#04586b',
14 content_important_global = '#5540ab',
15 content_important_local = '#5540ab',
17 ui_normal = '#ffffff',
18 ui_backdrop = '#000000',
19 ui_accent = '#2f042f',
20 ui_minor = '#545454',
21 ui_focus = '#2e7585',
22 ui_unfocus = '#053843',
23 ui_important_global = '#4c3d87',
24 ui_important_local = '#4c3d87',
25 }
26 No final newline
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',
24}No final newline

neovim/lua/bugabinga/nugu/palette_light.lua

Modified

+22 / −24 text lines

1return {
2 debug = '#ff00ff',
3 error = '#ce1e5c',
4 info = '#8ba7cb',
5 warning = '#cda77c',
2 return {
3 debug = '#ff00ff',
4 error = '#d8326c',
5 info = '#a3b6cf',
6 warning = '#d0b596',
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 = '#ffffff',
9 content_backdrop = '#000000',
10 content_accent = '#a006a0',
11 content_minor = '#8d8d8d',
12 content_focus = '#60bdd4',
13 content_unfocus = '#0788a8',
14 content_important_global = '#8270ca',
15 content_important_local = '#8270ca',
17 ui_normal = '#ececec',
18 ui_backdrop = '#131313',
19 ui_accent = '#bd0fbd',
20 ui_minor = '#a0a0a0',
21 ui_focus = '#85c6d6',
22 ui_unfocus = '#11a1c5',
23 ui_important_global = '#9e92cf',
24 ui_important_local = '#9e92cf',
25 }
26 No final newline
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',
24}No final newline

neovim/lua/bugabinga/options/keymaps.lua

Modified

+0 / −35 text lines

1010vim.g.mapleader = ' '
1111vim.g.maplocalleader = ' '
13-- disable command history keymap, because i fatfinger it too often
14map {
15 keys = 'q:',
16 command = '<nop>',
17}
19map {
20 keys = 'Q:',
21 command = '<nop>',
22}
24map {
25 keys = 'q/',
26 command = '<nop>',
27}
29map {
30 keys = 'Q',
31 command = '<nop>',
32}
3413-- disable them evil arrows
3514map {
3615 keys = '<up>',
11089 end,
113map.insert {
114 description = 'Exit normal mode',
115 category = 'vim',
116 keys = 'jj',
117 command = '<C-c>',
118}
120map.normal {
121 description = 'Goto matching bracket',
122 category = 'navigation',
123 keys = 'mm',
124 command = '%',
125}
12792map.normal {
12893 description = 'Redo undone operation',
12994 category = 'history',

neovim/lua/bugabinga/plugins/better-escape.lua

Deleted
deleted file mode 100644

+0 / −6 text lines

1return {
2 'max397574/better-escape.nvim',
3 version = '2.*',
4 event = 'InsertEnter',
5 opts = {},
6}

neovim/lua/bugabinga/plugins/heirline.lua

Modified

+0 / −20 text lines

1111 version = '2.*',
1212 lazy = false,
1313 dependencies = {
14 -- FIXME: use my own icons
1514 'nvim-tree/nvim-web-devicons',
1615 },
1716 config = function ()
437436 },
438437 }
440 local lazy = {
441 condition = function ()
442 local ok, lazy_status = pcall( require, 'lazy.status' )
443 return ok and lazy_status.has_updates()
444 end,
445 update = { 'User', pattern = 'LazyUpdate' },
446 provider = function ()
447 return ' ' .. icon.lazy .. ' ' .. require 'lazy.status'.updates() .. ' '
448 end,
449 on_click = {
450 callback = function ()
451 require 'lazy'.update()
452 end,
453 name = 'update_plugins',
454 },
455 }
457439 local align = { provider = '%=' }
458440 local space = { provider = ' ' }
469451 align,
470452 space,
471453 space,
472 lazy,
473 space,
474454 escape_status,
475455 space,
476456 lsp_active,

neovim/lua/bugabinga/plugins/incubator.lua

Modified

+4 / −36 text lines

99local icon = require 'std.icon'
1010local dbg = require 'std.dbg'
11local ignored = require'std.ignored'
11local ignored = require 'std.ignored'
1313return {
1414 -------------------------------------------------------------------------------
3838 },
3939 -------------------------------------------------------------------------------
4040 {
41 -- FIXME: if view stays open, when saving session, reloading the session results in borked view.
4241 'amrbashir/nvim-docs-view',
4342 keys = {
4443 {
5049 },
5150 cmd = 'DocsViewToggle',
5251 opts = {
53 position = 'right',
54 width = 69,
52 position = 'bottom',
53 width = 42,
5554 },
5655 enabled = FUCK_STABILITY,
5756 },
110109 enabled = FUCK_STABILITY,
111110 },
112111 -------------------------------------------------------------------------------
113 {
114 'quentingruber/timespent.nvim',
115 keys = {
116 {
117 '<leader>tS',
118 '<cmd>:ShowTimeSpent<cr>',
119 mode = { 'n' },
120 desc = 'Show time spent',
121 },
122 },
123 enabled = FUCK_STABILITY,
124 },
125 -------------------------------------------------------------------------------
126112 {
127113 'nvim-telescope/telescope-frecency.nvim',
128114 config = function ()
148134 },
149135 -------------------------------------------------------------------------------
150136 {
151 'chrisgrieser/nvim-lsp-endhints',
152 event = 'LspAttach',
153 opts = {
154 autoEnableHints = false,
155 icons = {
156 type = icon.type .. ' ',
157 parameter = icon.paramter,
158 offspec = '', -- hint kind not defined in official LSP spec
159 unknown = icon.hint, -- hint kind
160 },
161 label = {
162 padding = 2,
163 },
164 },
165 enabled = FUCK_STABILITY,
166 },
167 -------------------------------------------------------------------------------
168 {
169 'rafcamlet/nvim-luapad',
137 'rafcamlet/nvim-luapad',
170138 cmd = { 'Luapad', 'LuaRun' },
171139 opts = {},
172140 enabled = FUCK_STABILITY,

neovim/lua/bugabinga/plugins/treesj.lua

Modified

+1 / −1 text lines

55 category = 'editing',
66 keys = '<leader>j',
77 command = function ()
8 prequire 'treesj'.toggle { split = { recursive = true } }
8 prequire 'treesj'.toggle { split = { recursive = false } }
99 end,

neovim/lua/bugabinga/terminal.lua

Deleted
deleted file mode 100644

+0 / −55 text lines

1local map = require 'std.map'
2local auto = require 'std.auto'
3
4map.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}
29local 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()
48end
50auto '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

+4 / −4 text lines

88 'Trouble',
99 'WhichKey',
1010 '^git.*',
11 'copilot-chat',
1112 'flash_prompt',
1213 'help',
1314 'ivy',
1415 'lazy',
1516 'noice',
1617 'notify',
18 'nvim-docs-view',
1719 'oil',
20 'qf',
1821 'spectre_panel',
1922 'starter',
2023 'svn',
2528local buftypes = {
2629 'acwrite',
2730 'help',
28 'neotree',
29 'nofile',
30 'noice',
3131 'prompt',
32 'quickfix',
32 'nofile',
3535local as_kv = function ( list )

nushell/env.nu

Modified

+2 / −0 text lines

77$env.NOTES = ("~/Notes" | path expand)
88$env.TOOLS = ("~/Tools" | path expand)
99$env.CARGO_HOME = ( "~/.cargo" | path expand )
10$env.GO_HOME = ( "~/go" | path expand )
1011$env.BARTIB_FILE = ( $env.NOTES | path join 'timetrack.txt')
1213if $env.WIN32 {
2223 $env.PATH
2324 | split row (char esep)
2425 | append ($env.CARGO_HOME | path join bin)
26 | append ($env.GO_HOME | path join bin)
2527 | append ($env.HOME | path join .local bin)
2628 | uniq # filter so the paths are unique

tools/gnome-settings.nu

Added
new file mode 100755

+17 / −0 text lines

1#!/usr/bin/env nu
2
3def 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
17}

tools/packages.csv

Deleted
deleted file mode 100644

+0 / −3 text lines

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

tools/tools.csv

Modified

+2 / −0 text lines

88cargo-update;cargo-install-update
99choose
1010czkawka_cli
11carl
12calendar-rs;calendar
1113du-dust; dust
1214dotenv-linter
1315dupimg

wezterm/bugabinga/code_font.lua

Modified

+0 / −1 text lines

8080 if code_fonts then
8181 for line in code_fonts:lines() do
82 print('csv line: ' , line)
8382 local weight, font_name = line:match(csv_line_pattern)
8483 if not weight or not font_name then
8584 wez.log_error 'Could not parse code_fonts.csv. Borked?'

wezterm/bugabinga/code_fonts.csv

Modified

+6 / −6 text lines

@@ -22,7 +22,7 @@ Old: row[1]; new: row[5]
22221,Dina ttf 10px
23231,Droid Sans Mono
24241,Edlo
251,Envy Code R
255,Envy Code R
26261,Fantasque Sans Mono
27271,Fira Code
28281,Fira Mono
53531,Luculent
54541,Luxi Mono
55551,M+ 1m
561,M+ 1mn
571,M+ 2m
5614,M+ 1mn
5714,M+ 2m
58581,Martian Mono
59591,Mensch
60600,Meslo LG M DZ
@@ -67,7 +67,7 @@ Old: row[1]; new: row[0]
67671,MonoSpatial
68681,Monoid
69691,Monospace
701,MonteCarlo Fixed 12
700,MonteCarlo Fixed 12
71711,NanumGothic_Coding
72721,NotCourierSans
73731,Office Code Pro
@@ -78,7 +78,7 @@ Old: row[1]; new: row[0]
78780,PixelCarnageMonoTT
79791,Pointfree
80801,ProFontWindows
811,ProggyCleanTT
810,ProggyCleanTT
82820,ProggyCleanTTSZ
83830,ProggySmallTT
84840,ProggySquareTT
@@ -95,7 +95,7 @@ Old: row[1]; new: row[0]
95951,Source Code Pro
96961,Sudo
97971,Symbols Nerd Font
981,Symbols Nerd Font Mono
980,Symbols Nerd Font Mono
99991,TeX Gyre Cursor
1001001,Terminus
1011011,Ubuntu Mono

wezterm/bugabinga/hosts/fedora.lua

Modified

+0 / −34 text lines

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

wezterm/bugabinga/neovim_zen_mode.lua

Modified

+23 / −21 text lines

1local wez = require 'wezterm'
1return function (_)
2 local wez = require 'wezterm'
3wez.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
1222 end
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
2123 end
22 end
23 window:set_config_overrides( overrides )
24end )
24 window:set_config_overrides( overrides )
25 end )
26end

wezterm/bugabinga/nugu.lua

Deleted
deleted file mode 100644

+0 / −114 text lines

1return {
2 ['nugu-dark'] = {
3 -- The default text color
4 foreground = '#ffffff',
5 -- The default background color
6 background = '#000000',
7
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 = '#2f042f',
11 -- Overrides the text color when the current cell is occupied by the cursor
12 cursor_fg = '#4c3d87',
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 = '#2f042f',
18 -- the foreground color of selected text
19 selection_fg = '#4c3d87',
20 -- the background color of selected text
21 selection_bg = '#2e7585',
23 -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
24 scrollbar_thumb = '#053843',
26 -- The color of the split lines between panes
27 split = '#053843',
29 ansi = {
30 '#ececec', -- black
31 '#9e1e4b', -- red
32 '#708eb5', -- green
33 '#b88f60', -- yellow
34 '#5540ab', -- blue
35 '#560356', -- magenta
36 '#3093aa', -- cyan
37 '#676767', -- white
38 },
40 brights = {
41 '#ffffff',
42 '#bd3263',
43 '#9aaabe',
44 '#bfa78c',
45 '#7767b7',
46 '#810c81',
47 '#4faabe',
48 '#818181',
49 },
51 -- Since: 20220319-142410-0fcdea07
52 -- When the IME, a dead key or a leader key are being processed and are effectively
53 -- holding input pending the result of input composition, change the cursor
54 -- to this color to give a visual cue about the compose state.
55 compose_cursor = '#2e7585',
56 visual_bell = '#4c3d87',
57 },
58 ['nugu-light'] = {
59 -- The default text color
60 foreground = '#ececec',
61 -- The default background color
62 background = '#131313',
64 -- Overrides the cell background color when the current cell is occupied by the
65 -- cursor and the cursor style is set to Block
66 cursor_bg = '#bd0fbd',
67 -- Overrides the text color when the current cell is occupied by the cursor
68 cursor_fg = '#9e92cf',
69 -- Specifies the border color of the cursor when the cursor style is set to Block,
70 -- or the color of the vertical or horizontal bar when the cursor style is set to
71 -- Bar or Underline.
72 cursor_border = '#bd0fbd',
74 -- the foreground color of selected text
75 selection_fg = '#9e92cf',
76 -- the background color of selected text
77 selection_bg = '#85c6d6',
79 -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
80 scrollbar_thumb = '#11a1c5',
82 -- The color of the split lines between panes
83 split = '#11a1c5',
85 ansi = {
86 '#ffffff', -- black
87 '#d8326c', -- red
88 '#a3b6cf', -- green
89 '#d0b596', -- yellow
90 '#8270ca', -- blue
91 '#a006a0', -- magenta
92 '#60bdd4', -- cyan
93 '#8d8d8d', -- white
94 },
96 brights = {
97 '#e6e6e6',
98 '#aa2d59',
99 '#8b9db4',
100 '#b69b7d',
101 '#6957b0',
102 '#690a69',
103 '#45a4bc',
104 '#747474',
105 },
107 -- Since: 20220319-142410-0fcdea07
108 -- When the IME, a dead key or a leader key are being processed and are effectively
109 -- holding input pending the result of input composition, change the cursor
110 -- to this color to give a visual cue about the compose state.
111 compose_cursor = '#85c6d6',
112 visual_bell = '#9e92cf',
113 },
114 }No final newline

wezterm/bugabinga/nugu/init.lua

Added
new file mode 100644

+141 / −0 text lines

1local nugu_dark = require 'bugabinga/nugu/palette_dark'
2local nugu_light = require 'bugabinga/nugu/palette_light'
3
4local 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 },
135 }
136end
138return {
139 ['nugu-dark'] = make_theme( nugu_dark.palette ),
140 ['nugu-light'] = make_theme( nugu_light.palette ),
141}

wezterm/bugabinga/nugu/palette_dark.lua

Added
new file mode 100644

+2 / −0 text lines

1return
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"}}}No final newline

wezterm/bugabinga/nugu/palette_light.lua

Added
new file mode 100644

+2 / −0 text lines

1return
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"}}}No final newline

wezterm/bugabinga/status.lua

Modified

+15 / −3 text lines

3434 { Text = ' Font ', },
3535 { Attribute = { Intensity = 'Bold', }, },
3636 { Text = table.concat( fonts, ', ' ), },
37 { Text = ' ' },
3738 'ResetAttributes',
3839 }
3940 local pane_domain = pane:get_domain_name()
6162 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 )
6678end )
6880return function ( cfg )

wezterm/wezterm.lua

Modified

+7 / −7 text lines

11local wez = require 'wezterm'
22local cfg = wez.config_builder()
4require 'bugabinga.options' ( cfg )
5require 'bugabinga.window' ( cfg )
6require 'bugabinga.fonts' ( cfg )
7require 'bugabinga.startup' ( cfg )
8require 'bugabinga.status' ( cfg )
94require 'bugabinga.theme' ( cfg )
5require 'bugabinga.options' ( cfg )
106require 'bugabinga.key_binds' ( cfg )
117require 'bugabinga.mouse_binds' ( cfg )
12require 'bugabinga.hosts' ( cfg )
8require 'bugabinga.fonts' ( cfg )
9require 'bugabinga.window' ( cfg )
10require 'bugabinga.startup' ( cfg )
11require 'bugabinga.status' ( cfg )
1312require 'bugabinga.launch' ( cfg )
14require 'bugabinga.neovim_zen_mode'
13require 'bugabinga.neovim_zen_mode' (cfg)
14require 'bugabinga.hosts' ( cfg )
1616-- logs key presses
1717-- cfg.debug_key_events = true,