ok a config is happening
This commit is contained in:
parent
1c2766408b
commit
635d99ec33
3 changed files with 17 additions and 145 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
dotfiles/
|
||||
flake.lock
|
|
@ -1,143 +0,0 @@
|
|||
local wezterm = require 'wezterm'
|
||||
local config = wezterm.config_builder()
|
||||
local act = wezterm.action
|
||||
|
||||
config.default_prog = { '/opt/homebrew/bin/fish', '-l' }
|
||||
|
||||
local bar = wezterm.plugin.require("https://github.com/adriankarlen/bar.wezterm")
|
||||
|
||||
config.font_size = 13
|
||||
config.font = wezterm.font {
|
||||
family = 'JetBrains Mono',
|
||||
weight = 'Medium'
|
||||
}
|
||||
|
||||
config.color_scheme = 'Adventure'
|
||||
|
||||
config.colors = {
|
||||
tab_bar = {
|
||||
inactive_tab = {
|
||||
fg_color = "#444444",
|
||||
bg_color = "#000000"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
config.window_decorations = "RESIZE"
|
||||
|
||||
config.window_padding = {
|
||||
left = 12,
|
||||
right = 12,
|
||||
top = 6,
|
||||
bottom = 6,
|
||||
}
|
||||
|
||||
config.cursor_thickness = 2
|
||||
config.default_cursor_style = 'SteadyBar'
|
||||
|
||||
config.use_fancy_tab_bar = false
|
||||
config.tab_bar_at_bottom = true
|
||||
|
||||
config.enable_kitty_keyboard = true
|
||||
|
||||
config.keys = {
|
||||
{
|
||||
key = ",",
|
||||
mods = "SUPER",
|
||||
action = act.SpawnCommandInNewWindow({
|
||||
cwd = os.getenv("WEZTERM_CONFIG_DIR"),
|
||||
args = { os.getenv("SHELL"), "-c", "$EDITOR $WEZTERM_CONFIG_FILE" },
|
||||
}),
|
||||
},
|
||||
{
|
||||
key = 'Enter',
|
||||
mods = 'SUPER',
|
||||
action = act.SplitVertical { domain = 'CurrentPaneDomain' },
|
||||
},
|
||||
{
|
||||
key = 'Enter',
|
||||
mods = 'SUPER|SHIFT',
|
||||
action = act.SplitHorizontal { domain = 'CurrentPaneDomain' },
|
||||
},
|
||||
{
|
||||
key = 'k',
|
||||
mods = 'SUPER',
|
||||
action = act.Multiple {
|
||||
act.ClearScrollback 'ScrollbackAndViewport',
|
||||
act.SendKey { key = 'L', mods = 'CTRL' },
|
||||
},
|
||||
},
|
||||
{key="LeftArrow", mods="SUPER|META", action=act.ActivateTabRelative(-1)},
|
||||
{key="RightArrow", mods="SUPER|META", action=act.ActivateTabRelative(1)},
|
||||
|
||||
{key="UpArrow", mods="SUPER|META", action=act.ActivatePaneDirection("Prev")},
|
||||
{key="DownArrow", mods="SUPER|META", action=act.ActivatePaneDirection("Next")},
|
||||
|
||||
{ key='h', mods='SUPER|META', action=wezterm.action{ActivatePaneDirection="Left"} },
|
||||
{ key='l', mods='SUPER|META', action=wezterm.action{ActivatePaneDirection="Right"} },
|
||||
{ key='j', mods='SUPER|META', action=wezterm.action{ActivatePaneDirection="Up"} },
|
||||
{ key='k', mods='SUPER|META', action=wezterm.action{ActivatePaneDirection="Down"} },
|
||||
}
|
||||
|
||||
local barconfig = {
|
||||
position = "bottom",
|
||||
max_width = 32,
|
||||
separator = {
|
||||
space = 2,
|
||||
left_icon = wezterm.nerdfonts.fa_long_arrow_right,
|
||||
right_icon = wezterm.nerdfonts.fa_long_arrow_left,
|
||||
field_icon = wezterm.nerdfonts.indent_line,
|
||||
},
|
||||
modules = {
|
||||
tabs = {
|
||||
active_tab_fg = 4,
|
||||
inactive_tab_fg = 8, -- overridden by tab colour customization near the top
|
||||
},
|
||||
workspace = {
|
||||
enabled = true,
|
||||
icon = wezterm.nerdfonts.cod_window,
|
||||
color = 8,
|
||||
},
|
||||
leader = {
|
||||
enabled = true,
|
||||
icon = wezterm.nerdfonts.oct_rocket,
|
||||
color = 2,
|
||||
},
|
||||
pane = {
|
||||
enabled = false,
|
||||
icon = wezterm.nerdfonts.cod_multiple_windows,
|
||||
color = 7,
|
||||
},
|
||||
username = {
|
||||
enabled = true,
|
||||
icon = wezterm.nerdfonts.fa_user,
|
||||
color = 6,
|
||||
},
|
||||
hostname = {
|
||||
enabled = true,
|
||||
icon = wezterm.nerdfonts.cod_server,
|
||||
color = 8,
|
||||
},
|
||||
clock = {
|
||||
enabled = false,
|
||||
icon = wezterm.nerdfonts.md_calendar_clock,
|
||||
color = 5,
|
||||
},
|
||||
cwd = {
|
||||
enabled = true,
|
||||
icon = wezterm.nerdfonts.oct_file_directory,
|
||||
color = 7,
|
||||
},
|
||||
spotify = {
|
||||
enabled = false,
|
||||
icon = wezterm.nerdfonts.fa_spotify,
|
||||
color = 3,
|
||||
max_width = 64,
|
||||
throttle = 15,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
bar.apply_to_config(config, barconfig)
|
||||
|
||||
return config
|
17
flake.lock
generated
17
flake.lock
generated
|
@ -36,6 +36,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1727040444,
|
||||
"narHash": "sha256-19FNN5QT9Z11ZUMfftRplyNN+2PgcHKb3oq8KMW/hDA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "d0cb432a9d28218df11cbd77d984a2a46caeb5ac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "master",
|
||||
"repo": "nixos-hardware",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1726969270,
|
||||
|
@ -72,6 +88,7 @@
|
|||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"nix-flatpak": "nix-flatpak",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue