updated wezterm for windows
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
-- Pull in wezterm API
|
|
||||||
local wezterm = require("wezterm")
|
|
||||||
|
|
||||||
-- This will hold the configuration
|
|
||||||
local config = wezterm.config_builder()
|
|
||||||
|
|
||||||
config.font = wezterm.font("VictorMono Nerd Font")
|
|
||||||
config.font_size = 13
|
|
||||||
config.colors = {}
|
|
||||||
|
|
||||||
config.window_background_opacity = .85
|
|
||||||
config.macos_window_background_blur = 40
|
|
||||||
config.win32_system_backdrop = "Acrylic"
|
|
||||||
|
|
||||||
-- Add configration here
|
|
||||||
|
|
||||||
config.enable_tab_bar = true
|
|
||||||
config.hide_tab_bar_if_only_one_tab = true
|
|
||||||
config.use_fancy_tab_bar = true
|
|
||||||
config.window_decorations = "RESIZE"
|
|
||||||
|
|
||||||
config.default_prog = { 'pwsh' }
|
|
||||||
|
|
||||||
return config
|
|
||||||
@@ -1,12 +1,32 @@
|
|||||||
-- Pull in wezterm API
|
-- Pull in wezterm API
|
||||||
|
|
||||||
|
|
||||||
local wezterm = require("wezterm")
|
local wezterm = require("wezterm")
|
||||||
|
|
||||||
|
-- Determine OS
|
||||||
|
|
||||||
|
local is_mac = string.find(wezterm.target_triple, "darwin") ~= nil
|
||||||
|
local is_windows = string.find(wezterm.target_triple, "windows") ~= nil
|
||||||
|
local is_linux = string.find(wezterm.target_triple, "linux") ~= nil
|
||||||
|
wezterm.log_info("OS: " .. wezterm.target_triple)
|
||||||
|
wezterm.log_info("Is Mac: " .. tostring(is_mac))
|
||||||
|
wezterm.log_info("Is Windows: " .. tostring(is_windows))
|
||||||
|
wezterm.log_info("Is Linux: " .. tostring(is_linux))
|
||||||
|
|
||||||
|
|
||||||
-- This will hold the configuration
|
-- This will hold the configuration
|
||||||
local config = wezterm.config_builder()
|
local config = wezterm.config_builder()
|
||||||
|
|
||||||
config.font = wezterm.font("VictorMono Nerd Font")
|
config.font = wezterm.font("VictorMono Nerd Font")
|
||||||
config.font_size = 16
|
if is_mac or is_linux then
|
||||||
|
config.font_size = 16
|
||||||
|
end
|
||||||
|
if is_windows then
|
||||||
|
config.font_size = 12
|
||||||
|
end
|
||||||
|
|
||||||
config.enable_scroll_bar = true
|
config.enable_scroll_bar = true
|
||||||
|
config.ssh_backend = "Ssh2"
|
||||||
config.colors = {
|
config.colors = {
|
||||||
-- Australis Dark Colorscheme
|
-- Australis Dark Colorscheme
|
||||||
-- The default text color
|
-- The default text color
|
||||||
@@ -81,12 +101,19 @@ config.colors = {
|
|||||||
--- input_selector_label_fg = { Color = '#ffffff' }, -- (*Since: Nightly Builds Only*)
|
--- input_selector_label_fg = { Color = '#ffffff' }, -- (*Since: Nightly Builds Only*)
|
||||||
}
|
}
|
||||||
|
|
||||||
config.window_background_opacity = 0.85
|
if is_windows then
|
||||||
config.macos_window_background_blur = 40
|
config.win32_system_backdrop = "Acrylic"
|
||||||
|
config.window_background_opacity = 0.98
|
||||||
-- Add configration here
|
config.enable_tab_bar = true
|
||||||
|
config.hide_tab_bar_if_only_one_tab = true
|
||||||
config.enable_tab_bar = false
|
config.use_fancy_tab_bar = true
|
||||||
config.window_decorations = "RESIZE"
|
config.window_decorations = "RESIZE"
|
||||||
|
config.default_prog = { 'pwsh' }
|
||||||
|
else
|
||||||
|
config.window_background_opacity = 0.85
|
||||||
|
config.macos_window_background_blur = 40
|
||||||
|
config.enable_tab_bar = false
|
||||||
|
config.window_decorations = "RESIZE"
|
||||||
|
end
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
Reference in New Issue
Block a user