repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

refactor(wezterm): replace hosts/ dir with runtime conditionals in options

21c23614e9262297b8f476e377631157b1904342

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (7)

+3 / −29 text lines

Diff layout

wezterm/bugabinga/hosts/NB-00718.lua

Deleted
deleted file mode 100644

+0 / −3 text lines

1return function ( cfg )
2-- cfg.default_domain = 'WSL:FedoraLinux-43'
3end

wezterm/bugabinga/hosts/desktop.lua

Deleted
deleted file mode 100644

+0 / −6 text lines

1return function ( cfg )
2 cfg.enable_wayland = true
3 cfg.max_fps = 144
4 cfg.font_size = 16
5end
6

wezterm/bugabinga/hosts/fedora.lua

Deleted
deleted file mode 100644

+0 / −5 text lines

1return function ( cfg )
2 cfg.enable_wayland = true
3 cfg.max_fps = 144
4 cfg.font_size = 16
5end

wezterm/bugabinga/hosts/init.lua

Deleted
deleted file mode 100644

+0 / −12 text lines

1local wez = require 'wezterm'
2
3return function ( cfg )
4 local hostname = wez.hostname()
5 local ok, host = pcall( require, 'bugabinga.hosts.' .. hostname )
6 if ok then
7 host( cfg )
8 else
9 local msg = 'unknown host ' .. hostname .. '. forgot to create new file in /bugabinga/hosts?'
10 wez.log_warn( msg )
11 end
12end

wezterm/bugabinga/hosts/x230.lua

Deleted
deleted file mode 100644

+0 / −2 text lines

1return function ( cfg )
2end

wezterm/bugabinga/options.lua

Modified

+3 / −0 text lines

1717 }
1818 cfg.unzoom_on_switch_pane = true
1919 cfg.scrollback_lines = 100000
21 cfg.enable_wayland = os.getenv('WAYLAND_DISPLAY') ~= nil
22 cfg.font_size = 13
2023end

wezterm/wezterm.lua

Modified

+0 / −1 text lines

1010require 'bugabinga.status' ( cfg )
1111require 'bugabinga.launch' ( cfg )
1212require 'bugabinga.exec_domains' ( cfg )
13require 'bugabinga.hosts' ( cfg )
1514-- logs key presses
1615-- cfg.debug_key_events = true,