Wifi is a little bash script that uses Spark to display the wifi status on your tmux sessions or the terminal.
This is a fork of Battery and adapted to display wifi signal strength.
- Changes color to reflect wifi status (Green, Yellow, Red)
- Displays wifi percentage
- Graph bar changes its values between 0 and 100% (thanks to spark)
- If you don't like the default colors, you can specify the good, medium and warning wifi status colors using flags (read usage).
Right now, wifi requires Spark to graph your wifi status. Wifi can run on Mac OS X
If you don't want to use Spark, you can use the -a
flag, for ascii output:
Just do (case sensitive)
brew tap nhhagen/wifi
brew install wifi
(Cut & Paste on terminal to install on /usr/bin
, btw, try to run from ~/
or
other writable dir)
brew install spark; curl -O https://raw.github.com/nhhagen/Wifi/master/wifi ; \
sudo mv wifi /usr/bin; sudo chmod 755 /usr/bin/wifi
-
Install spark (with Homebrew on Mac OS X)
brew install spark
-
Copy wifi somewhere in your path & fix permissions
sudo cp wifi /usr/bin
sudo chmod 755 /usr/bin/wifi
-
Run Wifi (From the terminal)
wifi
-
Be sure to make tmux display utf-8 characters by running it with the
-u
flagtmux -u
-
Add the following line to your
~/.tmux.conf
fileset -g status-right "#(/usr/bin/wifi -t)"
-
reload the tmux config by running
tmux source-file ~/.tmux.conf
.
You can specifiy the colors for good wifi
level, middle wifi level, and warning wifi level with the flags -g -m -w
. Note: You should use color names for when in tmux mode and
ascii colors in terminal
mode.