2024-01-14 18:35:00 +01:00
|
|
|
local config = {}
|
|
|
|
|
2024-02-10 14:52:08 +01:00
|
|
|
function getHostname()
|
|
|
|
local handle = io.popen("hostname -s")
|
|
|
|
local result = handle:read("*a")
|
|
|
|
handle:close()
|
|
|
|
return string.gsub(result, "\n$", "")
|
|
|
|
end
|
|
|
|
|
2024-01-26 19:31:00 +01:00
|
|
|
config.color_scheme = "Catppuccin Mocha"
|
2024-01-14 18:35:00 +01:00
|
|
|
config.font = wezterm.font 'Hack Nerd Font Mono'
|
2024-02-10 14:52:08 +01:00
|
|
|
if getHostname() == "lilith" then
|
|
|
|
config.font_size = 15
|
|
|
|
else
|
|
|
|
config.font_size = 11
|
|
|
|
end
|
2024-01-14 18:35:00 +01:00
|
|
|
config.window_background_opacity = .8
|
|
|
|
--config.window_background_image = "/home/xqtc/dotfiles_new/walls/walls/SMT 40.png"
|
|
|
|
|
|
|
|
|
|
|
|
--config.window_background_image_hsb = {
|
|
|
|
-- -- Darken the background image by reducing it to 1/3rd
|
|
|
|
-- brightness = 0.1,
|
|
|
|
--
|
|
|
|
-- -- You can adjust the hue by scaling its value.
|
|
|
|
-- -- a multiplier of 1.0 leaves the value unchanged.
|
|
|
|
-- hue = .8,
|
|
|
|
--
|
|
|
|
-- -- You can adjust the saturation also.
|
|
|
|
-- saturation = 1,
|
|
|
|
--}
|
2024-02-11 02:01:29 +01:00
|
|
|
local arrowkeys = {
|
|
|
|
[1] = { "LeftArrow", "left" },
|
|
|
|
[2] = "RightArrow",
|
|
|
|
[3] = "UpArrow",
|
|
|
|
[4] = "DownArrow",
|
|
|
|
}
|
2024-01-14 18:35:00 +01:00
|
|
|
config.keys = {
|
|
|
|
{
|
|
|
|
key = 't',
|
|
|
|
mods = 'CTRL',
|
|
|
|
action = wezterm.action.SpawnTab 'DefaultDomain',
|
2024-02-11 02:01:29 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "LeftArrow",
|
|
|
|
mods = 'CTRL | SHIFT',
|
|
|
|
action = wezterm.action.SplitPane {
|
|
|
|
direction = 'Left',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "RightArrow",
|
|
|
|
mods = 'CTRL | SHIFT',
|
|
|
|
action = wezterm.action.SplitPane {
|
|
|
|
direction = 'Right',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "UpArrow",
|
|
|
|
mods = 'CTRL | SHIFT',
|
|
|
|
action = wezterm.action.SplitPane {
|
|
|
|
direction = 'Up',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key = "DownArrow",
|
|
|
|
mods = 'CTRL | SHIFT',
|
|
|
|
action = wezterm.action.SplitPane {
|
|
|
|
direction = 'Down',
|
|
|
|
},
|
|
|
|
},
|
2024-01-14 18:35:00 +01:00
|
|
|
}
|
2024-02-11 02:01:29 +01:00
|
|
|
|
2024-01-14 18:35:00 +01:00
|
|
|
for i = 1, 8 do
|
2024-02-10 14:52:08 +01:00
|
|
|
-- CTRL+ALT + number to activate that tab
|
|
|
|
table.insert(config.keys, {
|
|
|
|
key = tostring(i),
|
|
|
|
mods = 'CTRL',
|
|
|
|
action = wezterm.action.ActivateTab(i - 1),
|
|
|
|
})
|
2024-01-14 18:35:00 +01:00
|
|
|
end
|
|
|
|
|
2024-02-11 02:01:29 +01:00
|
|
|
|
|
|
|
for i in pairs(arrowkeys) do
|
|
|
|
table.insert(config.keys, {
|
|
|
|
key = tostring(i),
|
|
|
|
mods = 'CTRL',
|
|
|
|
action = wezterm.action.ActivateTab(i - 1),
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2024-01-14 18:35:00 +01:00
|
|
|
config.text_background_opacity = .4
|
2024-02-10 14:52:08 +01:00
|
|
|
config.enable_scroll_bar = false
|
2024-01-14 18:35:00 +01:00
|
|
|
config.enable_tab_bar = true
|
2024-01-29 15:41:12 +01:00
|
|
|
config.tab_bar_at_bottom = true
|
2024-02-11 02:01:29 +01:00
|
|
|
config.hide_mouse_cursor_when_typing = false
|
2024-02-10 14:52:08 +01:00
|
|
|
config.enable_wayland = true
|
2024-01-14 18:35:00 +01:00
|
|
|
config.front_end = "OpenGL"
|
|
|
|
config.warn_about_missing_glyphs = false
|
|
|
|
return config
|