From 635d99ec3303d1b5b35b18b6a705d38174c751ff Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Tue, 24 Sep 2024 16:13:56 -0400 Subject: [PATCH] ok a config is happening --- .gitignore | 2 - dotfiles/dot_config/wezterm/wezterm.lua | 143 ------------------------ flake.lock | 17 +++ 3 files changed, 17 insertions(+), 145 deletions(-) delete mode 100644 .gitignore delete mode 100644 dotfiles/dot_config/wezterm/wezterm.lua diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9264915..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -dotfiles/ -flake.lock diff --git a/dotfiles/dot_config/wezterm/wezterm.lua b/dotfiles/dot_config/wezterm/wezterm.lua deleted file mode 100644 index b91a4bc..0000000 --- a/dotfiles/dot_config/wezterm/wezterm.lua +++ /dev/null @@ -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 diff --git a/flake.lock b/flake.lock index 1726d66..c5570c2 100644 --- a/flake.lock +++ b/flake.lock @@ -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" }