Small clean ups

This commit is contained in:
2026-05-20 12:17:38 -04:00
parent 98ed85c4b0
commit aea8ace059
12 changed files with 862 additions and 646 deletions
+98
View File
@@ -0,0 +1,98 @@
{
flake.modules.homeManager.btop = {
programs.btop = {
enable = true;
settings = {
color_theme = "catppuccin_mocha";
theme_background = false;
};
themes = {
catppuccin_mocha = ''
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#1e1e2e"
# Main text color
theme[main_fg]="#cdd6f4"
# Title color for boxes
theme[title]="#cdd6f4"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#89b4fa"
# Background color of selected item in processes box
theme[selected_bg]="#45475a"
# Foreground color of selected item in processes box
theme[selected_fg]="#89b4fa"
# Color of inactive/disabled text
theme[inactive_fg]="#7f849c"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#f5e0dc"
# Background color of the percentage meters
theme[meter_bg]="#45475a"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#f5e0dc"
# CPU, Memory, Network, Proc box outline colors
theme[cpu_box]="#cba6f7" #Mauve
theme[mem_box]="#a6e3a1" #Green
theme[net_box]="#eba0ac" #Maroon
theme[proc_box]="#89b4fa" #Blue
# Box divider line and small boxes line color
theme[div_line]="#6c7086"
# Temperature graph color (Green -> Yellow -> Red)
theme[temp_start]="#a6e3a1"
theme[temp_mid]="#f9e2af"
theme[temp_end]="#f38ba8"
# CPU graph colors (Teal -> Lavender)
theme[cpu_start]="#94e2d5"
theme[cpu_mid]="#74c7ec"
theme[cpu_end]="#b4befe"
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
theme[free_start]="#cba6f7"
theme[free_mid]="#b4befe"
theme[free_end]="#89b4fa"
# Mem/Disk cached meter (Sapphire -> Lavender)
theme[cached_start]="#74c7ec"
theme[cached_mid]="#89b4fa"
theme[cached_end]="#b4befe"
# Mem/Disk available meter (Peach -> Red)
theme[available_start]="#fab387"
theme[available_mid]="#eba0ac"
theme[available_end]="#f38ba8"
# Mem/Disk used meter (Green -> Sky)
theme[used_start]="#a6e3a1"
theme[used_mid]="#94e2d5"
theme[used_end]="#89dceb"
# Download graph colors (Peach -> Red)
theme[download_start]="#fab387"
theme[download_mid]="#eba0ac"
theme[download_end]="#f38ba8"
# Upload graph colors (Green -> Sky)
theme[upload_start]="#a6e3a1"
theme[upload_mid]="#94e2d5"
theme[upload_end]="#89dceb"
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
theme[process_start]="#74c7ec"
theme[process_mid]="#b4befe"
theme[process_end]="#cba6f7"
'';
};
};
};
}
+1 -1
View File
@@ -92,7 +92,7 @@
{
normal = {
"C-y" =
":sh zellij run -n Yazi -c -f -x 10%% -y 10%% --width 80%% --height 80%% -- yazi-picker open %{buffer_name}";
":sh zellij run -n Yazi -c -f -x 10%% -y 10%% --width 80%% --height 80%% -- yazi-picker open \"%{buffer_name}\"";
}
// arrow_keys;
insert = {
+565 -567
View File
File diff suppressed because it is too large Load Diff
+40 -17
View File
@@ -38,6 +38,9 @@
theme = "catppuccin-mocha";
show_startup_tips = false;
default_mode = "locked";
session_serialization = false;
on_force_close = "quit";
support_kitty_keyboard_protocol = false;
ui._children = [
{
@@ -62,19 +65,51 @@
}
])
(sharedExcept
[ "locked" "normal" "renamepane" "renametab" ]
[ "locked" "renamepane" "renametab" ]
[
{
keys = "Esc";
actions = [ (switchMode "Locked") ];
}
]
)
(sharedExcept
[ "locked" "normal" "renamepane" "renametab" ]
[
{
keys = "${mod} n";
actions = [ (switchMode "Normal") ];
}
]
)
(sharedExcept
[ "locked" "pane" "renamepane" "renametab" ]
[
{
keys = "${mod} p";
actions = [ (switchMode "Pane") ];
}
]
)
(sharedExcept
[ "locked" "tab" "renamepane" "renametab" ]
[
{
keys = "${mod} t";
actions = [ (switchMode "Tab") ];
}
]
)
(sharedExcept
[ "locked" "resize" "renamepane" "renametab" ]
[
{
keys = "${mod} r";
actions = [ (switchMode "Resize") ];
}
]
)
(modeBinds "normal" [
{
keys = "Esc";
actions = [ (switchMode "Locked") ];
}
{
keys = "h";
actions = [ (actionWith "MoveFocusOrTab" [ "Left" ]) ];
@@ -99,18 +134,6 @@
keys = "L";
actions = [ (action "GoToNextTab") ];
}
{
keys = "p";
actions = [ (switchMode "Pane") ];
}
{
keys = "t";
actions = [ (switchMode "Tab") ];
}
{
keys = "r";
actions = [ (switchMode "Resize") ];
}
])
(modeBinds "pane" [
{
-169
View File
@@ -1,169 +0,0 @@
{
inputs,
...
}:
{
flake.modules.homeManager.zen-browser =
{ pkgs, config, ... }:
{
imports = [
inputs.zen-browser.homeModules.twilight
];
programs.zen-browser =
let
mkPluginUrl = id: "https://addons.mozilla.org/firefox/downloads/latest/${id}/latest.xpi";
mkExtensionEntry =
{
id,
pinned ? false,
}:
let
base = {
install_url = mkPluginUrl id;
installation_mode = "force_installed";
};
in
if pinned then base // { default_area = "navbar"; } else base;
mkExtensionSettings = builtins.mapAttrs (
_: entry: if builtins.isAttrs entry then entry else mkExtensionEntry { id = entry; }
);
in
{
enable = true;
setAsDefaultBrowser = true;
languagePacks = [ "en-US" ];
policies = {
DefaultDownloadDirectory = config.xdg.userDirs.download;
DisableFirefoxAccounts = true;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableProfileImport = true;
DisableProfileRefresh = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "never";
DontCheckDefaultBrowser = true;
EnableTrackingProtection = {
Value = true; # Tracking protection is enabled by default in both the regular browser and private browsing
Locked = true; # Whether or not a user can change tracking protection
Cryptomining = true; # Block cryptomining scripts
Fingerprinting = true; # Block fingerprinting scripts
EmailTracking = true; # Block email tracking pixels and scripts
};
ExtensionSettings = mkExtensionSettings {
"uBlock0@raymondhill.net" = mkExtensionEntry {
id = "ublock-origin";
pinned = true;
};
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = "bitwarden-password-manager";
};
FirefoxSuggest = {
WebSuggestions = true;
SponsoredSuggestions = false;
ImproveSuggest = false;
Locked = true;
};
Homepage = {
URL = "http://100.78.212.35:30054";
Locked = true;
StartPage = "homepage";
};
OfferToSaveLogins = false;
OverrideFirstRunPage = "";
PasswordManagerEnabled = false;
PopupBlocking = {
Default = false;
Locked = true;
};
PrimaryPassword = false;
SearchBar = "unified";
ShowHomeButton = true;
SkipTermsOfUse = true;
};
profiles.default = {
search = {
force = true;
default = "google";
engines =
let
nixSnowflakeIcon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
in
{
nix-packages = {
name = "Nix Packages";
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "channel";
value = "unstable";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = nixSnowflakeIcon;
definedAliases = [ "@np" ];
};
nix-options = {
name = "Nix Options";
urls = [
{
template = "https://search.nixos.org/options";
params = [
{
name = "channel";
value = "unstable";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = nixSnowflakeIcon;
definedAliases = [ "@no" ];
};
home-manager = {
name = "Home Manager";
urls = [
{
template = "https://home-manager-options.extranix.com";
params = [
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = nixSnowflakeIcon;
definedAliases = [ "@hm" ];
};
surugaya = {
name = "Surugaya";
urls = [
{
template = "https://www.suruga-ya.jp/search?search_word={searchTerms}";
}
];
iconMapObj."16" = "https://www.suruga-ya.jp/drupal/themes/surugaya/favicon.ico";
definedAliases = [ "@suru" ];
};
};
};
settings = {
# Auto-enable extensions
"extensions.autoDisableScopes" = 0;
};
};
};
};
}