local wez = require 'wezterm' local is_win32 = wez.target_triple:match 'windows' local dotfiles_path = is_win32 and 'C:/Users/okr/Workspaces/dotfiles' or wez.home_dir .. '/Workspace/dotfiles' return function ( _ ) wez.on( 'gui-startup', function ( cmd ) local tab, pane, window = wez.mux.spawn_window( cmd or { workspace = 'dotfiles', cwd = dotfiles_path, } ) local gui_window = window:gui_window(); if not os.getenv('WAYLAND_DISPLAY') and not os.getenv('NIRI_SOCKET') then gui_window:maximize() end end ) end