diff options
author | Stefan Ritter <xeno@thehappy.de> | 2009-05-15 12:41:43 +0200 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2009-05-15 12:41:43 +0200 |
commit | 74957f1c8252a74f91d693a14c48abe92687f2b1 (patch) | |
tree | 9258a42f2a4bddc645eef567f632dbb6116bed5e | |
parent | a30c0608552bb9231ad2b991b032d50e4c97b891 (diff) |
A better way to fetch my IP
-rwxr-xr-x | awesome_bar.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awesome_bar.sh b/awesome_bar.sh index e2b2a62..e1d513d 100755 --- a/awesome_bar.sh +++ b/awesome_bar.sh @@ -35,7 +35,7 @@ while true; do echo $SCREEN widget_tell topbar mem data mem_state " `func_mem` " | awesome-client echo $SCREEN widget_tell topbar hdd data hdd_root `df / | tail -n 1 | awk '{print $4+100-100}'` | awesome-client echo $SCREEN widget_tell topbar hdd data hdd_home `df /home | tail -n 1 | awk '{print $4+100-100}'` | awesome-client - echo $SCREEN widget_tell topbar wlan text " `/sbin/ifconfig | grep -A 1 wlan0 | tail -n 1 | awk '{print $2}' | sed 's/Adresse://g'` " | awesome-client + echo $SCREEN widget_tell topbar wlan text " $(print ${${$(LC_ALL=C /sbin/ifconfig wlan0)[7]}:gs/addr://}) " | awesome-client echo $SCREEN widget_tell topbar clock text " `date +"%x %T"` " | awesome-client echo $SCREEN widget_tell topbar hostname text " `hostname` " | awesome-client |