mirror of
https://github.com/blahai/nyx.git
synced 2025-01-18 19:10:21 +00:00
88 lines
2.1 KiB
Lua
88 lines
2.1 KiB
Lua
local utils = require("utils")
|
|
local wezterm = require("wezterm")
|
|
|
|
local c = {}
|
|
if wezterm.c_builder then
|
|
c = wezterm.config_builder()
|
|
end
|
|
|
|
c.enable_wayland = true
|
|
|
|
-- theme
|
|
require("catppuccin").apply_to_config(c)
|
|
require("bar").apply_to_config(c)
|
|
|
|
if utils.is_linux() then
|
|
c.window_background_opacity = 0.90
|
|
elseif utils.is_darwin() then
|
|
c.window_background_opacity = 0.95
|
|
c.macos_window_background_blur = 15
|
|
elseif utils.is_windows() then
|
|
-- c.window_background_image = "C:\\Users\\Isabel\\Pictures\\wallpapers\\catgirl.jpg"
|
|
-- c.window_background_image_hsb = {
|
|
-- brightness = 0.03, -- make the bg darker so we can see what we are doing
|
|
-- }
|
|
-- c.win32_system_backdrop = "Tabbed"
|
|
-- c.window_background_opacity = 0.95
|
|
end
|
|
|
|
-- load my keybinds
|
|
require("keybinds").apply(c)
|
|
|
|
-- default shell
|
|
if utils.is_linux() or utils.is_darwin() then
|
|
c.default_prog = { "/etc/profiles/per-user/pingu/bin/fish", "--login" }
|
|
elseif utils.is_windows() then
|
|
c.default_prog = { "wsl.exe" }
|
|
c.default_domain = "WSL:NixOS"
|
|
c.launch_menu = {
|
|
{
|
|
label = "PowerShell",
|
|
args = { "pwsh.exe", "-NoLogo" },
|
|
domain = { DomainName = "local" },
|
|
},
|
|
}
|
|
end
|
|
|
|
-- window stuff
|
|
if utils.is_linux() then
|
|
c.window_decorations = "TITLE | RESIZE"
|
|
else
|
|
c.window_decorations = "RESIZE"
|
|
end
|
|
c.window_padding = { left = 10, right = 0, top = 0, bottom = 0 }
|
|
c.adjust_window_size_when_changing_font_size = false
|
|
|
|
-- fonts
|
|
c.font = wezterm.font_with_fallback({
|
|
"Maple Mono",
|
|
"Symbols Nerd Font",
|
|
})
|
|
c.font_size = 13
|
|
c.adjust_window_size_when_changing_font_size = false
|
|
c.window_frame = {
|
|
font = wezterm.font("Maple Mono"),
|
|
font_size = c.font_size,
|
|
}
|
|
|
|
-- QOL
|
|
c.audible_bell = "Disabled"
|
|
c.default_cursor_style = "BlinkingBar"
|
|
c.window_close_confirmation = "NeverPrompt"
|
|
-- c.prefer_to_spawn_tabs = true
|
|
|
|
if utils.is_windows() then
|
|
c.front_end = "OpenGL"
|
|
else
|
|
c.front_end = "WebGpu"
|
|
end
|
|
|
|
-- this is nix so lets not do it
|
|
-- enable this if i ever setup nix to statically link
|
|
-- c.automatically_reload_config = false
|
|
c.check_for_updates = false
|
|
|
|
-- TODO:
|
|
-- https://wezfurlong.org/wezterm/config/lua/config/tiling_desktop_environments.html
|
|
|
|
return c
|