Wednesday, September 7, 2016

i3Blocks Show External IP Address

To continue my series about tinkering with i3Blocks, I created a script that utilizes wget to return my external (or public) IP address and display it in the status bar. Read more about the i3 Window Manager here.

It's a very simple script that uses an external server to identify the IP address and prints it to that status bar.


#!/bin/bash

IP=$(wget http://ipinfo.io/ip -qO -)
echo $IP


I will be keeping a complete collection of my scripts on my github.

Please feel free to comment or to ask questions!




StumbleUpon

No comments :

Post a Comment