diff --git a/home-manager/programs/bottom/bottom.toml b/home-manager/programs/bottom/bottom.toml deleted file mode 100644 index 66f437d..0000000 --- a/home-manager/programs/bottom/bottom.toml +++ /dev/null @@ -1,44 +0,0 @@ -[[row]] - [[row.child]] - ratio=2 - type="cpu" - [[row.child]] - type="mem" -[[row]] - [[row.child]] - type="net" - ratio=2 - [[row.child]] - type="disk" - ratio=2 - [[row.child]] - type="temp" -[[row]] - ratio=3 - [[row.child]] - type="proc" - default=true - -[flags] -basic = false -group_processes = true -case_sensitive = false -rate = 700 -dot_marker = false -hide_table_gap = true - -[disk_filter] -is_list_ignored = true -list = ["/dev/loop\\d+"] -regex = true - -[colors] -avg_cpu_color="Red" -border_color="White" -graph_color="Gray" -highlighted_border_color="LightMagenta" -selected_bg_color="Magenta" -selected_text_color="Black" -table_header_color="Blue" -text_color="White" -widget_title_color="Cyan" diff --git a/home-manager/programs/bottom/default.nix b/home-manager/programs/bottom/default.nix index c39da8b..cc74e03 100644 --- a/home-manager/programs/bottom/default.nix +++ b/home-manager/programs/bottom/default.nix @@ -1,5 +1,62 @@ { - home.file.".config/bottom/bottom.toml".source = ./bottom.toml; - - programs.bottom.enable = true; + programs.bottom = { + enable = true; + settings = { + row = [ + { + child = [ + { + ratio = 2; + type = "cpu"; + } + { type = "mem"; } + ]; + } + { + child = [ + { + ratio = 2; + type = "net"; + } + { + ratio = 2; + type = "disk"; + } + { type = "temp"; } + ]; + } + { + ratio = 3; + child = [{ + default = true; + type = "proc"; + }]; + } + ]; + colors = { + avg_cpu_color = "Red"; + border_color = "White"; + graph_color = "Gray"; + highlighted_border_color = "LightMagenta"; + selected_bg_color = "Magenta"; + selected_text_color = "Black"; + table_header_color = "Blue"; + text_color = "White"; + widget_title_color = "Cyan"; + }; + disk_filter = { + is_list_ignored = true; + list = [ "/dev/loop\\d+" ]; + regex = true; + }; + flags = { + basic = false; + case_sensitive = false; + dot_marker = false; + group_processes = true; + hide_table_gap = true; + rate = 700; + }; + }; + }; }