Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed May 24, 2024
1 parent 632e678 commit e23af2e
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ ASDF_CLEAN_TARGETS +=
CARGO_TARGETS +=
CARGO_CLEAN_TARGETS +=

# bottom
BOTTOM_TARGETS +=
BOTTOM_CLEAN_TARGETS +=

####################
# include #
####################
Expand Down Expand Up @@ -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 #
####################
Expand Down
16 changes: 16 additions & 0 deletions modules/bottom/Makefile
Original file line number Diff line number Diff line change
@@ -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)
44 changes: 44 additions & 0 deletions modules/bottom/bottom.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit e23af2e

Please sign in to comment.