commit a6159bce27c22136b2c8b52f895548312a578fd5
parent 3cf269c4e4ba0b1096aad867f2499d310258588f
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 28 Jan 2021 15:26:59 +0100
Replace htop with gotop
I hate the htop bindings, and there's no way to change them outside of
installing a fork. So I just installed a different program.
Diffstat:
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/dot.map b/dot.map
@@ -53,6 +53,7 @@ ncmpcpp: ~/.config/ncmpcpp
pipe-viewer: ~/.config/pipe-viewer
R: ~/.config/R
zathura: ~/.config/zathura
+gotop: ~/.config/gotop
# Config: X server (Linux)
xinitrc: ~/.xinitrc
diff --git a/gotop/gotop.conf b/gotop/gotop.conf
@@ -0,0 +1,29 @@
+# Scale graphs to this level; 7 is the default, 2 is zoomed out.
+graphhorizontalscale=7
+# If true, start the UI with the help visible
+helpvisible=false
+# The color scheme to use. See `--list colorschemes`
+colorscheme=default-dark
+# How frequently to update the UI, in nanoseconds
+updateinterval=1000000000
+# If true, show the average CPU load
+averagecpu=false
+# If true, show load per CPU
+percpuload=true
+# Temperature units. C for Celcius, F for Fahrenheit
+tempscale=C
+# If true, display a status bar
+statusbar=false
+# The network interface to monitor
+netinterface=all
+# A layout name. See `--list layouts`
+layout=kitchensink
+# The maximum log file size, in bytes
+maxlogsize=5000000
+# If set, export data as Promethius metrics on the interface:port.
+# E.g., `:8080` (colon is required, interface is not)
+#metricsexportport=
+# Display network IO in mpbs if true
+mbps=false
+# A list of enabled temp sensors. See `--list devices`
+#temperatures=
diff --git a/shell/aliases b/shell/aliases
@@ -14,7 +14,6 @@ alias du="du -skh"
alias df="df -h" # Show human-readable sizes
alias bc="bc -ql" # Don't print welcome message, use the standard math lib
alias jobs="jobs -l" # Show everything including PIDs
-alias htop='sudo htop' # Run htop as root by default
alias g='git' # Make git easier to type
alias wheredef='type -a' # Where is a function defined?
alias j='joplin'
@@ -28,6 +27,7 @@ alias scim="sc-im"
alias mbsync='mbsync -c $HOME/.config/mbsync/mbsyncrc'
alias mutt='{ [ -f "$BW_SESHFILE" ] && BW_SESSION="$(cat $BW_SESHFILE)" neomutt; } || BW_SESSION="$(bw unlock --raw)" neomutt;'
alias yt="pipe-viewer"
+alias gotop='sudo gotop -C $XDG_CONFIG_HOME/gotop/gotop.conf'
[ -n "$VIM_TERMINAL" ] && alias vim=vimsend
{ [ -f ~/.config/dark-theme ] && alias bat="bat --theme=1337 --color=always"; } || alias bat="bat --theme=GitHub --color=always"
[ -f "$DOTFILES"/docs/pbib/README.md ] && alias pbib='vim +$(nl -b a '$DOTFILES"/docs/pbib/README.md | fzf --with-nth 2.. -e -q '^# ' | sed 's/[^0-9]//g') "$DOTFILES"/docs/pbib/README.md"