From 394252729639b6b817468baa339c5f815f66bc76 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Mon, 3 Nov 2025 12:51:27 +0900 Subject: [PATCH] btop --- modules/core/packages.nix | 2 +- modules/home/btop/default.nix | 12 ++++ modules/home/btop/dracula.theme | 89 +++++++++++++++++++++++++++ modules/home/default.nix | 1 + modules/home/{sns.nix => discord.nix} | 0 profiles/gui.nix | 2 +- 6 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 modules/home/btop/default.nix create mode 100644 modules/home/btop/dracula.theme rename modules/home/{sns.nix => discord.nix} (100%) diff --git a/modules/core/packages.nix b/modules/core/packages.nix index ff0a618..da3c5b2 100644 --- a/modules/core/packages.nix +++ b/modules/core/packages.nix @@ -22,7 +22,7 @@ in environment.systemPackages = with pkgs; [ greetd.tuigreet # The Login Manager (Sometimes Referred To As Display Manager) - htop # Simple Terminal Based System Monitor + htop btop # Simple Terminal Based System Monitor unrar # Tool For Handling .rar Files unzip # Tool For Handling .zip Files uwsm # Universal Wayland Session Manager (optional must be enabled) diff --git a/modules/home/btop/default.nix b/modules/home/btop/default.nix new file mode 100644 index 0000000..106d982 --- /dev/null +++ b/modules/home/btop/default.nix @@ -0,0 +1,12 @@ +{ ... }: +{ + programs = { + btop = { + enable = true; + settings.color_theme = "dracula"; + themes = { + dracula = builtins.readFile ./dracula.theme; + }; + }; + }; +} \ No newline at end of file diff --git a/modules/home/btop/dracula.theme b/modules/home/btop/dracula.theme new file mode 100644 index 0000000..a0355f3 --- /dev/null +++ b/modules/home/btop/dracula.theme @@ -0,0 +1,89 @@ +#Bashtop theme with nord palette (https://www.nordtheme.com) +#by Justin Zobel + +# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255" +# example for white: "#ffffff", "#ff" or "255 255 255". + +# All graphs and meters can be gradients +# For single color graphs leave "mid" and "end" variable empty. +# Use "start" and "end" variables for two color gradient +# Use "start", "mid" and "end" for three color gradient + +# Main background, empty for terminal default, need to be empty if you want transparent background +theme[main_bg]="#282A36" + +# Main text color +theme[main_fg]="#BD93F9" + +# Title color for boxes +theme[title]="#f8f8f2" + +# Higlight color for keyboard shortcuts +theme[hi_fg]="#ff79c6" + +# Background color of selected item in processes box +theme[selected_bg]="#44475A" + +# Foreground color of selected item in processes box +theme[selected_fg]="#ECEFF4" + +# Color of inactive/disabled text +theme[inactive_fg]="#6272a4" + +# Misc colors for processes box including mini cpu graphs, details memory graph and details status text +theme[proc_misc]="#BD93F9" + +# Cpu box outline color +theme[cpu_box]="#ff79c6" + +# Memory/disks box outline color +theme[mem_box]="#ff79c6" + +# Net up/down box outline color +theme[net_box]="#ff79c6" + +# Processes box outline color +theme[proc_box]="#ff79c6" + +# Box divider line and small boxes line color +theme[div_line]="#ff79c6" + +# Temperature graph colors +theme[temp_start]="#bd93f9" +theme[temp_mid]="#bd93f9" +theme[temp_end]="#bd93f9" + +# CPU graph colors +theme[cpu_start]="#bd93f9" +theme[cpu_mid]="#bd93f9" +theme[cpu_end]="#bd93f9" + +# Mem/Disk free meter +theme[free_start]="#bd93f9" +theme[free_mid]="#bd93f9" +theme[free_end]="#bd93f9" + +# Mem/Disk cached meter +theme[cached_start]="#bd93f9" +theme[cached_mid]="#bd93f9" +theme[cached_end]="#bd93f9" + +# Mem/Disk available meter +theme[available_start]="#bd93f9" +theme[available_mid]="#bd93f9" +theme[available_end]="#bd93f9" + +# Mem/Disk used meter +theme[used_start]="#bd93f9" +theme[used_mid]="#bd93f9" +theme[used_end]="#bd93f9" + +# Download graph colors +theme[download_start]="#bd93f9" +theme[download_mid]="#bd93f9" +theme[download_end]="#bd93f9" + +# Upload graph colors +theme[upload_start]="#bd93f9" +theme[upload_mid]="#bd93f9" +theme[upload_end]="#bd93f9" diff --git a/modules/home/default.nix b/modules/home/default.nix index c4183a1..6e39b49 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./btop ./git.nix ./fcitx5 ./ssh.nix diff --git a/modules/home/sns.nix b/modules/home/discord.nix similarity index 100% rename from modules/home/sns.nix rename to modules/home/discord.nix diff --git a/profiles/gui.nix b/profiles/gui.nix index 56e967a..f7a37e7 100644 --- a/profiles/gui.nix +++ b/profiles/gui.nix @@ -20,6 +20,6 @@ ./../modules/home/ghostty ./../modules/home/wallpaper.nix ./../modules/home/lock.nix - ./../modules/home/sns.nix + ./../modules/home/discord.nix ]; } \ No newline at end of file