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)
wezterm/bugabinga/workspaces.lua
Modified+19 / −9 text lines
11local wez = require 'wezterm'local wez = require 'wezterm' 22local mux = wez.muxlocal mux = wez.mux 3+local win32 = wez.target_triple:find'windows' 55local get_my_code_workspace = function()local get_my_code_workspace = function() 6- if wez.target_triple:find('windows') then 77 return 'W:' return 'W:' 99 return os.getenv 'HOME' .. '/Workspace' return os.getenv 'HOME' .. '/Workspace' 1313local WORKSPACE = get_my_code_workspace()local WORKSPACE = get_my_code_workspace() 15-wez.on('gui-attached', function() 16+local maximize_window = function() 1717 local workspace = mux.get_active_workspace() local workspace = mux.get_active_workspace() 1818 for _, window in ipairs(mux.all_windows()) do for _, window in ipairs(mux.all_windows()) do 1919 if window:get_workspace() == workspace then if window:get_workspace() == workspace then 2020 window:gui_window():maximize() window:gui_window():maximize() 28-wez.on('mux-startup', function() 25+local setup_workspaces = function() 2926 local dork_ws = 'dorkfiles editing' local dork_ws = 'dorkfiles editing' 3027 local dork_cwd = WORKSPACE .. '/dotfiles' local dork_cwd = WORKSPACE .. '/dotfiles' 3128 local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws } local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws } 5148 default_top_pane:activate() default_top_pane:activate() 5350 mux.set_active_workspace(default_ws) mux.set_active_workspace(default_ws) 53+wez.on('gui-attached', function() 56+ if win32 then setup_workspaces() end 62+wez.on('mux-startup', function() wezterm/wezterm.lua
Modified+5 / −17 text lines
44local key_binds = require 'bugabinga.key_binds'local key_binds = require 'bugabinga.key_binds' 55local dark_mode = require 'bugabinga.dark_mode'local dark_mode = require 'bugabinga.dark_mode' 6-local workspaces = require 'bugabinga.workspaces' 78local status = require 'bugabinga.status'local status = require 'bugabinga.status' 910local hostname = wez.hostname()local hostname = wez.hostname() 3435 warn_about_missing_glyphs = false, warn_about_missing_glyphs = false, 3536 color_scheme = dark_mode, color_scheme = dark_mode, 3637 color_schemes = nugu, color_schemes = nugu, 37- window_background_opacity = 1.0, 38+ window_background_opacity = 0.69, 40+ win32_system_backdrop = 'Acrylic', 41+ default_cwd = wez.home_dir, 4142 default_prog = { 'nu' }, default_prog = { 'nu' }, 4243 default_cursor_style = 'SteadyBlock', default_cursor_style = 'SteadyBlock', 4344 cursor_blink_rate = 0, cursor_blink_rate = 0, 7172 leader = key_binds.leader, leader = key_binds.leader, 7273 keys = key_binds.keys, keys = key_binds.keys, 7374 key_tables = key_binds.key_tables, key_tables = key_binds.key_tables, 78- default_domain = 'unix', 79- default_gui_startup_args = { 'connect', 'unix' }, 84- args = {'bash', '-l'},