Git Product home page Git Product logo

wifi's Introduction

Wifi

image

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.

Features

  • 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).

Requirements

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: image

Install - Mac

Homebrew (Does now work yet, I think)

Just do (case sensitive)

brew tap nhhagen/wifi
brew install wifi

One Liner

(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

Step by Step

  • 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

Usage

Terminal

  • Run Wifi (From the terminal)

    wifi

You should see something like this:

image

tmux

  • Be sure to make tmux display utf-8 characters by running it with the -u flag

    tmux -u

  • Add the following line to your ~/.tmux.conf file

    set -g status-right "#(/usr/bin/wifi -t)"

  • reload the tmux config by running tmux source-file ~/.tmux.conf.

You should now see something like this at the bottom right corner:

image

Flags

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.

wifi's People

Contributors

bfontaine avatar bryangarza avatar chrismytton avatar dasilvacontin avatar edpaget avatar gerep avatar goles avatar joshhunt avatar lurst avatar nhhagen avatar valpackett avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.