Commit Graph

52 Commits

Author SHA1 Message Date
enkore
612b8b07eb Update modules to a7583a9
Not updated for various reasons:
clock,
dpms,
gpu_temp,
load,
mail,
mem_bar,
modsde,
net_speed,
pianobar,
pulseaudio,
regex [no named formatters],
runwatch,
shell,
solaar,
temp,
text,
updates,
weather,
whosonlocation,
xkblayout,
zabbix


This might break something: I can't test all these modules. If it does,
file a bug / open a PR / send me a note.
2016-01-27 19:53:33 +01:00
enkore
394e80ad4e Some minor docstuff ; functionally equivalent 2015-06-17 18:11:49 +02:00
enkore
ff519fbde0 Remove shebangs and coding tags 2015-06-17 10:32:10 +02:00
microarm15
46c6076f95 check whether files exist 2015-06-16 19:10:48 +02:00
microarm15
4742f74583 add whitespace around the / operator 2015-06-15 21:28:05 +02:00
microarm15
16ab492b84 add whitespace around the * operator 2015-06-15 20:15:45 +02:00
microarm15
475c788c0c add total rcv/snt Mbytes to network module 2015-06-15 18:57:41 +02:00
enkore
ffaf67eb61 Update network.py 2015-06-01 13:41:45 +02:00
enkore
e395fe31f1 Fix #206 - {kbs} doesn't work if no other traffic formatter is used 2015-05-28 00:52:38 +02:00
Simon Legner
72386c1fd3 Harmonize documentation wrt formatters 2015-04-07 19:40:28 +02:00
David Garcia Quintas
f81841c722 Fixed processing of dynamic_colors settings, previously ignored. 2015-03-22 14:30:29 -07:00
tyjak
ab25a1b6eb Merge remote-tracking branch 'upstream/master' 2015-03-16 21:43:45 +01:00
tyjak
09f6e27a7e fix output format 2015-03-16 21:32:03 +01:00
facetoe
4209d7046c Fixed bug that prevented color_up being shown if the user is not using network_traffic. 2015-03-08 08:38:08 +08:00
tyjak
c2592e9272 Update network.py 2015-03-07 21:58:01 +01:00
tyjak
a28f29cf8f format wifi percentage 2015-02-08 14:34:04 +01:00
David Foucher
7d8ebb948f Better percentage format 2015-02-07 00:06:09 +01:00
Matus Telgarsky
ac2b494401 util::make_graph lower_limit parameter
None is now a choice for lower_limit and upper_limit as well, so that
the graph can scale as before.

For cpu_usage_graph and network, rather than exposing lower_limit
in the interface, 0.0 is used as a default, since it is already
used implicitly when choosing colors.
2015-01-28 19:48:16 -05:00
Matus Telgarsky
82db7a87a2 more braille styles (ideas from drawille)
added 'braille-peak' and 'braille-snake'.  'braille-peak'
renders only the top point, and 'braille-snake' fills some in.

I should have stressed earlier that I only got the braille drawing ideas
after coming across drawille ( https://github.com/asciimoo/drawille ).
2015-01-28 16:54:42 -05:00
Matus Telgarsky
49d2f3bb0a braille graph option 2015-01-27 15:10:26 -05:00
facetoe
a40ba18272 Allow users to scroll through interfaces. 2015-01-20 08:22:31 +08:00
facetoe
d3e8fe9b6a Don't require importing psutil unless using the functionality it offers 2015-01-20 08:22:31 +08:00
facetoe
2999b90b22 Don't import basiciw unless using the functionality it offers. 2015-01-20 08:22:31 +08:00
facetoe
8425db8d8d Remove NetUtil class, don't inherit from object, slight refactoring. 2015-01-04 10:46:15 +08:00
facetoe
a9116fa592 Update docs 2015-01-03 21:53:26 +08:00
facetoe
d84b1675a9 Centralize network related functionality under one module. 2015-01-03 17:29:05 +08:00
facetoe
9928322bd6 Cycle available interfaces on click 2015-01-03 10:59:27 +08:00
Matthieu Coudron
d31cc380ef Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 .
This commit removes and replaces all the old methods 'on_*' by settings
with the same name. The old methods were renamed into more explicit names that can be used for the callbacks like "next_song","mute" etc...
For instance, you can test with:
status.register("clock",
	format=[
	    ("Format 0",'Europe/London'),
	    ("%a %-d Format 1",'Europe/Dublin'),
	    "%a %-d %b %X format 2",
	    ("%a %-d %b %X format 3", 'Europe/Paris'),
	],
	on_leftclick= ["urxvtc"] , # launch urxvtc on left click
	on_rightclick= ["scroll_format", 2] , # update format by steps of 2
	log_level=logging.DEBUG,
	)

This way much code could be removed from other modules, though I did it only for the clock module here.
2014-12-20 15:30:41 +01:00
enkore
a07539f126 PEP 8 (I'm bored): network 2014-10-14 16:38:36 +02:00
enkore
eeeb629e98 Nicer doc markup 2014-10-12 11:35:44 +02:00
Alexis Lahouze
f95624d801 Added unknown_up parameter. Closes #103. 2014-08-24 23:58:17 +02:00
enkore
dc4b12c386 Ai, we actually do have that function already! Thanks, close #90 2014-07-31 15:16:03 +02:00
enkore
366ca43d7d Possible fix for #90 2014-07-30 19:36:40 +02:00
Tom X. Tobin
18eaeb45be Correctly detect bonded slave interface state
Bonded slave interfaces under Linux were incorrectly being detected as
always up. We now check sysfs directly to determine their state.
2014-06-14 11:46:50 -04:00
enkore
2a77d15f6c network: changed detached_down default 2014-06-13 20:06:46 +02:00
Tom X. Tobin
df50913332 Support bonded interfaces under Linux
The "network" and "wireless" modules now support interfaces enslaved to
a bonding master. We check sysfs for bonded interfaces, and update each
slave's AF_INET/AF_INET6 from its master.
2014-06-10 21:43:09 -04:00
Alastair Houghton
8103cf35a1 Replaced references to netifaces-py3 with netifaces. 2014-05-10 12:11:22 +01:00
enkore
f06a76ad52 PEP8 2014-04-30 14:51:41 +02:00
Armin Fisslthaler
0e7ecd1d67 prefer non link-local v6 addresses 2014-04-15 21:51:51 +02:00
Jason Hite
10aca8d489 Better checking of the MAC address
Use a Try... Except... block instead of a function flag when checking
for the MAC address. This has the benefit of requiring no changes for
user, but fixes the problem with interfaces that do not have MACs.
2014-04-02 15:49:05 -04:00
Jason Hite
3bbd8d4765 Optionally skip MAC address check in network
Network interfaces don't necessarily have a MAC address. For example,
the tunnel devices created by OpenVPN do not. Previously, passing a
network interface that did not have a MAC address caused the network
module to fail, since it assumed that there would be one.

This commit just adds a flag to the network module "mac", which defaults
to True. If True, the module behaves like before. If False, the check
for the MAC address is skipped and the {mac} format variable is replaced
with "NONE".

I tested this with my OpenVPN interface as well as my regular interface
and it works fine.
2014-04-02 15:34:35 -04:00
enkore
aa09079903 Add detached_down option (#26)
And some other stuff I obviously forget to commit last time.
Oh, that's just the RST port... okay :)
2014-01-16 13:39:17 +01:00
enkore
78c01dd3e5 PEP8 2013-10-01 15:22:09 +02:00
enkore
e848fc4a6f Improve documentation 2013-07-31 21:39:59 +02:00
Zack Gold
33e7f6559b Update network.py
interface was spelled wrong
2013-06-03 18:36:06 -06:00
enkore
39095594c8 README 2013-03-22 14:10:44 +01:00
enkore
375ba3af7b Support for the 3rd version of the i3bar-onclick-patch 2013-03-10 01:27:23 +01:00
enkore
1680293e56 3.8: Add wireless module based on basiciw 2013-03-08 19:51:55 +01:00
enkore
4d42589213 Small fix (3.5)
Version numbering policy:
Increment the most righthand number every single time the package
is uploaded to PyPI.
2013-03-07 18:49:57 +01:00
enkore
4cd1b177de README 2013-03-07 18:45:31 +01:00