From 1c7e6cc384dc5dbea2943d37d36ddfbfe0f134ac Mon Sep 17 00:00:00 2001 From: Ivan Dimitrov Date: Sun, 26 Nov 2023 11:58:56 +0200 Subject: [PATCH] bottom config --- home/default.nix | 2 +- modules/home/packages/essential/default.nix | 1 - modules/home/programs/bottom/default.nix | 33 +++++++++++++++++++++ modules/home/programs/default.nix | 1 + 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 modules/home/programs/bottom/default.nix diff --git a/home/default.nix b/home/default.nix index a75b69f..f1fdc94 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,6 +1,6 @@ { system, pkgs, home-manager, modules, ... }: let - ivand-programs = with modules.home.programs; [ nvim zsh tmux git chromium kitty lf obs-studio sway swaylock browserpass ]; + ivand-programs = with modules.home.programs; [ nvim zsh tmux git chromium kitty lf obs-studio sway swaylock browserpass bottom ]; ivand-packages = with modules.home.packages; [ dev essential media ]; vid-programs = with modules.home.programs; [ nvim zsh tmux ]; in diff --git a/modules/home/packages/essential/default.nix b/modules/home/packages/essential/default.nix index 379d185..8e75c19 100644 --- a/modules/home/packages/essential/default.nix +++ b/modules/home/packages/essential/default.nix @@ -13,7 +13,6 @@ imv ripgrep bat - bottom procs mupdf gopass diff --git a/modules/home/programs/bottom/default.nix b/modules/home/programs/bottom/default.nix new file mode 100644 index 0000000..2887531 --- /dev/null +++ b/modules/home/programs/bottom/default.nix @@ -0,0 +1,33 @@ +{ + programs.bottom = { + enable = true; + settings = { + flags = { + rate = "250ms"; + }; + row = [ + { + ratio = 40; + child = [ + { type = "cpu"; } + { type = "mem"; } + { type = "net"; } + ]; + } + { + ratio = 35; + child = [ + { type = "temp"; } + { type = "disk"; } + ]; + } + { + ratio = 40; + child = [ + { type = "proc"; default = true; } + ]; + } + ]; + }; + }; +} diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index 5e6a139..7ee837f 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -13,4 +13,5 @@ zsh = import ./zsh { inherit pkgs; }; browserpass = { programs.browserpass.enable = true; }; sway = import ./sway { inherit pkgs; }; + bottom = import ./bottom; }