Modular config files
This commit is contained in:
parent
ae68be083f
commit
9ad8c35fb6
33
colorscheme.lua
Normal file
33
colorscheme.lua
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
-- Color scheme
|
||||||
|
|
||||||
|
local colorscheme = {
|
||||||
|
background = '#101010',
|
||||||
|
foreground = '#BBBBBB',
|
||||||
|
|
||||||
|
cursor_bg = '#22785E',
|
||||||
|
cursor_fg = '#000000',
|
||||||
|
|
||||||
|
selection_fg = '#D3D7CF',
|
||||||
|
selection_bg = '#262626',
|
||||||
|
|
||||||
|
tab_bar = {
|
||||||
|
active_tab = {
|
||||||
|
bg_color = "#101010",
|
||||||
|
fg_color = "#BBBBBB",
|
||||||
|
},
|
||||||
|
inactive_tab = {
|
||||||
|
bg_color = "#232323",
|
||||||
|
fg_color = "#BBBBBB",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- #black, #red, #green, #yellow, #blue, #magenta, #cyan, #white
|
||||||
|
ansi = {
|
||||||
|
"#010101", "#d62222", "#3ba04d", "#f6e000", "#1958ff", "#b300b3", "#10bfaf", "#c6c6c6"
|
||||||
|
},
|
||||||
|
brights = {
|
||||||
|
"#606060", "#ff4444", "#3bd04d", "#dfff1f", "#01a9ff", "#f600f6", "#10efdf", "#e9e9e9"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
return colorscheme
|
29
keybindings.lua
Normal file
29
keybindings.lua
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
-- Keybindings
|
||||||
|
|
||||||
|
local wezterm = require 'wezterm'
|
||||||
|
|
||||||
|
local keybindings = {
|
||||||
|
{
|
||||||
|
key = 'h', mods = 'CTRL',
|
||||||
|
action = wezterm.action.SplitHorizontal
|
||||||
|
{
|
||||||
|
domain = 'CurrentPaneDomain'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key = 'v', mods = 'CTRL',
|
||||||
|
action = wezterm.action.SplitVertical
|
||||||
|
{
|
||||||
|
domain = 'CurrentPaneDomain'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key = 'w', mods = 'CTRL',
|
||||||
|
action = wezterm.action.CloseCurrentPane
|
||||||
|
{
|
||||||
|
confirm = true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
return keybindings
|
16
tab_and_pane.lua
Normal file
16
tab_and_pane.lua
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-- Setting related to tabs and panes
|
||||||
|
|
||||||
|
local wezterm = require 'wezterm'
|
||||||
|
local machine_specific = require("machine_specific")
|
||||||
|
|
||||||
|
local function tab_and_pane_settings(config)
|
||||||
|
config.use_fancy_tab_bar = false
|
||||||
|
config.enable_tab_bar = machine_specific.enable_tab_bar
|
||||||
|
|
||||||
|
config.inactive_pane_hsb = {
|
||||||
|
saturation = 1.0,
|
||||||
|
brightness = 0.4,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return tab_and_pane_settings
|
11
text.lua
Normal file
11
text.lua
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
-- Settings related to text and cursor
|
||||||
|
|
||||||
|
local wezterm = require 'wezterm'
|
||||||
|
|
||||||
|
local function text_settings(config)
|
||||||
|
config.font = wezterm.font 'IosevkaTermSlab Nerd Font Mono'
|
||||||
|
config.font_size = 11.0
|
||||||
|
config.cursor_blink_rate = 800
|
||||||
|
end
|
||||||
|
|
||||||
|
return text_settings
|
90
wezterm.lua
90
wezterm.lua
@ -1,85 +1,15 @@
|
|||||||
local wezterm = require 'wezterm'
|
local wezterm = require 'wezterm'
|
||||||
local config = {}
|
local config = {}
|
||||||
local machine_specific = require("machine_specific")
|
local keybindings = require("keybindings")
|
||||||
|
local colorscheme = require("colorscheme")
|
||||||
|
local window_settings = require("window")
|
||||||
|
local text_settings = require("text")
|
||||||
|
local tab_and_pane_settings = require("tab_and_pane")
|
||||||
|
|
||||||
config.font = wezterm.font 'IosevkaTermSlab Nerd Font Mono'
|
window_settings(config)
|
||||||
config.font_size = 11.0
|
tab_and_pane_settings(config)
|
||||||
|
text_settings(config)
|
||||||
config.cursor_blink_rate = 800
|
config.colors = colorscheme
|
||||||
|
config.keys = keybindings
|
||||||
config.window_padding = {
|
|
||||||
left = "3px",
|
|
||||||
right = 0,
|
|
||||||
top = "1px",
|
|
||||||
bottom = 0,
|
|
||||||
}
|
|
||||||
|
|
||||||
config.window_decorations = "NONE"
|
|
||||||
config.window_frame = {
|
|
||||||
inactive_titlebar_bg = '#2d2d2d',
|
|
||||||
active_titlebar_bg = '#232323',
|
|
||||||
}
|
|
||||||
|
|
||||||
config.use_fancy_tab_bar = false
|
|
||||||
config.enable_tab_bar = machine_specific.enable_tab_bar
|
|
||||||
|
|
||||||
config.colors = {
|
|
||||||
background = '#101010',
|
|
||||||
foreground = '#BBBBBB',
|
|
||||||
|
|
||||||
cursor_bg = '#22785E',
|
|
||||||
cursor_fg = '#000000',
|
|
||||||
|
|
||||||
selection_fg = '#D3D7CF',
|
|
||||||
selection_bg = '#262626',
|
|
||||||
|
|
||||||
tab_bar = {
|
|
||||||
active_tab = {
|
|
||||||
bg_color = "#101010",
|
|
||||||
fg_color = "#BBBBBB",
|
|
||||||
},
|
|
||||||
inactive_tab = {
|
|
||||||
bg_color = "#232323",
|
|
||||||
fg_color = "#BBBBBB",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- #black, #red, #green, #yellow, #blue, #magenta, #cyan, #white
|
|
||||||
ansi = {
|
|
||||||
"#010101", "#d62222", "#3ba04d", "#f6e000", "#1958ff", "#b300b3", "#10bfaf", "#c6c6c6"
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#606060", "#ff4444", "#3bd04d", "#dfff1f", "#01a9ff", "#f600f6", "#10efdf", "#e9e9e9"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
config.inactive_pane_hsb = {
|
|
||||||
saturation = 1.0,
|
|
||||||
brightness = 0.4,
|
|
||||||
}
|
|
||||||
|
|
||||||
config.keys = {
|
|
||||||
{
|
|
||||||
key = 'h', mods = 'CTRL',
|
|
||||||
action = wezterm.action.SplitHorizontal
|
|
||||||
{
|
|
||||||
domain = 'CurrentPaneDomain'
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = 'v', mods = 'CTRL',
|
|
||||||
action = wezterm.action.SplitVertical
|
|
||||||
{
|
|
||||||
domain = 'CurrentPaneDomain'
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = 'w', mods = 'CTRL',
|
|
||||||
action = wezterm.action.CloseCurrentPane
|
|
||||||
{
|
|
||||||
confirm = true
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
20
window.lua
Normal file
20
window.lua
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-- Settings for the window
|
||||||
|
|
||||||
|
local wezterm = require 'wezterm'
|
||||||
|
|
||||||
|
local function window_settings(config)
|
||||||
|
config.window_padding = {
|
||||||
|
left = "3px",
|
||||||
|
right = 0,
|
||||||
|
top = "1px",
|
||||||
|
bottom = 0,
|
||||||
|
}
|
||||||
|
|
||||||
|
config.window_decorations = "NONE"
|
||||||
|
config.window_frame = {
|
||||||
|
inactive_titlebar_bg = '#2d2d2d',
|
||||||
|
active_titlebar_bg = '#232323',
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return window_settings
|
Loading…
Reference in New Issue
Block a user