repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm config overhaul. new keybinds with new leader key

18d6ab8541ed88aef199a10d2f15033bb30d53a1

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (20)

.gitignore

Modified
1 -bootstripper
2 -neovim/plugin
3 -bootstripper/bootstripper.com.dbg
4 -bootstripper/cosmopolitan
5 -bootstripper/win32/cross9
6 1 tresor/box_do_key
7 3 nushell/zoxide.nu
8 4 nushell/history.txt
9 5 nushell/plugin.nu
10 -<<<<<<< HEAD
11 7 neovim/profile.log
12 -=======
13 -profile.log
14 ->>>>>>> trunk
8 +neovim/plugin
15 9 neovim/profile.svg

bat/config

Added
new file mode 100644
1 +# apply colors from my terminal color scheme
2 +--theme=ansi
3 +--style=full
5 +--tabs 2
6 +#--show-all
7 +#--nonprintable-notation=unicode
9 +# use features of modern terminals
10 +--italic-text=always
12 +# Map some unknown file types to (hopefully similar) known ones
13 +--map-syntax "*.nu:Rust"
14 +--map-syntax ".stignore:Git Ignore"

helix/themes/gpt-dark.toml

Added
new file mode 100644
1 +inherits = "base16_default_dark"
3 +"ui.virtual.ruler" = { bg = "base01" }
4 +"comment" = { fg = "base03", modifiers = ["italic", "bold"] }
6 +[palette]
7 +base00 = "#181818" # Default Background
8 +base01 = "#282828" # Lighter Background (Used for status bars, line number and folding marks)
9 +base02 = "#383838" # Selection Background
10 +base03 = "#585858" # Comments, Invisibles, Line Highlighting
11 +base04 = "#b8b8b8" # Dark Foreground (Used for status bars)
12 +base05 = "#d8d8d8" # Default Foreground, Caret, Delimiters, Operators
13 +base06 = "#e8e8e8" # Light Foreground (Not often used)
14 +base07 = "#f8f8f8" # Light Background (Not often used)
15 +base08 = "#ab4642" # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
16 +base09 = "#dc9656" # Integers, Boolean, Constants, XML Attributes, Markup Link Url
17 +base0A = "#f7ca88" # Classes, Markup Bold, Search Text Background
18 +base0B = "#a1b56c" # Strings, Inherited Class, Markup Code, Diff Inserted
19 +base0C = "#86c1b9" # Support, Regular Expressions, Escape Characters, Markup Quotes
20 +base0D = "#7cafc2" # Functions, Methods, Attribute IDs, Headings
21 +base0E = "#ba8baf" # Keywords, Storage, Selector, Markup Italic, Diff Changed
22 +base0F = "#a16946" # Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>

helix/themes/gpt-light.toml

Added
new file mode 100644
1 +inherits = "base16_default_light"
3 +"ui.virtual.ruler" = { bg = "base01" }
4 +"comment" = { fg = "base03", modifiers = ["italic", "bold"] }
6 +[palette]
7 +base00 = "#f2f2f2" # Default Background
8 +base01 = "#dcdcdc" # Lighter Background (Used for status bars, line number and folding marks)
9 +base02 = "#c2c2c2" # Selection Background
10 +base03 = "#8a8a8a" # Comments, Invisibles, Line Highlighting
11 +base04 = "#2e2e2e" # Dark Foreground (Used for status bars)
12 +base05 = "#1a1a1a" # Default Foreground, Caret, Delimiters, Operators
13 +base06 = "#050505" # Light Foreground (Not often used)
14 +base07 = "#000000" # Light Background (Not often used)
15 +base08 = "#8c3532" # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
16 +base09 = "#b45f31" # Integers, Boolean, Constants, XML Attributes, Markup Link Url
17 +base0A = "#b88e36" # Classes, Markup Bold, Search Text Background
18 +base0B = "#6c782e" # Strings, Inherited Class, Markup Code, Diff Inserted
19 +base0C = "#4d7474" # Support, Regular Expressions, Escape Characters, Markup Quotes
20 +base0D = "#4b6988" # Functions, Methods, Attribute IDs, Headings
21 +base0E = "#6c5b7b" # Keywords, Storage, Selector, Markup Italic, Diff Changed
22 +base0F = "#5c4343" # Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>

helix/themes/gpt.toml

Deleted
deleted file mode 100644
1 -inherits = "base16_terminal"
3 -[palette]
4 -black = "#252525"
5 -white = "#ffffff"
7 -gray = "#555555"
8 -red = "#a55f5f"
9 -green = "#5f875f"
10 -yellow = "#af875f"
11 -blue = "#5f87af"
12 -magenta = "#875faf"
13 -cyan = "#5f8787"
15 -light-gray = "#b0b0b0"
16 -light-red = "#ff8700"
17 -light-green = "#87af5f"
18 -light-yellow = "#ffd700"
19 -light-blue = "#87afd7"
20 -light-magenta = "#d70087"
21 -light-cyan = "#87d7d7"

helix/themes/nugu-dark.toml

Modified
51 51 "ui.background" = { fg = "normal", bg = "backdrop" }
52 52 "ui.background.separator" = { fg = "ui_minor" }
54 -"ui.cursor" = { fg = "normal", bg = "accent" }
55 -"ui.cursor.primary" = { fg = "normal", bg = "accent" }
56 -"ui.cursor.match" = { fg = "normal", bg = "unfocus", modifiers = [
54 +"ui.cursor" = { fg = "normal", bg = "ui_accent" }
55 +"ui.cursor.primary" = { fg = "normal", bg = "ui_accent" }
56 +"ui.cursor.match" = { fg = "normal", bg = "ui_unfocus", modifiers = [
57 57 "slow_blink",
60 -"ui.cursorline.primary" = { bg = "debug" }
60 +"ui.cursorline.primary" = { underline = { style = "line", color = "ui_unfocus" } }
62 -"ui.selection" = { fg = "normal", bg = "ui_important_local" }
63 -"ui.selection.primary" = { fg = "normal", bg = "ui_important_global" }
62 +"ui.selection" = { fg = "normal", bg = "ui_unfocus" }
63 +"ui.selection.primary" = { fg = "normal", bg = "ui_important_local" }
65 -"ui.linenr" = { fg = "ui_unfocus" }
66 -"ui.linenr.selected" = { fg = "ui_accent" }
65 +"ui.linenr" = { fg = "ui_minor", bg = "backdrop" }
66 +"ui.linenr.selected" = { fg = "ui_focus" }
68 -"ui.statusline" = { fg = "ui_minor", bg = "ui_backdrop" }
68 +"ui.statusline" = { fg = "ui_normal", bg = "ui_backdrop" }
69 69 "ui.statusline.separator" = { fg = "ui_unfocus", bg = "ui_backdrop" }
70 70 "ui.statusline.insert" = { fg = "ui_important_global", modifiers = ["bold"] }
71 71 "ui.statusline.select" = { fg = "ui_focus", modifiers = ["bold"] }
72 -"ui.statusline.inactive" = { fg = "ui_unfocus", bg = "ui_backdrop" }
72 +"ui.statusline.inactive" = { fg = "ui_minor", bg = "ui_backdrop" }
74 -"ui.bufferline" = { fg = "ui_minor", bg = "ui_backdrop" }
74 +"ui.bufferline" = { fg = "ui_normal", bg = "ui_backdrop" }
75 75 "ui.bufferline.active" = { fg = "ui_important_global", bg = "ui_unfocus", modifiers = [
76 76 "bold",
77 -], underline = { style = "double_line", color = "ui_backdrop" } }
77 +], underline = { style = "double_line", color = "ui_important_global" } }
79 -"ui.gutter" = { bg = "ui_backdrop" }
79 +"ui.gutter" = { bg = "backdrop" }
81 81 "ui.debug.breakpoint" = { fg = "ui_important_global" }
82 82 "ui.debug.active" = { fg = "ui_important_global" }
123 123 accent = "#800080"
124 124 backdrop = "#131313"
125 -debug = "#ff00ff"
125 +debug = "#3dd45d"
126 126 error = "#740523"
127 127 focus = "#a5bdb6"
128 128 important_global = "#8e58cc"
130 130 info = "#4187a7"
131 131 minor = "#727272"
132 132 normal = "#cfcfcf"
133 -ui_accent = "#1e011e"
133 +ui_accent = "#7a067a"
134 134 ui_backdrop = "#000000"
135 135 ui_focus = "#788984"
136 136 ui_important_global = "#5f368d"
137 137 ui_important_local = "#4c2b72"
138 -ui_minor = "#9f9f9f"
138 +ui_minor = "#424242"
139 139 ui_normal = "#e2e2e2"
140 140 ui_unfocus = "#121212"
141 141 unfocus = "#3f4543"

helix/themes/nugu-light.toml

Modified
51 51 "ui.background" = { fg = "normal", bg = "backdrop" }
52 52 "ui.background.separator" = { fg = "ui_minor" }
54 -"ui.cursor" = { fg = "normal", bg = "accent" }
55 -"ui.cursor.primary" = { fg = "normal", bg = "accent" }
56 -"ui.cursor.match" = { fg = "normal", bg = "unfocus", modifiers = [
54 +"ui.cursor" = { fg = "normal", bg = "ui_accent" }
55 +"ui.cursor.primary" = { fg = "normal", bg = "ui_accent" }
56 +"ui.cursor.match" = { fg = "normal", bg = "ui_unfocus", modifiers = [
57 57 "slow_blink",
60 -"ui.cursorline.primary" = { bg = "debug" }
60 +"ui.cursorline.primary" = { underline = { style = "line", color = "ui_unfocus" } }
62 -"ui.selection" = { fg = "normal", bg = "ui_important_local" }
63 -"ui.selection.primary" = { fg = "normal", bg = "ui_important_global" }
62 +"ui.selection" = { fg = "normal", bg = "ui_unfocus" }
63 +"ui.selection.primary" = { fg = "normal", bg = "ui_important_local" }
65 -"ui.linenr" = { fg = "ui_unfocus" }
66 -"ui.linenr.selected" = { fg = "ui_accent" }
65 +"ui.linenr" = { fg = "ui_minor", bg = "backdrop" }
66 +"ui.linenr.selected" = { fg = "ui_focus" }
68 -"ui.statusline" = { fg = "ui_minor", bg = "ui_backdrop" }
68 +"ui.statusline" = { fg = "ui_normal", bg = "ui_backdrop" }
69 69 "ui.statusline.separator" = { fg = "ui_unfocus", bg = "ui_backdrop" }
70 70 "ui.statusline.insert" = { fg = "ui_important_global", modifiers = ["bold"] }
71 71 "ui.statusline.select" = { fg = "ui_focus", modifiers = ["bold"] }
72 -"ui.statusline.inactive" = { fg = "ui_unfocus", bg = "ui_backdrop" }
72 +"ui.statusline.inactive" = { fg = "ui_minor", bg = "ui_backdrop" }
74 -"ui.bufferline" = { fg = "ui_minor", bg = "ui_backdrop" }
74 +"ui.bufferline" = { fg = "ui_normal", bg = "ui_backdrop" }
75 75 "ui.bufferline.active" = { fg = "ui_important_global", bg = "ui_unfocus", modifiers = [
76 76 "bold",
77 -], underline = { style = "double_line", color = "ui_backdrop" } }
77 +], underline = { style = "double_line", color = "ui_important_global" } }
79 -"ui.gutter" = { bg = "ui_backdrop" }
79 +"ui.gutter" = { bg = "backdrop" }
81 81 "ui.debug.breakpoint" = { fg = "ui_important_global" }
82 82 "ui.debug.active" = { fg = "ui_important_global" }
121 121 [palette]
123 123 accent = "#800080"
124 -backdrop = "#c7c7c7"
125 -debug = "#ff00ff"
126 -error = "#67031e"
127 -focus = "#373f3c"
128 -important_global = "#551496"
129 -important_local = "#1d0733"
130 -info = "#3a7f9f"
131 -minor = "#6b6b6b"
132 -normal = "#131313"
133 -ui_accent = "#7c047c"
134 -ui_backdrop = "#dadada"
135 -ui_focus = "#3a3b3b"
136 -ui_important_global = "#551991"
137 -ui_important_local = "#1d0931"
138 -ui_minor = "#7e7e7e"
139 -ui_normal = "#000000"
140 -ui_unfocus = "#3a3b3b"
141 -unfocus = "#7e8e88"
142 -warning = "#9e7827"
124 +backdrop = "#e3e3e3"
125 +debug = "#3dd45d"
126 +error = "#f27a9a"
127 +focus = "#646464"
128 +important_global = "#48256e"
129 +important_local = "#643398"
130 +info = "#e7f0f3"
131 +minor = "#878787"
132 +normal = "#494949"
133 +ui_accent = "#d43dd4"
134 +ui_backdrop = "#c7c7c7"
135 +ui_focus = "#646464"
136 +ui_important_global = "#9170b5"
137 +ui_important_local = "#ae95c8"
138 +ui_minor = "#d0d0d0"
139 +ui_normal = "#929292"
140 +ui_unfocus = "#c9c9c9"
141 +unfocus = "#c9c9c9"
142 +warning = "#f1e8d6"

nushell/config.nu

Modified
8 8 use svn.nu *
9 9 use openssl.nu *
10 10 use pacnew.nu
11 +use syncthing.nu
12 13 # CUSTOM COMPLETIONS
13 14 use svn-completions.nu *

pop-os.symlinks

Modified
7 7 cargo/config.toml
8 8 ~/.cargo/config.toml
10 +bat/config
11 +~/.config/bat/config
10 13 nushell/completions
11 14 ~/.config/nushell/completions
34 37 wezterm
35 38 ~/.config/wezterm
40 +wezterm/wezterm.service
41 +~/.config/systemd/user/wezterm.service
37 43 helix/config.toml
38 44 ~/.config/helix/config.toml

tools/cargo-tools.nu

Modified
28 28 [ "diskonaut" "diskonaut" [] ]
29 29 [ "menyoki" "menyoki" [] ]
30 30 [ "zoxide" "zoxide" [] ]
31 + [ "difftastic" "difft" []]
31 32 [ "grex" "grex" [] ]
32 33 [ "xh" "xh" [] ]
33 34 [ "comrak" "comrak" [] ]

tools/vivid_themes.nu

Added
new file mode 100755
1 +#!/usr/bin/env nu
3 +def main [] {
4 + (vivid themes) |
5 + lines |
6 + str trim |
7 + each { |theme|
8 + print $"theme: (ansi black_bold)($theme)(ansi reset)"
9 + with-env { LS_COLORS: (vivid generate $theme) } {
10 + exa
11 + print "\n"
12 + }
13 + }

wezterm/bugabinga/dark_mode.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +-- wezterm.gui is not available to the mux server, so take care to
4 +-- do something reasonable when this config is evaluated by the mux
5 +local get_appearance = function()
6 + if wez.gui then
7 + return wez.gui.get_appearance()
8 + end
9 + return 'Dark'
10 +end
12 +local scheme_for_appearance = function(appearance)
13 + if appearance:find 'Dark' then
14 + return 'nugu-dark'
15 + else
16 + return 'nugu-light'
17 + end
18 +end
20 +wez.on('window-config-reloaded', function(window)
21 + local overrides = window:get_config_overrides() or {}
22 + local appearance = window:get_appearance()
23 + local scheme = scheme_for_appearance(appearance)
24 + if overrides.color_scheme ~= scheme then
25 + overrides.color_scheme = scheme
26 + window:set_config_overrides(overrides)
27 + end
28 +end)
30 +return scheme_for_appearance(get_appearance())

wezterm/bugabinga/key_binds.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
2 +local leader = { key = 'Grave', mods = 'CTRL', timeout_milliseconds = 1000 }
4 +local resize_pane_mode = 'ﭕ Resize Pane Mode'
5 +local activate_pane_mode = ' Activate Pane Mode'
6 +local font_size_mode = ' Change Font Size Mode'
8 +local keys = {
9 + -- Modes
10 + {
11 + key = 'r',
12 + mods = 'LEADER',
13 + action = wez.action.ActivateKeyTable {
14 + name = resize_pane_mode,
15 + one_shot = false,
16 + },
17 + },
18 + {
19 + key = 'Grave',
20 + mods = 'LEADER|CTRL',
21 + action = wez.action.ActivateKeyTable {
22 + name = activate_pane_mode,
23 + one_shot = false,
24 + },
25 + },
26 + {
27 + key = 'a',
28 + mods = 'LEADER',
29 + action = wez.action.PaneSelect,
30 + },
31 + {
32 + key = 'f',
33 + mods = 'LEADER',
34 + action = wez.action.TogglePaneZoomState,
35 + },
36 + -- global actions
37 + {
38 + key = 'F2',
39 + action = wez.action.SwitchWorkspaceRelative(-1),
40 + },
41 + {
42 + key = 'F3',
43 + action = wez.action.SwitchWorkspaceRelative(1),
44 + },
45 + {
46 + key = 'F5',
47 + action = wez.action.ReloadConfiguration,
48 + },
49 + {
50 + key = 'F11',
51 + action = wez.action.ToggleFullScreen,
52 + },
53 + {
54 + key = 'F12',
55 + action = wez.action.ShowDebugOverlay,
56 + },
57 + -- change font size
58 + {
59 + key = '0',
60 + mods = 'LEADER',
61 + action = wez.action.ActivateKeyTable {
62 + name = font_size_mode,
63 + one_shot = false,
64 + },
65 + },
66 + -- open unicode/emoji picker
67 + {
68 + key = 'u',
69 + mods = 'LEADER',
70 + action = wez.action.CharSelect {
71 + copy_on_select = true,
72 + copy_to = 'ClipboardAndPrimarySelection'
73 + },
74 + },
75 + -- Copy and Paste
76 + {
77 + key = 'c',
78 + mods = 'CTRL|SHIFT',
79 + action = wez.action.CopyTo 'Clipboard',
80 + },
81 + {
82 + key = 'v',
83 + mods = 'CTRL|SHIFT',
84 + action = wez.action.PasteFrom 'Clipboard',
85 + },
86 + -- Splitting Panes
87 + {
88 + key = 'v',
89 + mods = 'LEADER',
90 + action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
91 + },
92 + {
93 + key = 'h',
94 + mods = 'LEADER',
95 + action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' },
96 + },
97 + -- Tabs
98 + {
99 + key = 't',
100 + mods = 'LEADER',
101 + action = wez.action.SpawnTab 'CurrentPaneDomain',
102 + },
104 + key = 'w',
105 + mods = 'LEADER',
106 + action = wez.action.CloseCurrentPane { confirm = true },
107 + },
109 + key = 'Tab',
110 + mods = 'LEADER|CTRL',
111 + action = wez.action.ActivateTabRelative(1),
112 + },
114 + key = 'Tab',
115 + mods = 'LEADER|SHIFT',
116 + action = wez.action.ActivateTabRelative(-1),
117 + },
118 + -- Search all Actions
120 + key = 'p',
121 + mods = 'LEADER',
122 + action = wez.action.ActivateCommandPalette,
123 + },
124 + -- Quit
126 + key = 'q',
127 + mods = 'LEADER',
128 + action = wez.action.QuitApplication,
129 + },
131 +-- Navigate Tabs by LEADER+n
132 +for i = 1, 8 do
133 + -- CTRL+ALT + number to activate that tab
134 + table.insert(keys, {
135 + key = tostring(i),
136 + mods = 'LEADER',
137 + action = wez.action.ActivateTab(i - 1),
138 + })
139 +end
141 +local key_tables = {
142 + [resize_pane_mode] = {
143 + { key = 'LeftArrow', action = wez.action.AdjustPaneSize { 'Left', 1 } },
144 + { key = 'h', action = wez.action.AdjustPaneSize { 'Left', 1 } },
146 + { key = 'RightArrow', action = wez.action.AdjustPaneSize { 'Right', 1 } },
147 + { key = 'l', action = wez.action.AdjustPaneSize { 'Right', 1 } },
149 + { key = 'UpArrow', action = wez.action.AdjustPaneSize { 'Up', 1 } },
150 + { key = 'k', action = wez.action.AdjustPaneSize { 'Up', 1 } },
152 + { key = 'DownArrow', action = wez.action.AdjustPaneSize { 'Down', 1 } },
153 + { key = 'j', action = wez.action.AdjustPaneSize { 'Down', 1 } },
155 + -- Cancel the mode
156 + { key = 'Escape', action = 'PopKeyTable' },
157 + { key = 'Enter', action = 'PopKeyTable' },
158 + },
159 + [activate_pane_mode] = {
160 + { key = 'LeftArrow', action = wez.action.ActivatePaneDirection 'Left' },
161 + { key = 'h', action = wez.action.ActivatePaneDirection 'Left' },
163 + { key = 'RightArrow', action = wez.action.ActivatePaneDirection 'Right' },
164 + { key = 'l', action = wez.action.ActivatePaneDirection 'Right' },
166 + { key = 'UpArrow', action = wez.action.ActivatePaneDirection 'Up' },
167 + { key = 'k', action = wez.action.ActivatePaneDirection 'Up' },
169 + { key = 'DownArrow', action = wez.action.ActivatePaneDirection 'Down' },
170 + { key = 'j', action = wez.action.ActivatePaneDirection 'Down' },
172 + -- Cancel the mode
173 + { key = 'Escape', action = 'PopKeyTable' },
174 + { key = 'Enter', action = 'PopKeyTable' },
175 + },
176 + [font_size_mode] = {
177 + { key = '+', action = wez.action.IncreaseFontSize },
178 + { key = '-', action = wez.action.DecreaseFontSize },
179 + { key = '=', action = wez.action.ResetFontSize },
181 + { key = 'Escape', action = 'PopKeyTable' },
182 + },
185 +return {
186 + leader = leader,
187 + keys = keys,
188 + key_tables = key_tables,

wezterm/bugabinga/nugu.lua

Modified
1 1 return {
2 - ['nugu-dark'] = {
2 + ['nugu-dark'] = {
3 3 -- The default text color
4 - foreground = '#e2e2e2',
4 + foreground = '#cfcfcf',
5 5 -- The default background color
6 - background = '#000000',
6 + background = '#131313',
8 8 -- Overrides the cell background color when the current cell is occupied by the
9 9 -- cursor and the cursor style is set to Block
10 - cursor_bg = '#1e011e',
10 + cursor_bg = '#7a067a',
11 11 -- Overrides the text color when the current cell is occupied by the cursor
12 12 cursor_fg = '#5f368d',
13 13 -- Specifies the border color of the cursor when the cursor style is set to Block,
14 14 -- or the color of the vertical or horizontal bar when the cursor style is set to
15 15 -- Bar or Underline.
16 - cursor_border = '#1e011e',
16 + cursor_border = '#7a067a',
18 18 -- the foreground color of selected text
19 - selection_fg = '#4c2b72',
19 + selection_fg = '#cfcfcf',
20 20 -- the background color of selected text
21 - selection_bg = '#788984',
21 + selection_bg = '#4c2b72',
23 23 -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
24 24 scrollbar_thumb = '#121212',
27 27 split = '#121212',
29 29 ansi = {
30 - '#cfcfcf', -- black
31 - '#740523', -- red
32 - '#4187a7', -- green
33 - '#a7802d', -- yellow
34 - '#7a3bc3', -- blue
35 - '#800080', -- magenta
36 - '#a5bdb6', -- cyan
37 - '#727272', -- white
30 + '#5d355c',
31 + '#c41653',
32 + '#acc1a0',
33 + '#a08d7b',
34 + '#6d15c0',
35 + '#c015c0',
36 + '#929396',
37 + '#c7c7c7',
40 40 brights = {
41 - '#e9e9e9',
42 - '#9c1035',
43 - '#679cb4',
44 - '#be9949',
45 - '#966cc5',
46 - '#aa09aa',
47 - '#c8cdcc',
48 - '#8b8b8b',
41 + '#9d9d9d',
42 + '#ea4571',
43 + '#a6a78f',
44 + '#e0cfaa',
45 + '#8940ea',
46 + '#ea3fea',
47 + '#c0d5df',
48 + '#f2eef1',
51 51 -- Since: 20220319-142410-0fcdea07
53 53 -- holding input pending the result of input composition, change the cursor
54 54 -- to this color to give a visual cue about the compose state.
55 55 compose_cursor = '#788984',
56 - visual_bell = '#5f368d',
56 + -- Colors for copy_mode and quick_select
57 + -- available since: 20220807-113146-c2fee766
58 + -- In copy_mode, the color of the active text is:
59 + -- 1. copy_mode_active_highlight_* if additional text was selected using the mouse
60 + -- 2. selection_* otherwise
61 + copy_mode_active_highlight_bg = { Color = '#5f368d' },
62 + copy_mode_active_highlight_fg = { Color = '#cfcfcf' },
63 + copy_mode_inactive_highlight_bg = { Color = '#121212' },
64 + copy_mode_inactive_highlight_fg = { Color = '#727272' },
66 + quick_select_label_bg = { Color = '#5f368d' },
67 + quick_select_label_fg = { Color = '#cfcfcf' },
68 + quick_select_match_bg = { Color = '#4c2b72' },
69 + quick_select_match_fg = { Color = '#cfcfcf' },
58 - ['nugu-light'] = {
71 + ['nugu-light'] = {
59 72 -- The default text color
60 - foreground = '#000000',
73 + foreground = '#494949',
61 74 -- The default background color
62 - background = '#dadada',
75 + background = '#e3e3e3',
64 77 -- Overrides the cell background color when the current cell is occupied by the
65 78 -- cursor and the cursor style is set to Block
66 - cursor_bg = '#7c047c',
79 + cursor_bg = '#d43dd4',
67 80 -- Overrides the text color when the current cell is occupied by the cursor
68 - cursor_fg = '#551991',
81 + cursor_fg = '#9170b5',
69 82 -- Specifies the border color of the cursor when the cursor style is set to Block,
70 83 -- or the color of the vertical or horizontal bar when the cursor style is set to
71 84 -- Bar or Underline.
72 - cursor_border = '#7c047c',
85 + cursor_border = '#d43dd4',
74 87 -- the foreground color of selected text
75 - selection_fg = '#1d0931',
88 + selection_fg = '#494949',
76 89 -- the background color of selected text
77 - selection_bg = '#3a3b3b',
90 + selection_bg = '#ae95c8',
79 92 -- The color of the scrollbar 'thumb'; the portion that represents the current viewport
80 - scrollbar_thumb = '#3a3b3b',
93 + scrollbar_thumb = '#c9c9c9',
82 95 -- The color of the split lines between panes
83 - split = '#3a3b3b',
96 + split = '#c9c9c9',
85 98 ansi = {
86 - '#131313', -- black
87 - '#67031e', -- red
88 - '#3a7f9f', -- green
89 - '#9e7827', -- yellow
90 - '#1d0733', -- blue
91 - '#800080', -- magenta
92 - '#373f3c', -- cyan
93 - '#6b6b6b', -- white
99 + '#060406',
100 + '#4a081f',
101 + '#668355',
102 + '#55493d',
103 + '#280845',
104 + '#450845',
105 + '#4e4f51',
106 + '#838383',
96 109 brights = {
97 - '#000000',
98 - '#330411',
99 - '#355e71',
100 - '#6e5624',
101 - '#040106',
102 - '#490449',
103 - '#212121',
104 - '#525252',
110 + '#595959',
111 + '#961134',
112 + '#60624c',
113 + '#bb9647',
114 + '#481091',
115 + '#901090',
116 + '#6599b1',
117 + '#b6a1b4',
107 120 -- Since: 20220319-142410-0fcdea07
108 121 -- When the IME, a dead key or a leader key are being processed and are effectively
109 122 -- holding input pending the result of input composition, change the cursor
110 123 -- to this color to give a visual cue about the compose state.
111 - compose_cursor = '#3a3b3b',
112 - visual_bell = '#551991',
124 + compose_cursor = '#646464',
125 + -- Colors for copy_mode and quick_select
126 + -- available since: 20220807-113146-c2fee766
127 + -- In copy_mode, the color of the active text is:
128 + -- 1. copy_mode_active_highlight_* if additional text was selected using the mouse
129 + -- 2. selection_* otherwise
130 + copy_mode_active_highlight_bg = { Color = '#9170b5' },
131 + copy_mode_active_highlight_fg = { Color = '#494949' },
132 + copy_mode_inactive_highlight_bg = { Color = '#c9c9c9' },
133 + copy_mode_inactive_highlight_fg = { Color = '#878787' },
135 + quick_select_label_bg = { Color = '#9170b5' },
136 + quick_select_label_fg = { Color = '#494949' },
137 + quick_select_match_bg = { Color = '#ae95c8' },
138 + quick_select_match_fg = { Color = '#494949' },
114 - }

wezterm/bugabinga/status.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +local DELIMITER = ' · '
5 +local zoomed = function(pane)
6 + local tab = pane:tab()
7 + local any_is_zoomed = false
8 + for _, info in ipairs(tab:panes_with_info()) do
9 + if info.is_zoomed then
10 + any_is_zoomed = true
11 + end
12 + end
13 + return any_is_zoomed and '🔎 Zoomed Pane' .. DELIMITER or ''
14 +end
16 +-- Show which key table is active in the status area
17 +wez.on('update-right-status', function(window, pane)
18 + local name = window:active_key_table()
19 + local current_workspace = ' ' .. window:active_workspace() .. DELIMITER
20 + local zoomed_state = zoomed(pane)
22 + local status = name or current_workspace
23 + window:set_right_status(zoomed_state .. status)
24 +end)

wezterm/bugabinga/workspaces.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
2 +local mux = wez.mux
4 +local default_ws = 'default'
5 +local nugu_ws = 'nugu development'
6 +local reign_ws = 'reign development'
7 +local dork_ws = 'dorkfiles editing'
9 +local HOME = os.getenv 'HOME'
10 +local WORKSPACE = HOME .. '/Workspace'
12 +wez.on('gui-attached', function()
13 + -- maximize all displayed windows on startup
14 + local workspace = mux.get_active_workspace()
15 + for _, window in ipairs(mux.all_windows()) do
16 + if window:get_workspace() == workspace then
17 + window:gui_window():maximize()
18 + end
19 + end
20 +end)
22 +-- NOTE(oli): errors in here do not show up as configuration errors
23 +-- check the log file in the wezterm mux server runtime directory
24 +-- e.g. /run/user/1000/wezterm/log
25 +wez.on('mux-startup', function()
26 + local nugu_tab, nugu_pane, nugu_window = mux.spawn_window { cwd = WORKSPACE .. '/nugu', workspace = nugu_ws }
27 + local nugu_top_pane = nugu_pane:split { args = { 'hx', '.' }, direction = 'Top', size = 0.82 }
28 + nugu_top_pane:split { direction = 'Left', size = 0.66 }
29 + nugu_tab:set_title 'Nugu Development'
31 + local reign_tab, reign_pane, reign_window = mux.spawn_window { args = { 'hx', '.' }, cwd = WORKSPACE .. '/reign', workspace =
32 + reign_ws }
33 + local reign_right_pane = reign_pane:split { direction = 'Right', size = 0.36 }
34 + reign_right_pane:split { direction = 'Bottom', size = 0.33 }
35 + reign_tab:set_title 'Reign Development'
36 + reign_right_pane:send_text 'watch src {clear; just build}\n'
37 + reign_pane:activate()
39 + local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = WORKSPACE .. '/dotfiles', workspace = dork_ws }
40 + local dork_top_pane = dork_pane:split { direction = 'Top', size = 0.55 }
41 + dork_top_pane:split { args = { 'hx', '.' }, direction = 'Left', size = 0.7 }
42 + dork_tab:set_title 'Dorkfiles Editing'
43 + --TODO(oli): create tabs for configs in dorkfiles that i edit often (wezterm, helix, bootstripper,...)
45 + local default_tab, default_pane, default_window = mux.spawn_window { workspace = default_ws }
46 + local default_top_pane = default_pane:split { direction = 'Top', size = 0.5 }
47 + default_pane:split { direction = 'Right', size = 0.5 }
48 + default_top_pane:split { direction = 'Right', size = 0.5 }
49 + default_window:spawn_tab { args = { 'btm' } }
50 + default_tab:set_title 'Default'
51 + default_top_pane:activate()
53 + mux.set_active_workspace(default_ws)
54 +end)

wezterm/wezterm.lua

Modified
1 1 local wez = require 'wezterm'
2 2 local nugu = require 'bugabinga.nugu'
4 -local color_schemes = nugu
4 +local key_binds = require 'bugabinga.key_binds'
5 +local dark_mode = require 'bugabinga.dark_mode'
6 +local workspaces = require 'bugabinga.workspaces'
7 +local status = require 'bugabinga.status'
6 9 local hostname = wez.hostname()
7 10 local enable_wayland = false
20 23 window_decorations = 'TITLE|RESIZE'
23 --- Show which key table is active in the status area
24 -wez.on('update-right-status', function(window, pane)
25 - local name = window:active_key_table()
26 - if name then
27 - name = 'TABLE: ' .. name
28 - end
29 - window:set_right_status(name or '')
30 -end)
32 --- wezterm.gui is not available to the mux server, so take care to
33 --- do something reasonable when this config is evaluated by the mux
34 -function get_appearance()
35 - if wez.gui then
36 - return wez.gui.get_appearance()
37 - end
38 - return 'Dark'
39 -end
41 -function scheme_for_appearance(appearance)
42 - if appearance:find 'Dark' then
43 - return 'nugu-dark'
44 - else
45 - return 'nugu-light'
46 - end
47 -end
49 -wez.on("window-config-reloaded", function(window, pane)
50 - local overrides = window:get_config_overrides() or {}
51 - local appearance = window:get_appearance()
52 - local scheme = scheme_for_appearance(appearance)
53 - if overrides.color_scheme ~= scheme then
54 - overrides.color_scheme = scheme
55 - window:set_config_overrides(overrides)
56 - end
57 -end)
59 -local leader = { key = 'Space', mods = 'CTRL|SHIFT', timeout_milliseconds = 1000 }
60 -local keys = {
61 - -- CTRL+SHIFT+Space, followed by 'r' will put us in resize-pane
62 - -- mode until we cancel that mode.
63 - {
64 - key = 'r',
65 - mods = 'LEADER',
66 - action = wez.action.ActivateKeyTable {
67 - name = 'resize_pane',
68 - one_shot = false,
69 - },
70 - },
72 - -- CTRL+SHIFT+Space, followed by 'a' will put us in activate-pane
73 - -- mode until we press some other key or until 1 second (1000ms)
74 - -- of time elapses
75 - {
76 - key = 'a',
77 - mods = 'LEADER',
78 - action = wez.action.ActivateKeyTable {
79 - name = 'activate_pane',
80 - timeout_milliseconds = 1000,
81 - },
82 - },
84 - -- Copy
85 - {
86 - key = 'c',
87 - mods = 'CTRL|SHIFT',
88 - action = wez.action.CopyTo 'Clipboard',
89 - },
90 - -- Paste
91 - {
92 - key = 'v',
93 - mods = 'CTRL|SHIFT',
94 - action = wez.action.PasteFrom 'Clipboard',
95 - },
96 - -- Split left-right
97 - {
98 - key = 'v',
99 - mods = 'LEADER',
100 - action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
101 - },
102 - -- Split top-bottom
103 - {
104 - key = 'h',
105 - mods = 'LEADER',
106 - action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' },
107 - },
108 - {
109 - key = 't',
110 - mods = 'LEADER',
111 - action = wez.action.SpawnTab 'CurrentPaneDomain',
112 - },
113 - {
114 - key = 'w',
115 - mods = 'LEADER',
116 - action = wez.action.CloseCurrentTab { confirm = true },
117 - },
118 - {
119 - key = 'p',
120 - mods = 'LEADER',
121 - action = wez.action.ShowLauncherArgs { flags = 'FUZZY|TABS|LAUNCH_MENU_ITEMS|DOMAINS|KEY_ASSIGNMENTS|WORKSPACES|COMMANDS'}
122 - },
123 - {
124 - key = 'q',
125 - mods = 'LEADER',
126 - action = wez.action.QuitApplication,
127 - },
130 -local key_tables = {
131 - -- Defines the keys that are active in our resize-pane mode.
132 - -- Since we're likely to want to make multiple adjustments,
133 - -- we made the activation one_shot=false. We therefore need
134 - -- to define a key assignment for getting out of this mode.
135 - -- 'resize_pane' here corresponds to the name="resize_pane" in
136 - -- the key assignments above.
137 - resize_pane = {
138 - { key = 'LeftArrow', action = wez.action.AdjustPaneSize { 'Left', 1 } },
139 - { key = 'h', action = wez.action.AdjustPaneSize { 'Left', 1 } },
141 - { key = 'RightArrow', action = wez.action.AdjustPaneSize { 'Right', 1 } },
142 - { key = 'l', action = wez.action.AdjustPaneSize { 'Right', 1 } },
144 - { key = 'UpArrow', action = wez.action.AdjustPaneSize { 'Up', 1 } },
145 - { key = 'k', action = wez.action.AdjustPaneSize { 'Up', 1 } },
147 - { key = 'DownArrow', action = wez.action.AdjustPaneSize { 'Down', 1 } },
148 - { key = 'j', action = wez.action.AdjustPaneSize { 'Down', 1 } },
150 - -- Cancel the mode by pressing escape
151 - { key = 'Escape', action = 'PopKeyTable' },
152 - },
154 - -- Defines the keys that are active in our activate-pane mode.
155 - -- 'activate_pane' here corresponds to the name="activate_pane" in
156 - -- the key assignments above.
157 - activate_pane = {
158 - { key = 'LeftArrow', action = wez.action.ActivatePaneDirection 'Left' },
159 - { key = 'h', action = wez.action.ActivatePaneDirection 'Left' },
161 - { key = 'RightArrow', action = wez.action.ActivatePaneDirection 'Right' },
162 - { key = 'l', action = wez.action.ActivatePaneDirection 'Right' },
164 - { key = 'UpArrow', action = wez.action.ActivatePaneDirection 'Up' },
165 - { key = 'k', action = wez.action.ActivatePaneDirection 'Up' },
167 - { key = 'DownArrow', action = wez.action.ActivatePaneDirection 'Down' },
168 - { key = 'j', action = wez.action.ActivatePaneDirection 'Down' },
169 - },
172 27 return {
173 28 font = font,
174 29 font_size = font_size,
175 - color_scheme = scheme_for_appearance(get_appearance()),
176 - color_schemes = color_schemes,
30 + warn_about_missing_glyphs = false,
31 + color_scheme = dark_mode,
32 + color_schemes = nugu,
177 33 default_prog = { 'nu', '--login', '--interactive' },
34 + default_cursor_style = 'SteadyBlock',
35 + cursor_blink_rate = 0,
36 + cursor_thickness = '1.0cell',
178 37 window_decorations = window_decorations,
179 38 enable_tab_bar = true,
180 39 -- if this is hidden, we cannot see the right status area
196 55 bottom = 8,
198 57 disable_default_key_bindings = true,
199 - leader = leader,
200 - keys = keys,
201 - key_tables = key_tables,
58 + leader = key_binds.leader,
59 + keys = key_binds.keys,
60 + key_tables = key_binds.key_tables,
61 + unix_domains = {
62 + {
63 + name = 'unix',
64 + } },
65 + default_domain = 'unix',
66 + default_gui_startup_args = { 'connect', 'unix' },
67 + -- TODO(oli): create different launchers per OS
68 + launch_menu = {
69 + {
70 + label = 'Bash',
71 + args = {'bash', '-l'},
72 + }
73 + }

wezterm/wezterm.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Wezterm Multiplexing Server
4 +[Service]
5 +ExecStart=/usr/bin/wezterm-mux-server
6 +Restart=on-failure
8 +[Install]
9 +WantedBy=default.target

x230.symlinks

Modified
37 37 wezterm
38 38 ~/.config/wezterm
40 +wezterm/wezterm.service
41 +~/.config/systemd/user/wezterm.service
40 43 helix/config.toml
41 44 ~/.config/helix/config.toml

xplr/init.lua

Modified
1 1 ---@diagnostic disable
3 3 -- See https://xplr.dev/en/upgrade-guide
4 -version = "0.20.1"
4 +version = "0.21.1"
6 6 local xplr = xplr