1
0
This commit is contained in:
metafates 2023-02-18 16:13:58 +03:00
parent 94bd18679c
commit 0689fd9b8c
3 changed files with 48 additions and 39 deletions

View File

@ -3,18 +3,18 @@ local wezterm = require 'wezterm'
local font_size = 18
local bold = true
local font_family = ({
'Iosevka Nerd Font Mono', -- [1]
'JetBrainsMono Nerd Font', -- [2]
'FiraCode Nerd Font Mono', -- [3]
'Photonico Code', -- [4]
'VictorMono Nerd Font', -- [5]
'Hurmit Nerd Font Mono', -- [6]
'Gintronic', -- [7]
'Monocraft', -- [8]
'Comic Mono', -- [9]
'Input Mono', -- [10]
'Comic Code', -- [11]
})[11]
'Iosevka Nerd Font Mono', -- [1]
'JetBrainsMono Nerd Font', -- [2]
'FiraCode Nerd Font Mono', -- [3]
'Photonico Code', -- [4]
'VictorMono Nerd Font', -- [5]
'Hurmit Nerd Font Mono', -- [6]
'Gintronic', -- [7]
'Monocraft', -- [8]
'Comic Mono', -- [9]
'Input Mono', -- [10]
'ComicCode Nerd Font Mono', -- [11]
})[10]
local options = {}
if bold then

35
tab.lua
View File

@ -20,39 +20,39 @@ end
local icon_variants = utils.map({
{ 'cod_telescope', ansi('Teal') },
{ 'dev_coda', css('#3A5F0B') },
{ 'dev_coda', css('#3A5F0B') },
'dev_onedrive',
'fa_bath',
'fa_bug',
'fa_eye',
'fa_flask',
'fa_fort_awesome',
{ 'fa_magic', css('#7fcedc') },
{ 'fa_magic', css('#7fcedc') },
{ 'fa_magnet', ansi('Grey') },
'fa_microchip',
'fa_plane',
{ 'fa_snowflake_o', css('#002553') },
{ 'fa_snowflake_o', css('#002553') },
'fa_subway',
{ 'fa_usd', css('#118C4F') },
{ 'fa_usd', css('#118C4F') },
{ 'fae_apple_fruit', css('#4CBB17') },
{ 'fae_biohazard', css('#EADF0C') },
{ 'fae_carot', css('#F88017') },
{ 'fae_cherry', ansi('Red') },
{ 'fae_crown', css('#ffd700') },
{ 'fae_comet', css('#61667D') },
{ 'fae_biohazard', css('#EADF0C') },
{ 'fae_carot', css('#F88017') },
{ 'fae_cherry', ansi('Red') },
{ 'fae_crown', css('#ffd700') },
{ 'fae_comet', css('#61667D') },
'fae_dna',
{ 'fae_donut', css('#FAAFBE') },
{ 'fae_donut', css('#FAAFBE') },
{ 'fae_ice_cream', css('#FDB6D0') },
'fae_popcorn',
'fae_poison',
{ 'fae_planet', css('#A49B72') },
{ 'fae_ruby', css('#E0115F') },
{ 'fae_tooth', ansi('White') },
{ 'linux_ferris', css('#F13408') },
{ 'mdi_basketball', css('#F88158') },
{ 'mdi_clover', css('#3EA055') },
{ 'fae_planet', css('#A49B72') },
{ 'fae_ruby', css('#E0115F') },
{ 'fae_tooth', ansi('White') },
{ 'linux_ferris', css('#F13408') },
{ 'mdi_basketball', css('#F88158') },
{ 'mdi_clover', css('#3EA055') },
{ 'mdi_currency_eth', css('#7095F7') },
{ 'mdi_ghost', ansi('White') }
{ 'mdi_ghost', ansi('White') }
}, function(i)
if type(i) == 'string' then
return wezterm.nerdfonts[i]
@ -95,6 +95,7 @@ wezterm.on(
return {
enable_tab_bar = true,
use_fancy_tab_bar = false,
tab_bar_at_bottom = true,
show_new_tab_button_in_tab_bar = false,

View File

@ -1,5 +1,7 @@
local wezterm = require 'wezterm'
local sync_with_system = false
local dark_theme = ({
'astromouse (terminal.sexy)', -- [1],
'Catppuccin Frappe', -- [2]
@ -7,7 +9,11 @@ local dark_theme = ({
'Rosé Pine (base16)', -- [4]
'WildCherry', -- [5]
'nord', -- [6]
})[2]
'Builtin Pastel Dark', -- [7]
'Brogrammer (base16)', -- [8]
'City Streets (terminal.sexy)', -- [9]
'Catppuccin Mocha', -- [10]
})[10]
local light_theme = ({
'Catppuccin Latte', -- [1]
@ -21,15 +27,17 @@ local function scheme_for_appearance(appearance)
return light_theme
end
wezterm.on('window-config-reloaded', function(window)
local overrides = window:get_config_overrides() or {}
local appearance = window:get_appearance()
local scheme = scheme_for_appearance(appearance)
if overrides.color_scheme ~= scheme then
overrides.color_scheme = scheme
window:set_config_overrides(overrides)
end
end)
if sync_with_system then
wezterm.on('window-config-reloaded', function(window)
local overrides = window:get_config_overrides() or {}
local appearance = window:get_appearance()
local scheme = scheme_for_appearance(appearance)
if overrides.color_scheme ~= scheme then
overrides.color_scheme = scheme
window:set_config_overrides(overrides)
end
end)
end
return {
color_scheme = dark_theme