Skip to content

iambibhas/tmux-status-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tmux-status-scripts

few scripts to show host statuses on the tmux status bar.

These are mostly based on this article.

How to use

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 status bar

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.

Use my .tmux.conf (optional)

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 default ctrl+b
  • changed history limit to 100000 (100k)
  • uses zsh as default shell
  • uses ctrl+a + ctrl+| to split the window vertically and ctrl+a + ctrl+_ to split horizontally
  • uses shift+<arrow key> to move between split panes

About

Scripts to show host statuses on the tmux status bar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages