Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f01252f04 | ||
|
|
b3448a728f | ||
|
|
a85ac09348 | ||
|
|
c70a2212d7 | ||
|
|
4a84ee5711 | ||
|
|
7800dd25b0 | ||
|
|
5a55a57786 | ||
|
|
b112b8a5b6 | ||
|
|
5c9f5eb041 | ||
|
|
a3a9472799 | ||
|
|
58ec82092c | ||
|
|
56e7ad6de9 | ||
|
|
ea8fbe243c | ||
|
|
5c67a02d4b | ||
|
|
9fffe416d5 |
No files matched your search
Generated
+9
-9
@@ -64,11 +64,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794251182,
|
||||
"narHash": "sha256-R2sZBXiOJo3HAnvTiVkbbHDJy//JMlAwUKEiPbfqPXk=",
|
||||
"lastModified": 1794943722,
|
||||
"narHash": "sha256-Qkh6uNyMsic61gfyOO8VXnC+HEBdti6Xe2kKiMf66O0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "6eb2d33d1d0c95a37ef6443c88e6c1686012ee8b",
|
||||
"rev": "5643e73425b85ac359ba2aaf83deae8ce1cd7968",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -112,11 +112,11 @@
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1794537146,
|
||||
"narHash": "sha256-Wpz/7x/YWnDIBu7yj6ixe8j6fIMsidd9Y+o1PqPF3iM=",
|
||||
"lastModified": 1794750194,
|
||||
"narHash": "sha256-c6ZxSsG1c2luSrbESFfp9Jq2pSVhGst2to4aIzt2Nes=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d5cc6833999746cffdfe0598f7bc801a57b887a9",
|
||||
"rev": "1a08097fc1ed85575db39763b2c4a5d8970a37ba",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -194,11 +194,11 @@
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794408140,
|
||||
"narHash": "sha256-vS4BTt6CkLn2BLcYA7kZUxFNnZpPgW0GJ73s/VoPhWc=",
|
||||
"lastModified": 1794943345,
|
||||
"narHash": "sha256-1d33ym1V/UxX9pcNbrpG0/P8riFHE8VuVAc3T8WN52I=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "44849d3d24b28d59fa963bd832ec59c60c56a34c",
|
||||
"rev": "b67578f451bd779e79ec42f8153a403421a4b266",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
+60
-8
@@ -55,10 +55,15 @@
|
||||
(with pkgs; [
|
||||
# --- General utils ---
|
||||
libreoffice # Microsoft replace
|
||||
hunspell
|
||||
hunspell # auto spell for libre
|
||||
hunspellDicts.en_US
|
||||
matugen
|
||||
frogmouth
|
||||
])
|
||||
++ (with pkgs.unstablePkgs; [
|
||||
# --- General Utils ---
|
||||
cine
|
||||
gthumb
|
||||
# --- Creative utils ---
|
||||
obs-studio
|
||||
shotcut
|
||||
@@ -73,16 +78,63 @@
|
||||
programs.joplin-desktop.enable = true;
|
||||
|
||||
# --- xdg ---
|
||||
xdg.configFile."mimeapps.list".force = true;
|
||||
|
||||
xdg.desktopEntries.yazi-wezterm =
|
||||
let
|
||||
yaziOpenFolder = pkgs.writeShellScript "yaziOpenFolder" ''
|
||||
tmp=$(mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi "$1" --cwd-file="$tmp"
|
||||
cwd=$(cat "$tmp")
|
||||
rm -f "$tmp"
|
||||
[ -n "$cwd" ] && cd "$cwd"
|
||||
exec "$SHELL"
|
||||
'';
|
||||
in {
|
||||
name = "Yazi (WezTerm)";
|
||||
genericName = "File Manager";
|
||||
exec = "wezterm start -- ${yaziOpenFolder} %f";
|
||||
icon = "system-file-manager";
|
||||
terminal = false;
|
||||
categories = [ "System" "FileManager" ];
|
||||
mimeType = [ "inode/directory" ];
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"inode/directory" = [ "kitty-open.desktop" ];
|
||||
"image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/gif" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/webp" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/tiff" = [ "org.gnome.gThumb.desktop" ];
|
||||
"image/bmp" = [ "org.gnome.gThumb.desktop" ];
|
||||
# Use "nemo.desktop" for GUI, or "yazi-wezterm.desktop" for terminal
|
||||
"inode/directory" = [ "yazi-wezterm.desktop" ];
|
||||
"x-scheme-handler/file" = [ "yazi-wezterm.desktop" ];
|
||||
|
||||
# Images: gThumb
|
||||
"image/jpeg" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/png" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/gif" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/webp" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/tiff" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/bmp" = [ "org.gnome.gthumb.desktop" ];
|
||||
|
||||
# Documents: Okular
|
||||
"application/pdf" = [ "org.kde.okular.desktop" ];
|
||||
"application/epub+zip" = [ "org.kde.okular.desktop" ];
|
||||
|
||||
# Videos: Cine
|
||||
"video/mp4" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/x-matroska" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/webm" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/quicktime" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
"video/x-msvideo" = [ "io.github.diegopvlk.Cine.desktop" ];
|
||||
};
|
||||
associations.added = {
|
||||
"inode/directory" = [ "yazi-wezterm.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/cinnamon/desktop/applications/terminal" = {
|
||||
exec = "wezterm";
|
||||
exec-arg = "start --cwd";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ in
|
||||
jdk21
|
||||
])
|
||||
++ (with pkgs.unstablePkgs; [
|
||||
prismlauncher
|
||||
])
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
layout {
|
||||
focus-ring {
|
||||
active-color "#ff0000"
|
||||
inactive-color "#00ff00"
|
||||
}
|
||||
border {
|
||||
active-color "#ffb3ac"
|
||||
inactive-color "#a68a87"
|
||||
}
|
||||
}
|
||||
@@ -276,6 +276,14 @@ layout {
|
||||
}
|
||||
}
|
||||
|
||||
//global blur fine-tuning
|
||||
blur {
|
||||
passes 3 // more passes = stronger blur (default: 3)
|
||||
offset 3.0 // sample distance per pass (default: 3.0)
|
||||
noise 0.02 // grain overlay (default: 0.02)
|
||||
saturation 1.5 // color saturation boost (default: 1.5)
|
||||
}
|
||||
|
||||
// Add lines like this to spawn processes at startup.
|
||||
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||
// which may be more convenient to use.
|
||||
@@ -332,15 +340,6 @@ window-rule {
|
||||
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.
|
||||
window-rule {
|
||||
@@ -399,7 +398,7 @@ binds {
|
||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T hotkey-overlay-title="Open a Terminal: kitty" { spawn "kitty"; }
|
||||
Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm" "start" "--always-new-process"; }
|
||||
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+Ctrl+L hotkey-overlay-title="Lock N turn off screen" { spawn "lockNTurnOffScreen"; }
|
||||
|
||||
@@ -5,38 +5,183 @@
|
||||
imports = [
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
enable = 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;
|
||||
|
||||
opts = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
};
|
||||
|
||||
# --- Sets tab spacing for file types ---
|
||||
colorschemes.monokai-pro = {
|
||||
enable = true;
|
||||
settings = {
|
||||
filter = "classic"; # Options: classic, octagon, pro, machine
|
||||
transparent_background = true;
|
||||
};
|
||||
};
|
||||
|
||||
highlightOverride = {
|
||||
# Core & empty space below buffers/trees
|
||||
Normal = { bg = "none"; };
|
||||
NormalNC = { bg = "none"; };
|
||||
EndOfBuffer = { bg = "none"; };
|
||||
SignColumn = { bg = "none"; };
|
||||
WinSeparator = { bg = "none"; fg = "#75715e"; };
|
||||
|
||||
# Floating windows
|
||||
NormalFloat = { bg = "none"; };
|
||||
FloatBorder = { bg = "none"; fg = "#75715e"; };
|
||||
|
||||
# Neo-tree (including empty area below files)
|
||||
NeoTreeNormal = { bg = "none"; };
|
||||
NeoTreeNormalNC = { bg = "none"; };
|
||||
NeoTreeEndOfBuffer = { bg = "none"; };
|
||||
NeoTreeWinSeparator = { bg = "none"; fg = "#75715e"; };
|
||||
|
||||
# Which-key (v3 uses WhichKeyNormal)
|
||||
WhichKeyNormal = { bg = "none"; };
|
||||
WhichKeyFloat = { bg = "none"; };
|
||||
WhichKeyBorder = { bg = "none"; fg = "#75715e"; };
|
||||
|
||||
# Telescope
|
||||
TelescopeNormal = { bg = "none"; };
|
||||
TelescopeBorder = { bg = "none"; fg = "#75715e"; };
|
||||
};
|
||||
|
||||
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 swtt('solid') anytime
|
||||
extraConfigLua = ''
|
||||
_G.swtt = 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 = [
|
||||
# --- Sets tab spacing for file types ---
|
||||
{
|
||||
event = [ "FileType" ];
|
||||
pattern = [ "html" "css" "javascript" "typescript" "nix" ];
|
||||
pattern = [ "html" "css" "javascript" "typescript" "nix" "lua" ];
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
@@ -47,34 +192,33 @@
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
# --- Set default WezTerm profile on entry/resume ---
|
||||
{
|
||||
event = [ "UIEnter" "VimResume" ];
|
||||
group = "WezTermUserVar";
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
swtt('nvim')
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
# --- Clear WezTerm profile (revert to base config) on exit/suspend ---
|
||||
{
|
||||
event = [ "VimLeavePre" "VimSuspend" ];
|
||||
group = "WezTermUserVar";
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
swtt("")
|
||||
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,17 +7,19 @@
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./wezterm/wezterm.nix
|
||||
];
|
||||
home.packages = (
|
||||
(with pkgs; [
|
||||
# --- Core Wayland plumbing (Stable 26.05) ---
|
||||
wl-clipboard
|
||||
(pkgs.writeShellScriptBin "lg" ''exec ${pkgs.lazygit}/bin/lazygit "$@"'')
|
||||
])
|
||||
++ (with pkgs.unstablePkgs; [
|
||||
# --- Fast-moving CLI utils (Unstable) ---
|
||||
clipse
|
||||
timg
|
||||
])
|
||||
);
|
||||
|
||||
# --- Shell environment ---
|
||||
programs.direnv.enable = true;
|
||||
home.shellAliases = {
|
||||
@@ -25,6 +27,7 @@
|
||||
la = "ls -a";
|
||||
lal = "ls -al";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
@@ -37,6 +40,7 @@
|
||||
please = "sudo";
|
||||
};
|
||||
};
|
||||
|
||||
home.shell.enableFishIntegration = true;
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
@@ -50,13 +54,6 @@
|
||||
'';
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
#extraConfig = "include *.conf";
|
||||
settings = {
|
||||
"include" = "colors.conf";
|
||||
};
|
||||
};
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
@@ -69,6 +66,7 @@
|
||||
user.email = "149337190+WinterEkisha@users.noreply.github.com";
|
||||
};
|
||||
};
|
||||
|
||||
programs.eza.enable = true;
|
||||
programs.bat.enable = true;
|
||||
programs.btop.enable = true;
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
local wezterm = require 'wezterm'
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
-- sets fish as defualt shell
|
||||
config.default_prog = { 'fish', '-l' }
|
||||
|
||||
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',
|
||||
background = '#000000'
|
||||
}
|
||||
|
||||
-- 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 = '#e0e0e0' },
|
||||
window_background_image = wezterm.config_dir .. '/texture.png',
|
||||
window_background_opacity = 1.0,
|
||||
},
|
||||
solid = {
|
||||
colors = { foreground = '#dddddd', background = '#000000' },
|
||||
window_background_opacity = 1.0,
|
||||
},
|
||||
}
|
||||
|
||||
-- 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
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:{
|
||||
xdg.configFile."wezterm/wezterm.lua".source = ./wezterm.lua;
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
package = pkgs.unstablePkgs.wezterm;
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
lua
|
||||
];
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
<div align="center">
|
||||
<img src="https://github.com/sxyazi/yazi/blob/main/assets/logo.png?raw=true" alt="Yazi logo" width="20%">
|
||||
</div>
|
||||
|
||||
<h3 align="center">
|
||||
Catppuccin Frappe Flavor for <a href="https://github.com/sxyazi/yazi">Yazi</a>
|
||||
</h3>
|
||||
|
||||
## 👀 Preview
|
||||
|
||||
<img src="preview.png" width="600" />
|
||||
|
||||
## 🎨 Installation
|
||||
|
||||
```sh
|
||||
ya pkg add yazi-rs/flavors:catppuccin-frappe
|
||||
```
|
||||
|
||||
## ⚙️ Usage
|
||||
|
||||
Set the content of your `theme.toml` to enable it as your _dark_ flavor:
|
||||
|
||||
```toml
|
||||
[flavor]
|
||||
dark = "catppuccin-frappe"
|
||||
```
|
||||
|
||||
Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of this flavor.
|
||||
|
||||
See the [Yazi flavor documentation](https://yazi-rs.github.io/docs/flavors/overview) for more details.
|
||||
|
||||
## 📜 License
|
||||
|
||||
The flavor is MIT-licensed, and the included tmTheme is also MIT-licensed.
|
||||
|
||||
Check the [LICENSE](LICENSE) and [LICENSE-tmtheme](LICENSE-tmtheme) file for more details.
|
||||
@@ -1,215 +0,0 @@
|
||||
# vim:fileencoding=utf-8:foldmethod=marker
|
||||
|
||||
# : Manager {{{
|
||||
|
||||
[mgr]
|
||||
cwd = { fg = "#81c8be" }
|
||||
|
||||
# Find
|
||||
find_keyword = { fg = "#e5c890", bold = true, italic = true, underline = true }
|
||||
find_position = { fg = "#f4b8e4", bg = "reset", bold = true, italic = true }
|
||||
|
||||
# Marker
|
||||
marker_copied = { fg = "#a6d189", bg = "#a6d189" }
|
||||
marker_cut = { fg = "#e78284", bg = "#e78284" }
|
||||
marker_marked = { fg = "#81c8be", bg = "#81c8be" }
|
||||
marker_selected = { fg = "#e5c890", bg = "#e5c890" }
|
||||
|
||||
# Count
|
||||
count_copied = { fg = "#303446", bg = "#a6d189" }
|
||||
count_cut = { fg = "#303446", bg = "#e78284" }
|
||||
count_selected = { fg = "#303446", bg = "#e5c890" }
|
||||
|
||||
# Border
|
||||
border_symbol = "│"
|
||||
border_style = { fg = "#838ba7" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Tabs {{{
|
||||
|
||||
[tabs]
|
||||
active = { fg = "#303446", bg = "#8caaee", bold = true }
|
||||
inactive = { fg = "#8caaee", bg = "#414559" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Mode {{{
|
||||
|
||||
[mode]
|
||||
|
||||
normal_main = { fg = "#303446", bg = "#8caaee", bold = true }
|
||||
normal_alt = { fg = "#8caaee", bg = "#414559" }
|
||||
|
||||
# Select mode
|
||||
select_main = { fg = "#303446", bg = "#81c8be", bold = true }
|
||||
select_alt = { fg = "#81c8be", bg = "#414559" }
|
||||
|
||||
# Unset mode
|
||||
unset_main = { fg = "#303446", bg = "#eebebe", bold = true }
|
||||
unset_alt = { fg = "#eebebe", bg = "#414559" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Status bar {{{
|
||||
|
||||
[status]
|
||||
# Permissions
|
||||
perm_sep = { fg = "#838ba7" }
|
||||
perm_type = { fg = "#8caaee" }
|
||||
perm_read = { fg = "#e5c890" }
|
||||
perm_write = { fg = "#e78284" }
|
||||
perm_exec = { fg = "#a6d189" }
|
||||
|
||||
# Progress
|
||||
progress_label = { fg = "#ffffff", bold = true }
|
||||
progress_normal = { fg = "#a6d189", bg = "#51576d" }
|
||||
progress_error = { fg = "#e5c890", bg = "#e78284" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Pick {{{
|
||||
|
||||
[pick]
|
||||
border = { fg = "#8caaee" }
|
||||
active = { fg = "#f4b8e4", bold = true }
|
||||
inactive = {}
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Input {{{
|
||||
|
||||
[input]
|
||||
border = { fg = "#8caaee" }
|
||||
title = {}
|
||||
value = {}
|
||||
selected = { reversed = true }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Completion {{{
|
||||
|
||||
[cmp]
|
||||
border = { fg = "#8caaee" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Tasks {{{
|
||||
|
||||
[tasks]
|
||||
border = { fg = "#8caaee" }
|
||||
title = {}
|
||||
hovered = { fg = "#f4b8e4", bold = true }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Which {{{
|
||||
|
||||
[which]
|
||||
mask = { bg = "#414559" }
|
||||
cand = { fg = "#81c8be" }
|
||||
rest = { fg = "#949cbb" }
|
||||
desc = { fg = "#f4b8e4" }
|
||||
separator = " "
|
||||
separator_style = { fg = "#626880" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Help {{{
|
||||
|
||||
[help]
|
||||
on = { fg = "#81c8be" }
|
||||
run = { fg = "#f4b8e4" }
|
||||
hovered = { reversed = true, bold = true }
|
||||
footer = { fg = "#414559", bg = "#c6d0f5" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Spotter {{{
|
||||
|
||||
[spot]
|
||||
border = { fg = "#8caaee" }
|
||||
title = { fg = "#8caaee" }
|
||||
tbl_col = { fg = "#81c8be" }
|
||||
tbl_cell = { fg = "#f4b8e4", bg = "#51576d" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Notification {{{
|
||||
|
||||
[notify]
|
||||
title_info = { fg = "#a6d189" }
|
||||
title_warn = { fg = "#e5c890" }
|
||||
title_error = { fg = "#e78284" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : File-specific styles {{{
|
||||
|
||||
[filetype]
|
||||
|
||||
rules = [
|
||||
# Image
|
||||
{ mime = "image/*", fg = "#81c8be" },
|
||||
# Media
|
||||
{ mime = "{audio,video}/*", fg = "#e5c890" },
|
||||
# Archive
|
||||
{ mime = "application/{zip,rar,7z*,tar,gzip,xz,zstd,bzip*,lzma,compress,archive,cpio,arj,xar,ms-cab*}", fg = "#f4b8e4" },
|
||||
# Document
|
||||
{ mime = "application/{pdf,doc,rtf}", fg = "#a6d189" },
|
||||
# Virtual file system
|
||||
{ mime = "vfs/{absent,stale}", fg = "#949cbb" },
|
||||
# Fallback
|
||||
{ url = "*", fg = "#c6d0f5" },
|
||||
{ url = "*/", fg = "#8caaee" },
|
||||
]
|
||||
|
||||
# : }}}
|
||||
|
||||
[icon]
|
||||
|
||||
dirs = [
|
||||
{ name = ".config", text = "", fg = "#f4b8e4" },
|
||||
{ name = ".git", text = "", fg = "#81c8be" },
|
||||
{ name = ".github", text = "", fg = "#8caaee" },
|
||||
{ name = ".npm", text = "", fg = "#8caaee" },
|
||||
{ name = "Desktop", text = "", fg = "#81c8be" },
|
||||
{ name = "Development", text = "", fg = "#81c8be" },
|
||||
{ name = "Documents", text = "", fg = "#81c8be" },
|
||||
{ name = "Downloads", text = "", fg = "#81c8be" },
|
||||
{ name = "Library", text = "", fg = "#81c8be" },
|
||||
{ name = "Movies", text = "", fg = "#81c8be" },
|
||||
{ name = "Music", text = "", fg = "#81c8be" },
|
||||
{ name = "Pictures", text = "", fg = "#81c8be" },
|
||||
{ name = "Public", text = "", fg = "#81c8be" },
|
||||
{ name = "Videos", text = "", fg = "#81c8be" },
|
||||
]
|
||||
conds = [
|
||||
# Special files
|
||||
{ if = "orphan", text = "", fg = "#c6d0f5" },
|
||||
{ if = "link", text = "", fg = "#838ba7" },
|
||||
{ if = "block", text = "", fg = "#eebebe" },
|
||||
{ if = "char", text = "", fg = "#eebebe" },
|
||||
{ if = "fifo", text = "", fg = "#eebebe" },
|
||||
{ if = "sock", text = "", fg = "#eebebe" },
|
||||
{ if = "sticky", text = "", fg = "#eebebe" },
|
||||
{ if = "dummy", text = "", fg = "#e78284" },
|
||||
|
||||
# Fallback
|
||||
{ if = "dir & hovered", text = "", fg = "#8caaee" },
|
||||
{ if = "dir", text = "", fg = "#8caaee" },
|
||||
{ if = "exec", text = "", fg = "#a6d189" },
|
||||
{ if = "!dir", text = "", fg = "#c6d0f5" },
|
||||
]
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 574 KiB |
File diff suppressed because it is too large.
Load diff
@@ -4,11 +4,9 @@
|
||||
enable = true;
|
||||
|
||||
flavors = {
|
||||
catppuccin-frappe = ./catppuccin-frappe;
|
||||
};
|
||||
theme = {
|
||||
flavor = {
|
||||
#dark = "catppuccin-frappe";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -38,6 +36,16 @@
|
||||
run = ''shell 'wl-copy --type "$(file --mime-type -b "$1")" < "$1"' --confirm'';
|
||||
desc = "Copy file data to clipboard with matching MIME type";
|
||||
}
|
||||
{
|
||||
on = ";";
|
||||
run = "shell --interactive --block";
|
||||
desc = "Run a shell command (block until finish)";
|
||||
}
|
||||
{
|
||||
on = ":";
|
||||
run = "shell --interactive";
|
||||
desc = "Run a shell command (yazi background)";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -29,7 +29,6 @@ in {
|
||||
|
||||
};
|
||||
|
||||
# TODO: ensure correct paths
|
||||
home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
||||
|
||||
security.pam.services = {
|
||||
|
||||
@@ -61,9 +61,6 @@ in
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
backupFileExtension = "backup";
|
||||
users = {
|
||||
dev = import ../../../home/Ricky/dev/${hostname}.nix; # FIXME
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
@@ -44,35 +44,16 @@ in
|
||||
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
#flake = "git+https://${repoDomain}/${repoPath}?ref=${repoBranch}#${config.networking.hostName}"; #FIXME
|
||||
flake = "git+https://${repoDomain}/${repoPath}?ref=experimental#${config.networking.hostName}";
|
||||
flags = [
|
||||
"--refresh"
|
||||
];
|
||||
dates = "03:00";
|
||||
randomizedDelaySec = "30min";
|
||||
allowReboot = true;
|
||||
rebootWindow = {
|
||||
lower = "02:00";
|
||||
upper = "05:00";
|
||||
};
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
# --- File Manager ---
|
||||
xdg.mime.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# -- File manager --
|
||||
nemo-with-extensions # Stand alone GUI
|
||||
file-roller
|
||||
imagemagick
|
||||
poppler
|
||||
ffmpeg
|
||||
@@ -83,6 +64,9 @@ in
|
||||
lm_sensors
|
||||
ripgrep
|
||||
unzip
|
||||
kdePackages.okular # PDF Viewer
|
||||
kdePackages.qtsvg
|
||||
qt6.qtwayland
|
||||
];
|
||||
fonts.packages = [ ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||
|
||||
@@ -21,11 +21,10 @@ in
|
||||
# inputs.hardware.nixosModules.common-ssd
|
||||
|
||||
./hardware-configuration.nix
|
||||
../common/global/base.nix
|
||||
../Base.nix
|
||||
|
||||
../common/users/Winter/default.nix
|
||||
../common/features/DesktopNiri.nix
|
||||
../common/features/DesktopKDEPlasma.nix
|
||||
../common/features/Applications.nix
|
||||
#../common/features/servers/minecraft.nix
|
||||
|
||||
@@ -61,9 +60,6 @@ in
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
backupFileExtension = "backup";
|
||||
users = {
|
||||
Winter = import ../../home/Winter/Winter/${hostname}.nix;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
@@ -25,13 +25,12 @@ in
|
||||
|
||||
# Import your generated (nixos-generate-config) hardware configuration
|
||||
./hardware-configuration.nix
|
||||
../common/global/base.nix
|
||||
../Base.nix
|
||||
|
||||
../common/users/Winter/default.nix
|
||||
../common/users/Ekisha/default.nix
|
||||
../common/users/Tester/default.nix
|
||||
../common/features/DesktopNiri.nix
|
||||
../common/features/DesktopKDEPlasma.nix
|
||||
../common/features/Applications.nix
|
||||
../common/servers/minecraft.nix
|
||||
|
||||
|
||||
@@ -60,9 +60,6 @@ in
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
backupFileExtension = "backup";
|
||||
users = {
|
||||
EXAMPLE = import ../../../home/EXAMPLE/EXAMPLE/${hostname}.nix; # FIXME
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
"org.kde.krita"
|
||||
"com.mojang.Minecraft"
|
||||
"org.prismlauncher.PrismLauncher"
|
||||
"org.gnome.Showtime" #Duplicate -testing
|
||||
"io.github.diegopvlk.Cine" #Duplicate -testing
|
||||
"org.gnome.gThumb"
|
||||
"org.gnome.Calculator"
|
||||
"net.lutris.Lutris"
|
||||
];
|
||||
|
||||
@@ -12,6 +12,15 @@
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
programs.niri.enable = true;
|
||||
|
||||
xdg.portal = { # Prevents niri from opening files with nautilus
|
||||
enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
config.niri = {
|
||||
default = [ "gnome" "gtk" ];
|
||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||
};
|
||||
};
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
programs.seahorse.enable = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user