Skip to content

Commit

Permalink
Update fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Laica-Lunasys committed Oct 1, 2024
1 parent 1f96cb1 commit 4551a2c
Showing 1 changed file with 137 additions and 93 deletions.
230 changes: 137 additions & 93 deletions .wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local config = wezterm.config_builder()
-- System
default_prog = null
if string.find(wezterm.target_triple, "windows") then
default_prog = {"pwsh.exe"}
default_prog = { "pwsh.exe" }
end
config.default_prog = default_prog

Expand Down Expand Up @@ -32,7 +32,7 @@ config.window_background_gradient = {
-- Specifies the set of colors that are interpolated in the gradient.
-- Accepts CSS style color specs, from named colors, through rgb
-- strings and more
colors = {'#000000'},
colors = { '#000000' },

-- Instead of specifying `colors`, you can use one of a number of
-- predefined, preset gradients.
Expand Down Expand Up @@ -63,9 +63,21 @@ config.window_padding = {
-- config.color_scheme = 'midnight-in-mojave'

-- Font
config.font = wezterm.font_with_fallback({ -- "Inconsolata",
"Cascadia Mono", "M+ 1p"})
config.font_size = 10.0
config.font = wezterm.font_with_fallback({
-- <built-in>
"JetBrains Mono",

-- <built-in>
"Noto Color Emoji",

-- <built-in>
"Symbols Nerd Font Mono",

-- M+
"M+ 1p"
})

config.font_size = 12.0
-- config.custom_block_glyphs = true
-- config.allow_square_glyphs_to_overflow_width = "Always"
-- config.freetype_load_target = "Light"
Expand All @@ -78,31 +90,36 @@ config.prefer_egl = false
--------------
-- Key bind --
--------------
config.keys = {{
key = ' ',
mods = 'SHIFT|CTRL',
action = wezterm.action.QuickSelect
}, {
key = "{",
mods = "SHIFT|ALT",
action = wezterm.action {
ActivateTabRelative = -1
}
}, {
key = "}",
mods = "SHIFT|ALT",
action = wezterm.action {
ActivateTabRelative = 1
}
}, {
key = "!",
mods = "SHIFT|CTRL",
action = wezterm.action {
SpawnCommandInNewTab = {
args = {"wsl", "--cd", "~"}
config.keys = {
{
key = ' ',
mods = 'SHIFT|CTRL',
action = wezterm.action.QuickSelect
},
{
key = "{",
mods = "SHIFT|ALT",
action = wezterm.action {
ActivateTabRelative = -1
}
},
{
key = "}",
mods = "SHIFT|ALT",
action = wezterm.action {
ActivateTabRelative = 1
}
},
{
key = "!",
mods = "SHIFT|CTRL",
action = wezterm.action {
SpawnCommandInNewTab = {
args = { "wsl", "--cd", "~" }
}
}
}
}}
}
config.debug_key_events = false

---------------
Expand Down Expand Up @@ -189,37 +206,47 @@ wezterm.on('format-tab-title', function(tab, tabs, panes, config, hover, max_wid
-- and that we have room for the edges.
title = wezterm.truncate_right(title, max_width - 2)

return {{
Background = {
Color = edge_background
}
}, {
Foreground = {
Color = edge_foreground
}
}, {
Text = " "
}, {
Background = {
Color = background
}
}, {
Foreground = {
Color = foreground
}
}, {
Text = string.format("%d: %s", tab.tab_index + 1, title)
}, {
Background = {
Color = edge_background
}
}, {
Foreground = {
Color = edge_foreground
return {
{
Background = {
Color = edge_background
}
},
{
Foreground = {
Color = edge_foreground
}
},
{
Text = " "
},
{
Background = {
Color = background
}
},
{
Foreground = {
Color = foreground
}
},
{
Text = string.format("%d: %s", tab.tab_index + 1, title)
},
{
Background = {
Color = edge_background
}
},
{
Foreground = {
Color = edge_foreground
}
},
{
Text = " "
}
}, {
Text = " "
}}
}
end)

-- CLASSIC: TITLE BAR CONFIG
Expand All @@ -228,46 +255,63 @@ local SOLID_MAXIMIZE = "▢"
local SOLID_HIDE = "-"

config.tab_bar_style = {
window_close = wezterm.format {{
Text = ' ' .. SOLID_CLOSE .. ' '
}},
window_close_hover = wezterm.format {{
Attribute = {
Italic = false
window_close = wezterm.format {
{
Text = ' ' .. SOLID_CLOSE .. ' '
}
},
window_close_hover = wezterm.format {
{
Attribute = {
Italic = false
}
},
{
Background = {
Color = '#E81123'
}
},
{
Foreground = {
Color = '#FFFFFF'
}
},
{
Text = ' ' .. SOLID_CLOSE .. ' '
}
}, {
Background = {
Color = '#E81123'
},

window_maximize = wezterm.format {
{
Text = ' ' .. SOLID_MAXIMIZE .. ' '
}
}, {
Foreground = {
Color = '#FFFFFF'
},
window_maximize_hover = wezterm.format {
{
Attribute = {
Italic = false
}
},
{
Text = ' ' .. SOLID_MAXIMIZE .. ' '
}
}, {
Text = ' ' .. SOLID_CLOSE .. ' '
}},

window_maximize = wezterm.format {{
Text = ' ' .. SOLID_MAXIMIZE .. ' '
}},
window_maximize_hover = wezterm.format {{
Attribute = {
Italic = false
},

window_hide = wezterm.format {
{
Text = ' ' .. SOLID_HIDE .. ' '
}
}, {
Text = ' ' .. SOLID_MAXIMIZE .. ' '
}},

window_hide = wezterm.format {{
Text = ' ' .. SOLID_HIDE .. ' '
}},
window_hide_hover = wezterm.format {{
Attribute = {
Italic = false
},
window_hide_hover = wezterm.format {
{
Attribute = {
Italic = false
}
},
{
Text = ' ' .. SOLID_HIDE .. ' '
}
}, {
Text = ' ' .. SOLID_HIDE .. ' '
}}
}
}

return config

0 comments on commit 4551a2c

Please sign in to comment.