few scripts to show host statuses on the tmux status bar.
These are mostly based on this article.
Clone this repository on your $HOME
directory. Then put/replace these lines in
your ~/.tmux.conf
-
set -g status-right-length 100
set -g status-right '#(~/.tmux-status-scripts/cpuload.sh)#(~/.tmux-status-scripts/cputemp.sh)#(~/.tmux-status-scripts/netload.sh wlan0)#(~/.tmux-status-scripts/battery.sh)#(date +"%a %b %_d %I:%M:%S")'
And run tmux -u
-
tmux attempts to guess if the terminal is likely to support UTF-8 by checking the first of the LC_ALL, LC_CTYPE and LANG environment variables to be set for the string "UTF-8". This is not always correct: the
-u
flag explicitly informs tmux that UTF-8 is supported.
I've added my own .tmux.conf
in this repo as well. You can copy it to your home directory and
you'll have your tmux configured in a very conveninent way. Listing some of them below -
- changed prefix key to
ctrl+a
in place of defaultctrl+b
- changed history limit to 100000 (100k)
- uses
zsh
as default shell - uses
ctrl+a + ctrl+|
to split the window vertically andctrl+a + ctrl+_
to split horizontally - uses
shift+<arrow key>
to move between split panes