Skip to content

Commit

Permalink
home-manager/wezterm: add local.lua configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 12, 2024
1 parent 5f1f7bc commit f908d29
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion home-manager/desktop/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ in
act.SendKey { key = 'L', mods = 'CTRL' },
},
},
-- Reload config
{
key = 'r',
mods = 'CMD|SHIFT',
action = wezterm.action.ReloadConfiguration,
},
}
config.mouse_bindings = {
-- Change the default click behavior so that it only selects
Expand Down Expand Up @@ -153,7 +159,6 @@ in
mods = 'CTRL',
action = act.IncreaseFontSize,
},
-- Scrolling down while holding CTRL decreases the font size
{
event = { Down = { streak = 1, button = { WheelDown = 1 } } },
Expand All @@ -162,6 +167,17 @@ in
},
}
-- cross-platform function to get the path from filename
function getPath(str)
return str:match("(.*[/\\])")
end
-- load local configuration
local local_config, error = loadfile(getPath(wezterm.config_file) .. "local.lua")
if error == nil then
for k, v in pairs(local_config()) do config[k] = v end
end
return config
'';
};
Expand Down

0 comments on commit f908d29

Please sign in to comment.