repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

ff468e212859de6a94dd39a946ff804df89d2b11

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

+24 / −26 text lines

Diff layout

wezterm/bugabinga/workspaces.lua

Modified

+19 / −9 text lines

11local wez = require 'wezterm'
22local mux = wez.mux
3
3local win32 = wez.target_triple:find'windows'
55local get_my_code_workspace = function()
6 if wez.target_triple:find('windows') then
6 if win32 then
77 return 'W:'
88 else
99 return os.getenv 'HOME' .. '/Workspace'
1313local WORKSPACE = get_my_code_workspace()
15wez.on('gui-attached', function()
16 -- maximize all displayed windows on startup
15-- maximize all displayed windows
16local maximize_window = function()
1717 local workspace = mux.get_active_workspace()
1818 for _, window in ipairs(mux.all_windows()) do
1919 if window:get_workspace() == workspace then
2020 window:gui_window():maximize()
2121 end
2222 end
23end)
23end
25-- NOTE(oli): errors in here do not show up as configuration errors
26-- check the log file in the wezterm mux server runtime directory
27-- e.g. /run/user/1000/wezterm/log
28wez.on('mux-startup', function()
25local setup_workspaces = function()
2926 local dork_ws = 'dorkfiles editing'
3027 local dork_cwd = WORKSPACE .. '/dotfiles'
3128 local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws }
5148 default_top_pane:activate()
5350 mux.set_active_workspace(default_ws)
51end
53wez.on('gui-attached', function()
54 maximize_window()
55 -- mux server seems very slow on windows...
56 if win32 then setup_workspaces() end
57end)
59-- NOTE(oli): errors in here do not show up as configuration errors
60-- check the log file in the wezterm mux server runtime directory
61-- e.g. /run/user/1000/wezterm/log
62wez.on('mux-startup', function()
63 setup_workspaces()
5464end)

wezterm/wezterm.lua

Modified

+5 / −17 text lines

44local key_binds = require 'bugabinga.key_binds'
55local dark_mode = require 'bugabinga.dark_mode'
6local workspaces = require 'bugabinga.workspaces'
6-- TODO mux server seems slow.
7-- local workspaces = require 'bugabinga.workspaces'
78local status = require 'bugabinga.status'
910local hostname = wez.hostname()
3435 warn_about_missing_glyphs = false,
3536 color_scheme = dark_mode,
3637 color_schemes = nugu,
37 window_background_opacity = 1.0,
38 window_background_opacity = 0.69,
3839 -- nightly
39 -- win32_system_backdrop = 'Acrylic',
40 --default_cwd = wez.home_dir,
40 win32_system_backdrop = 'Acrylic',
41 default_cwd = wez.home_dir,
4142 default_prog = { 'nu' },
4243 default_cursor_style = 'SteadyBlock',
4344 cursor_blink_rate = 0,
7172 leader = key_binds.leader,
7273 keys = key_binds.keys,
7374 key_tables = key_binds.key_tables,
74 unix_domains = {
75 {
76 name = 'unix',
77 } },
78 default_domain = 'unix',
79 default_gui_startup_args = { 'connect', 'unix' },
80 -- TODO(oli): create different launchers per OS
81 launch_menu = {
82 {
83 label = 'Bash',
84 args = {'bash', '-l'},
85 }
86 }