diff --git a/Makefile b/Makefile index 48009ba..1c8cec5 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,10 @@ ASDF_CLEAN_TARGETS += CARGO_TARGETS += CARGO_CLEAN_TARGETS += +# bottom +BOTTOM_TARGETS += +BOTTOM_CLEAN_TARGETS += + #################### # include # #################### @@ -204,6 +208,10 @@ ALL_CLEAN_TARGETS += ASDF_CLEAN_TARGETS ALL_TARGETS += CARGO_TARGETS ALL_CLEAN_TARGETS += CARGO_CLEAN_TARGETS +# bottom +ALL_TARGETS += BOTTOM_TARGETS +ALL_CLEAN_TARGETS += BOTTOM_CLEAN_TARGETS + #################### # commands # #################### diff --git a/modules/bottom/Makefile b/modules/bottom/Makefile new file mode 100644 index 0000000..8d33aca --- /dev/null +++ b/modules/bottom/Makefile @@ -0,0 +1,16 @@ +BOTTOM_DIR = ~/.config/bottom +SELF_BOTTOM_DIR = $(MODULE_DIR)/bottom + +BOTTOM_CLEAN_TARGETS += bottom-clean +BOTTOM_TARGETS += bottom-install + +.PHONY: bottom-install +bottom-install: $(BOTTOM_DIR) + ln -sf $(SELF_BOTTOM_DIR)/bottom.toml $(BOTTOM_DIR)/bottom.toml + +$(BOTTOM_DIR): + mkdir -p $(BOTTOM_DIR) + +.PHONY: bottom-clean +bottom-clean: + rm -r $(BOTTOM_DIR) diff --git a/modules/bottom/bottom.toml b/modules/bottom/bottom.toml new file mode 100644 index 0000000..66f437d --- /dev/null +++ b/modules/bottom/bottom.toml @@ -0,0 +1,44 @@ +[[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"