summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-btop.nix
diff options
context:
space:
mode:
authorbeeb5k <beebeeb5k@gmail.com>2026-03-06 21:37:34 +0530
committerbeeb5k <beebeeb5k@gmail.com>2026-03-06 21:37:34 +0530
commit0de067092c9dd19c3352554e39de73e172f29b42 (patch)
tree4175503766405733846687efdb29657bb322dccd /common/modules/matugen/templates/matugen-btop.nix
parentf1de2014dcd426e015a2638222160d9d349ea4e5 (diff)
Add modules
Diffstat (limited to 'common/modules/matugen/templates/matugen-btop.nix')
-rw-r--r--common/modules/matugen/templates/matugen-btop.nix93
1 files changed, 93 insertions, 0 deletions
diff --git a/common/modules/matugen/templates/matugen-btop.nix b/common/modules/matugen/templates/matugen-btop.nix
new file mode 100644
index 0000000..1f23c25
--- /dev/null
+++ b/common/modules/matugen/templates/matugen-btop.nix
@@ -0,0 +1,93 @@
+{
+ config,
+ lib,
+ ...
+}:
+{
+ config = lib.mkIf config.programs.btop.enable {
+ xdg.configFile = {
+ "matugen/templates/btop.theme" = {
+ text = ''
+ # Main background, empty for terminal default, need to be empty if you want transparent background
+ theme[main_bg]=""
+
+ # Main text color
+ theme[main_fg]="{{colors.on_surface.default.hex}}"
+
+ # Title color for boxes
+ theme[title]="{{colors.primary.default.hex}}"
+
+ # Highlight color for keyboard shortcuts
+ theme[hi_fg]="{{colors.secondary.default.hex}}"
+
+ # Background color of selected item in processes box
+ theme[selected_bg]="{{colors.primary.default.hex}}"
+
+ # Foreground color of selected item in processes box
+ theme[selected_fg]="{{colors.on_primary.default.hex}}"
+
+ # Color of inactive/disabled text
+ theme[inactive_fg]="{{colors.on_surface_variant.default.hex}}"
+
+ # Misc colors for processes box including mini cpu graphs, details memory graph and details status text
+ theme[proc_misc]="{{colors.tertiary.default.hex}}"
+
+ # Cpu box outline color
+ theme[cpu_box]="{{colors.outline.default.hex}}"
+
+ # Memory/disks box outline color
+ theme[mem_box]="{{colors.outline.default.hex}}"
+
+ # Net up/down box outline color
+ theme[net_box]="{{colors.outline.default.hex}}"
+
+ # Processes box outline color
+ theme[proc_box]="{{colors.outline.default.hex}}"
+
+ # Box divider line and small boxes line color
+ theme[div_line]="{{colors.outline_variant.default.hex}}"
+
+ # Temperature graph colors
+ theme[temp_start]="{{colors.secondary.default.hex}}"
+ theme[temp_mid]="{{colors.primary.default.hex}}"
+ theme[temp_end]="{{colors.error.default.hex}}"
+
+ # CPU graph colors
+ theme[cpu_start]="{{colors.secondary.default.hex}}"
+ theme[cpu_mid]="{{colors.primary.default.hex}}"
+ theme[cpu_end]="{{colors.error.default.hex}}"
+
+ # Mem/Disk free meter
+ theme[free_start]="{{colors.secondary.default.hex}}"
+ theme[free_mid]=""
+ theme[free_end]="{{colors.secondary_container.default.hex}}"
+
+ # Mem/Disk cached meter
+ theme[cached_start]="{{colors.tertiary.default.hex}}"
+ theme[cached_mid]=""
+ theme[cached_end]="{{colors.tertiary_container.default.hex}}"
+
+ # Mem/Disk available meter
+ theme[available_start]="{{colors.primary.default.hex}}"
+ theme[available_mid]=""
+ theme[available_end]="{{colors.primary_container.default.hex}}"
+
+ # Mem/Disk used meter
+ theme[used_start]="{{colors.error.default.hex}}"
+ theme[used_mid]=""
+ theme[used_end]="{{colors.error_container.default.hex}}"
+
+ # Download graph colors
+ theme[download_start]="{{colors.secondary.default.hex}}"
+ theme[download_mid]="{{colors.primary.default.hex}}"
+ theme[download_end]="{{colors.tertiary.default.hex}}"
+
+ # Upload graph colors
+ theme[upload_start]="{{colors.secondary.default.hex}}"
+ theme[upload_mid]="{{colors.primary.default.hex}}"
+ theme[upload_end]="{{colors.tertiary.default.hex}}"
+ '';
+ };
+ };
+ };
+}