diff --git a/.config/bottom/bottom.toml b/.config/bottom/bottom.toml new file mode 100644 index 0000000..c2e2390 --- /dev/null +++ b/.config/bottom/bottom.toml @@ -0,0 +1,7 @@ +[flags] +hide_table_gap = true # Remove space in tables +color = "default-light" +process_command = true + +[processes] +columns = ["PID", "State", "Name", "CPU%", "Mem%", "R/s", "W/s", "User"] diff --git a/.config/guix/manifests/console.scm b/.config/guix/manifests/console.scm index 90b2cfd..a963b0c 100644 --- a/.config/guix/manifests/console.scm +++ b/.config/guix/manifests/console.scm @@ -1,6 +1,5 @@ (specifications->manifest '( - "bottom-bin" "openssl" "ncdu" "megacmd" @@ -23,6 +22,7 @@ "bat" "exa" "ncurses" + "bottom-bin" "alacritty" "xclip" "python-tmuxp" diff --git a/Console.org b/Console.org index 8bea645..46211ce 100644 --- a/Console.org +++ b/Console.org @@ -848,6 +848,30 @@ key_bindings: - { key: Minus, mods: Control, action: DecreaseFontSize } - { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } #+end_src +* Bottom +| Guix dependency | Description | +|-----------------------+---------------------------------------------| +| bottom-bin | resource monitor | + +[[https://github.com/ClementTsang/bottom][bottom]] is a TUI system monitor. + +See the [[https://github.com/ClementTsang/bottom/blob/master/sample_configs/default_config.toml][default config]] for the avaliable options. + +#+NAME: bottom-theme +#+begin_src elisp +(if (my/light-p) "default-light" "default") +#+end_src + +#+begin_src toml :tangle ~/.config/bottom/bottom.toml :noweb yes +[flags] +hide_table_gap = true # Remove space in tables +color = "<>" +process_command = true + +[processes] +columns = ["PID", "State", "Name", "CPU%", "Mem%", "R/s", "W/s", "User"] +#+end_src + * Various console applications | Guix dependency | Description | |-----------------------+---------------------------------------------| @@ -873,7 +897,6 @@ key_bindings: | megacmd | mega.nz client | | ncdu | disk usage analyzer | | openssl | | -| bottom-bin | resource monitor | ** ripgrep config Occasionally I can't exclude certain files from ripgrep via the VCS settings, so here is a simple config to ignore certain files globally.