You are not logged in.

#1 2011-06-22 11:12:04

faj
Member
Registered: 2010-11-06
Posts: 4

Get network status (wicd/xmobar)

I need to get the network status in a script, something like the status row in the bottom of wicd-curses. Was planning to parse it a bit put it in my xmobarpanel.

It's basically "Not connected", "Connecting to <SSID>..." "Obtaining IP-address..." and "Connected to <network>" and so on. Is it an easy way to do this?
wicd-cli -dy (-d for network details and -y for wireless) doesn't give me enough information.

Tried reading the sources to wicd but my pythonskills is kind of non existant, so I would be very thankful if someone could me out here.

Last edited by faj (2011-06-22 13:29:27)

Offline

#2 2011-06-23 00:55:25

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Get network status (wicd/xmobar)

I can't hack a script for you, but check out the Wireless plugin made for xmobar. It can display the essid and quality of a wireless connection.

Offline

#3 2011-06-23 00:56:52

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: Get network status (wicd/xmobar)

What about extracting what you need from "iwconfig" or even "iwlist wlan0 scan" ? Does that give you the info you need?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

Board footer

Powered by FluxBB