Compare commits
5
Commits
b112b8a5b6
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86bac5930e | ||
|
|
c10382bd7f | ||
|
|
6234cf3435 | ||
|
|
8f6e02f096 | ||
|
|
38f9220937 |
No files matched your search
@@ -58,7 +58,6 @@
|
|||||||
hunspell
|
hunspell
|
||||||
hunspellDicts.en_US
|
hunspellDicts.en_US
|
||||||
matugen
|
matugen
|
||||||
frogmouth
|
|
||||||
])
|
])
|
||||||
++ (with pkgs.unstablePkgs; [
|
++ (with pkgs.unstablePkgs; [
|
||||||
# --- Creative utils ---
|
# --- Creative utils ---
|
||||||
|
|||||||
@@ -340,6 +340,15 @@ window-rule {
|
|||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Work around WezTerm's initial configure bug
|
||||||
|
// by setting an empty default-column-width.
|
||||||
|
window-rule {
|
||||||
|
// This regular expression is intentionally made as specific as possible,
|
||||||
|
// since this is the default config, and we want no false positives.
|
||||||
|
// You can get away with just app-id="wezterm" if you want.
|
||||||
|
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||||
|
default-column-width {}
|
||||||
|
}
|
||||||
|
|
||||||
// Open the Firefox picture-in-picture player as floating by default.
|
// Open the Firefox picture-in-picture player as floating by default.
|
||||||
window-rule {
|
window-rule {
|
||||||
@@ -398,7 +407,7 @@ binds {
|
|||||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; }
|
Mod+T hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
||||||
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||||
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||||
Super+Alt+Ctrl+L hotkey-overlay-title="Lock N turn off screen" { spawn "lockNTurnOffScreen"; }
|
Super+Alt+Ctrl+L hotkey-overlay-title="Lock N turn off screen" { spawn "lockNTurnOffScreen"; }
|
||||||
|
|||||||
@@ -8,148 +8,32 @@
|
|||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
#colorschemes.catppuccin.enable = true;
|
||||||
|
#colorschemes.tokyonight = {
|
||||||
|
# enable = true;
|
||||||
|
# settings = {
|
||||||
|
# style = "night";
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
colorschemes.monokai-pro = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
filter = "classic"; # Options: classic, octagon, pro, machine
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#colorschemes.nightfox = {
|
||||||
|
# enable = true;
|
||||||
|
# flavor = "carbonfox"; # Try "nordfox" or "duskfox" too!
|
||||||
|
#};
|
||||||
|
plugins.lualine.enable = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
number = true;
|
number = true;
|
||||||
relativenumber = true;
|
relativenumber = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
colorschemes.monokai-pro = {
|
# --- Sets tab spacing for file types ---
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
filter = "classic"; # Options: classic, octagon, pro, machine
|
|
||||||
transparent_background = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins = {
|
|
||||||
# --- navigation ---
|
|
||||||
telescope = {
|
|
||||||
enable = true;
|
|
||||||
extensions.fzf-native.enable = true;
|
|
||||||
};
|
|
||||||
neo-tree = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
filesystem = {
|
|
||||||
# Automatically focus the currently open file in the tree
|
|
||||||
follow_current_file = {
|
|
||||||
enabled = true;
|
|
||||||
leave_dirs_open = false;
|
|
||||||
};
|
|
||||||
# Keep Neo-tree's root independent of Neovim's global :cd
|
|
||||||
bind_to_cwd = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
project-nvim = {
|
|
||||||
enable = true;
|
|
||||||
enableTelescope = true;
|
|
||||||
settings = {
|
|
||||||
detection_methods = [ "pattern" "lsp" ];
|
|
||||||
patterns = [ ".git" "flake.nix" "Cargo.toml" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# --- UI & Visuals ---
|
|
||||||
lualine.enable = true;
|
|
||||||
alpha = {
|
|
||||||
enable = true;
|
|
||||||
theme = "dashboard";
|
|
||||||
};
|
|
||||||
which-key.enable = true;
|
|
||||||
indent-blankline.enable = true;
|
|
||||||
|
|
||||||
# --- utils ---
|
|
||||||
gitsigns.enable = true; #git diffs
|
|
||||||
trouble.enable = true; #diagnostics
|
|
||||||
|
|
||||||
# --- Misc ---
|
|
||||||
# Mini.nvim, see github for all options
|
|
||||||
mini = {
|
|
||||||
enable = true;
|
|
||||||
mockDevIcons = true; # Lets mini.icons serve icons to lualine/trouble/which-key
|
|
||||||
modules = {
|
|
||||||
pairs = {}; #bracket/quote auto pairs
|
|
||||||
icons = {}; #required by ^^^
|
|
||||||
move = {};
|
|
||||||
#TODO: consider
|
|
||||||
#surround = {};
|
|
||||||
#ai = {};
|
|
||||||
#comment = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# auto complete
|
|
||||||
# TODO: add keybinds
|
|
||||||
cmp = {
|
|
||||||
enable = true;
|
|
||||||
autoEnableSources = true;
|
|
||||||
settings.sources = [
|
|
||||||
{ name = "nvim_lsp"; }
|
|
||||||
{ name = "path"; }
|
|
||||||
{ name = "buffer"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
|
||||||
nil_ls = { # Nix
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
nix.flake.autoArchive = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
clangd.enable = true; # C/C++
|
|
||||||
|
|
||||||
html.enable = true;
|
|
||||||
pyright.enable = true; # Python
|
|
||||||
#lua_ls.enable = true; #TODO: requires more setup
|
|
||||||
jsonls.enable = true;
|
|
||||||
|
|
||||||
fish_lsp.enable = true; # Fish shell
|
|
||||||
bashls.enable = true; # Bash shell
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
rustaceanvim.enable = true;
|
|
||||||
|
|
||||||
# duo live same file editing
|
|
||||||
live-share = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
username = "Winter";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
# Define the global helper function so you can run :lua setWezTheme('solid') anytime
|
|
||||||
extraConfigLua = ''
|
|
||||||
_G.setWezTheme = function(theme)
|
|
||||||
local val = theme or ""
|
|
||||||
local b64 = vim.base64.encode(val)
|
|
||||||
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'WEZTERM_THEME', b64)
|
|
||||||
|
|
||||||
if vim.env.TMUX then
|
|
||||||
seq = string.format('\x1bPtmux;\x1b%s\x1b\\', seq)
|
|
||||||
end
|
|
||||||
|
|
||||||
pcall(vim.fn.chansend, vim.v.stderr, seq)
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
|
|
||||||
autoGroups = {
|
|
||||||
WezTermUserVar = {
|
|
||||||
clear = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
autoCmd = [
|
autoCmd = [
|
||||||
# --- Sets tab spacing for file types ---
|
|
||||||
{
|
{
|
||||||
event = [ "FileType" ];
|
event = [ "FileType" ];
|
||||||
pattern = [ "html" "css" "javascript" "typescript" "nix" "lua" ];
|
pattern = [ "html" "css" "javascript" "typescript" "nix" "lua" ];
|
||||||
@@ -163,33 +47,61 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Set default WezTerm profile on entry/resume ---
|
|
||||||
{
|
{
|
||||||
event = [ "UIEnter" "VimResume" ];
|
event = [ "FileType" ];
|
||||||
group = "WezTermUserVar";
|
pattern = [ "cpp" "c" ];
|
||||||
callback = {
|
callback = {
|
||||||
__raw = ''
|
__raw = ''
|
||||||
function()
|
function()
|
||||||
setWezTheme('nvim')
|
vim.opt_local.expandtab = false
|
||||||
|
vim.opt_local.shiftwidth = 4
|
||||||
|
vim.opt_local.tabstop = 4
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Clear WezTerm profile (revert to base config) on exit/suspend ---
|
|
||||||
{
|
{
|
||||||
event = [ "VimLeavePre" "VimSuspend" ];
|
event = [ "FileType" ];
|
||||||
group = "WezTermUserVar";
|
pattern = [ "rust" ];
|
||||||
callback = {
|
callback = {
|
||||||
__raw = ''
|
__raw = ''
|
||||||
function()
|
function()
|
||||||
setWezTheme("")
|
vim.opt_local.expandtab = true
|
||||||
|
vim.opt_local.shiftwidth = 4
|
||||||
|
vim.opt_local.softtabstop = 4
|
||||||
|
vim.opt_local.tabstop = 4
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
plugins.cmp = {
|
||||||
|
enable = true;
|
||||||
|
autoEnableSources = true;
|
||||||
|
settings.sources = [
|
||||||
|
{ name = "nvim_lsp"; }
|
||||||
|
{ name = "path"; }
|
||||||
|
{ name = "buffer"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.lsp = {
|
||||||
|
enable = true;
|
||||||
|
servers = {
|
||||||
|
#nil_ls.enable = true;
|
||||||
|
nil_ls = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
nix.flake.autoArchive = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
clangd.enable = true;
|
||||||
|
html.enable = true;
|
||||||
|
pyright.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.rustaceanvim.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -7,9 +7,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
./wezterm/wezterm.nix
|
|
||||||
];
|
|
||||||
home.packages = (
|
home.packages = (
|
||||||
(with pkgs; [
|
(with pkgs; [
|
||||||
# --- Core Wayland plumbing (Stable 26.05) ---
|
# --- Core Wayland plumbing (Stable 26.05) ---
|
||||||
@@ -53,6 +50,15 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"font_size" = 15;
|
||||||
|
"background_opacity" = 0.6;
|
||||||
|
"background_blur" = 1;
|
||||||
|
"include" = "colors.conf";
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,110 +0,0 @@
|
|||||||
local wezterm = require 'wezterm'
|
|
||||||
local config = wezterm.config_builder()
|
|
||||||
|
|
||||||
-- Launch fish directly instead of your system login shell
|
|
||||||
config.default_prog = { 'fish', '-l' }
|
|
||||||
|
|
||||||
-- Base Appearance & Tab Bar (Default / Fallback state)
|
|
||||||
config.window_background_opacity = 0.60
|
|
||||||
config.wayland_window_background_blur = true
|
|
||||||
config.hide_tab_bar_if_only_one_tab = true
|
|
||||||
|
|
||||||
config.window_padding = {
|
|
||||||
left = 0,
|
|
||||||
right = 0,
|
|
||||||
top = 0,
|
|
||||||
bottom = 0,
|
|
||||||
}
|
|
||||||
|
|
||||||
config.font_size = 14.0
|
|
||||||
config.colors = {
|
|
||||||
foreground = '#dddddd',
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Helper to safely check if a file exists before applying it
|
|
||||||
local function file_exists(path)
|
|
||||||
if not path then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
local f = io.open(path, 'r')
|
|
||||||
if f then
|
|
||||||
f:close()
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Define arbitrary theme profiles here.
|
|
||||||
-- Keys correspond to the value of the WEZTERM_THEME user variable.
|
|
||||||
local profiles = {
|
|
||||||
nvim = {
|
|
||||||
colors = { foreground = '#ffffff' },
|
|
||||||
window_background_image = wezterm.config_dir .. '/texture.png',
|
|
||||||
window_background_opacity = 1.0,
|
|
||||||
},
|
|
||||||
solid = {
|
|
||||||
colors = { foreground = '#eeeeee', background = '#1e1e2e' },
|
|
||||||
window_background_opacity = 1.0,
|
|
||||||
},
|
|
||||||
light = {
|
|
||||||
colors = { foreground = '#111111', background = '#f5f5f5' },
|
|
||||||
window_background_opacity = 0.95,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Track the active profile per window so we don't trigger redundant reloads
|
|
||||||
local active_window_profiles = {}
|
|
||||||
|
|
||||||
local function sync_appearance(window, pane)
|
|
||||||
if not pane then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local user_vars = pane:get_user_vars()
|
|
||||||
local target_profile = user_vars.WEZTERM_THEME or 'default'
|
|
||||||
local win_id = window:window_id()
|
|
||||||
|
|
||||||
-- Skip if this window is already using the requested profile
|
|
||||||
if active_window_profiles[win_id] == target_profile then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local profile_settings = profiles[target_profile]
|
|
||||||
|
|
||||||
if profile_settings then
|
|
||||||
local overrides = {}
|
|
||||||
|
|
||||||
-- Copy arbitrary settings from the chosen profile
|
|
||||||
for key, value in pairs(profile_settings) do
|
|
||||||
overrides[key] = value
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Fallback: If a background image is specified, verify the file exists.
|
|
||||||
-- If missing, drop the image override and restore base opacity so text stays readable.
|
|
||||||
if overrides.window_background_image and not file_exists(overrides.window_background_image) then
|
|
||||||
wezterm.log_warn('Background image not found: ' .. overrides.window_background_image)
|
|
||||||
overrides.window_background_image = nil
|
|
||||||
overrides.window_background_opacity = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
window:set_config_overrides(overrides)
|
|
||||||
active_window_profiles[win_id] = target_profile
|
|
||||||
else
|
|
||||||
-- Reset to base config if the variable is unset, empty, or unrecognized
|
|
||||||
window:set_config_overrides({})
|
|
||||||
active_window_profiles[win_id] = 'default'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
wezterm.on('user-var-changed', function(window, pane, name, _value)
|
|
||||||
if name == 'WEZTERM_THEME' then
|
|
||||||
sync_appearance(window, pane)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- Keep state synced when switching tabs or closing panes
|
|
||||||
wezterm.on('update-status', function(window, pane)
|
|
||||||
sync_appearance(window, pane)
|
|
||||||
end)
|
|
||||||
|
|
||||||
return config
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:{
|
|
||||||
xdg.configFile."wezterm/wezterm.lua".source = ./wezterm.lua;
|
|
||||||
programs.wezterm = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.unstablePkgs.wezterm;
|
|
||||||
};
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
lua
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -25,6 +25,7 @@ in
|
|||||||
|
|
||||||
../common/users/Winter/default.nix
|
../common/users/Winter/default.nix
|
||||||
../common/features/DesktopNiri.nix
|
../common/features/DesktopNiri.nix
|
||||||
|
../common/features/DesktopKDEPlasma.nix
|
||||||
../common/features/Applications.nix
|
../common/features/Applications.nix
|
||||||
#../common/features/servers/minecraft.nix
|
#../common/features/servers/minecraft.nix
|
||||||
|
|
||||||
@@ -60,6 +61,9 @@ in
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
Winter = import ../../home/Winter/Winter/${hostname}.nix;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ in
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
|
users = {
|
||||||
|
EXAMPLE = import ../../../home/EXAMPLE/EXAMPLE/${hostname}.nix; # FIXME
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
Reference in new issue
Block a user