enkore
91b7e74ccf
README
2013-03-22 14:06:53 +01:00
enkore
c41c2736bf
Adjust to newest i3bar patch
2013-03-21 12:35:28 +01:00
enkore
8dd88a6180
README
2013-03-21 12:35:06 +01:00
enkore
b577cd715b
modsde
2013-03-16 12:58:17 +01:00
enkore
1171a1d0ae
Change Module.test API to something more intuitive
...
(I mean, what the hell has crossed my mind to name a method *test*
and let it return FALSE if successful? :D)
2013-03-16 12:58:01 +01:00
enkore
0e90cbfceb
Merge branch 'master' of github.com:enkore/i3pystatus
2013-03-16 12:40:21 +01:00
enkore
a6810840ae
Fix core.threading.wrapper
2013-03-16 12:40:09 +01:00
enkore
b662d8797e
Add Module.test
2013-03-16 12:39:17 +01:00
philipdexter
60c475d6e6
Add the option of specifying python-ish negative array indices to the move method
2013-03-15 21:34:45 -04:00
philipdexter
ecb6c54052
Add the ability to change the position of a module in the i3bar
...
Create a method `move' in modules.py to insert the module's json in a different position than the default 0.
2013-03-15 21:20:24 -04:00
philipdexter
0ff17f4242
added some debug statements for imap connection
2013-03-12 12:17:03 -04:00
philipdexter
68e9300870
changed default port in imap to 993
2013-03-12 11:52:18 -04:00
enkore
59437c1707
ClassFinder can also instanciate classes now.
2013-03-11 17:08:38 +01:00
enkore
c340b2cf75
Changed Config.test
2013-03-11 00:28:24 +01:00
enkore
a5b274fd23
PEP 8 and stuff
2013-03-11 00:21:54 +01:00
enkore
c259a653ae
Refactor the config part
2013-03-11 00:21:27 +01:00
enkore
0a32494ce8
3.12: More bullet-proof wrapper
2013-03-10 21:38:02 +01:00
enkore
b42cd6aa15
3.12: Move code around
2013-03-10 21:22:58 +01:00
enkore
19aca9149a
3.12: remove I3statushandler
2013-03-10 20:57:12 +01:00
enkore
8abc7dd8e8
3.11: runwatch
2013-03-10 18:24:42 +01:00
enkore
7dfac95f1e
3.11: Add test command, invoke like this: i3pystatus test
2013-03-10 18:24:33 +01:00
enkore
c8c8e2226f
Improved UX a bit: all threads are immediately started;
...
no more slow starting of modules.
Although I'm highly unsatisfied with the current implementation
(SoC, you hear me!?)
2013-03-10 02:11:58 +01:00
enkore
375ba3af7b
Support for the 3rd version of the i3bar-onclick-patch
2013-03-10 01:27:23 +01:00
enkore
657bdb826a
Add preliminary(!) support for bidirectional communication with i3bar
...
Novelty use only.
2013-03-09 21:23:36 +01:00
enkore
2e9b80c0a0
Oops! Forgot to check in the actual code for wireless module
...
(3.8.2)
2013-03-08 20:37:40 +01:00
enkore
085f5972af
battery.interval
2013-03-08 20:34:39 +01:00
enkore
1680293e56
3.8: Add wireless module based on basiciw
2013-03-08 19:51:55 +01:00
enkore
c60d2fd3df
Should definitely test KeyConstraintDict.
...
Seems to be all ok so far, just needed to add __delitem__
2013-03-08 16:59:59 +01:00
enkore
9084661a5d
Rewrote core.util.partition, added tests for it.
2013-03-08 15:53:48 +01:00
enkore
237123ae0f
Small changes in battery module
2013-03-08 15:53:28 +01:00
enkore
074500007f
3.7
2013-03-08 03:30:24 +01:00
enkore
01f1587e67
...
2013-03-08 03:11:49 +01:00
enkore
e8191da312
Reworked battery module, should work better now. Or worse. Let's find out...
2013-03-08 02:53:54 +01:00
enkore
8ef891cef6
Fix battery module status bug
2013-03-07 22:39:36 +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
enkore
a2dd90c657
CIDR support for network module
2013-03-07 18:40:18 +01:00
enkore
890e8a91bc
Add network module (3.4), close #4
2013-03-07 18:09:05 +01:00
enkore
6b03e35ad2
#7 fix default formatter
2013-03-06 23:16:28 +01:00
enkore
a76779fe7b
Should fix #7 (v3.3)
2013-03-06 23:03:40 +01:00
enkore
7a0bb1cbaa
Fix issue with gobject&gobject2
...
summary: just don't ever use gobject and gobject2 at the same time...
2013-03-06 22:32:07 +01:00
enkore
df0982ad84
Fix & close #6
...
Paradigm: "I don't know what to do, so let's outsource it"
2013-03-06 18:02:46 +01:00
enkore
9732c02765
Add display for parcels not yet showing up in tracking.
2013-03-06 16:19:33 +01:00
enkore
78849d37ec
parcel.DHL fix for delivered parcel
2013-03-06 15:32:48 +01:00
enkore
553ad4efb9
…
2013-03-06 13:14:28 +01:00
enkore
0cd3e266c3
Add parcel module (currently only suppotr for DHL)
...
Needs documentation, extension, some redesign/separation of concern,
and lxml
2013-03-06 00:02:49 +01:00
enkore
93bfab1d7b
#5 : Support for real config files
2013-03-05 23:07:50 +01:00
enkore
e0f938bcac
README
2013-03-05 17:29:37 +01:00
enkore
8ebca17e79
Aaand some code butchering I forgot earlier.
2013-03-05 17:27:12 +01:00
enkore
dcc9f3c6bb
#5 : fix __main__.py.dist
2013-03-05 17:27:02 +01:00
enkore
ed7f95dd34
#5 : Ability to scream out loud if battery is low :-)
2013-03-05 17:26:49 +01:00
enkore
6740f5b1cc
#5 : Add slim wrapper for notifications
2013-03-05 17:26:28 +01:00
enkore
03d96ad0ea
Some internal code butchering again.
2013-03-05 17:26:10 +01:00
enkore
3cac448f6e
Change process title of threads to something meaningful, if setproctitle is installed.
2013-03-02 20:05:41 +01:00
enkore
d6f1cbbd46
Fixed a bug where battery would generate no output in occasions where it should.
2013-03-02 17:35:19 +01:00
enkore
3c284ad29c
Docstrings and such
2013-03-02 17:34:53 +01:00
enkore
3ebcbec4e1
i3pystatus.core.threads ; some smaller changes.
2013-03-02 17:34:32 +01:00
enkore
901dd4319f
New self-organizing/self-optimising threading model (no API changes)
...
Using a simple, hysteresis based approach… currently in this first
version the optimizer recursively moves modules out of a thread until a
certain timing target is reached; the "modules moved out" just mentioned
are then partitioned into new threads according to their latest time profile.
Very simple, but very effective.
Todo: Implement merging threads with (again) good behaving workloads.
2013-02-28 00:14:51 +01:00
enkore
604a4f8e29
disk module
2013-02-26 23:00:03 +01:00
enkore
2aba299677
__main__.py.dist
2013-02-26 01:38:06 +01:00
enkore
9510f0b1c0
Added ability to automatically import modules
...
I thought: Well, isn't it a bit redundant if I go ahead and say in my
config "import this-n-that and temp and load and alsa" while later
just giving register() the modules.
So register() (/ClassFinder as the backend) now support just naming a
module as the first parameter. That module is then imported and
searched for a class as usual.
Just for reference the synopsis of Status.register():
register(mod.SomeChecker())
register(mod, setting1=..., setting2=...)
register(mod, {"setting1:":, "setting2":...})
register("mod", setting=1..., setting2=...)
register("mod", {"setting1:":, "setting2":...})
Fun fact: Actually register() doesn't care for it's arguments.
They're passed straight into ClassFinder.instanciate_class_from_module
(something I should definitely rename), which checks if it's first
parameter is one of:
-Python module
=> It calls ClassFinder.get_class with the same parameters
=> get_class will search the module using ClassFinder.search_module
and return a matching class if and only if there is a single matching
class in the module
-string
=> It calls ClassFinder.get_module to import the module and calls itself
on the result
-something else
=> It returns that something
The actual variation in passing the settings (keyword arguments vs. dict)
is handled in SettingsBase.
2013-02-26 00:56:09 +01:00
enkore
b404b85cbb
temp: add note about AMD support (=none)
2013-02-25 21:32:54 +01:00
enkore
3dc99ab5b2
runwatch module
...
It's exactly the same as i3status... I even copied the manpage!
2013-02-25 21:32:38 +01:00
enkore
197f1541b3
Fixed alsa not displaying volume changes correctly
2013-02-25 19:36:41 +01:00
enkore
446eda7218
alsa module, requires pyalsaaudio (from PyPI)
2013-02-25 18:36:17 +01:00
enkore
9ab3c751da
"hardened" modsde
2013-02-24 23:34:32 +01:00
enkore
76d86807db
As we can have multiple backends for mail already,
...
we don't need the multiple-servers functionality in imap.
Just add multiple instances of that backend.
2013-02-24 22:54:32 +01:00
enkore
582a35e412
.
2013-02-24 22:40:29 +01:00
enkore
a89b421ebb
battery
2013-02-24 21:46:29 +01:00
enkore
a892a09581
Moving some code around.
2013-02-24 21:00:16 +01:00
enkore
1fd53cd60a
Add ModuleList
2013-02-24 20:20:15 +01:00
enkore
92b2af56a8
Removed ModuleFinder, changed ClassFinder
...
ClassFinder:
Removed exclude argument, which is basically covered with
obj.__module__ == module.__name__ which ensures that no imported
classes are found, which was the only use case for exclude.
2013-02-24 20:16:33 +01:00
enkore
a2104f5d2f
Removed support for indicating the position of a module
2013-02-24 20:13:57 +01:00
enkore
fcd68e1ec1
battery
2013-02-24 18:44:00 +01:00
enkore
1b6498883b
Divided __init__ into some submodules
...
This didn't change the public "API" used by modules.
.core.io contains the IO classes, namely IOHandler, StandaloneIO and JSONIO
.core.util contains SettingsBase and ClassFinder
.core.exceptions contains all custom exceptions
2013-02-24 18:43:00 +01:00
enkore
a06c4ef580
Moved backlight into submodule
2013-02-24 15:25:11 +01:00
enkore
2196c27ad4
This is probably a better way to handle file.File-based modules.
2013-02-24 15:16:07 +01:00
enkore
7d0193ccc1
Readme
2013-02-24 15:11:43 +01:00
enkore
7999cc453b
Added file "template" for backlight info
...
This is 100pct. the same functionality as a complete module before :-)
But still, have to come up with some better way to manage these "templates".
And a place to stash them.
2013-02-24 05:25:29 +01:00
enkore
20da1dbb08
Remove backlight module, add file module (kinda overpowered :-)
2013-02-24 05:20:35 +01:00
enkore
a5bcf9bfa2
backlight module
...
Probably I'll discard these as soon as I come up with a nice
generic way of reading multiple files, converting values etc.
2013-02-24 02:12:32 +01:00
enkore
bde56dfdec
made battery module much more flexible
...
So I can have my old representation back... indeed you can
do pretty much anything now with it:
status.register(battery,
format="{consumption:.2f}W {percentage:.2f}% [{percentage_design:.2f}%] {remaining_hm}"
)
2013-02-24 01:36:56 +01:00
enkore
ed003c123f
temp module
2013-02-24 00:34:16 +01:00
enkore
a0fc9eb492
load module
2013-02-24 00:02:35 +01:00
enkore
c4db62d2a4
Some small changes
2013-02-23 23:50:50 +01:00
enkore
3677ffc852
Rewrote SettingsBase
2013-02-23 23:48:48 +01:00
enkore
4e06a9c2ee
batterychecker → battery
2013-02-23 23:46:33 +01:00
enkore
8fba0b69a3
Fixed thunderbird
...
(deeeeeep recursion)
2013-02-23 23:00:28 +01:00
enkore
9e6af3661a
Mail
2013-02-23 23:00:14 +01:00
enkore
3f46ab24c6
flying-sheep via GS
2013-02-23 21:05:27 +01:00
enkore
c96410e92d
Automagic name attribute in JSON output
...
If name is not set by the module, it's set automatically to the
fully qualified python dotted path to the module :-)
2013-02-23 20:52:07 +01:00
enkore
13c684860d
Actualize clock once per second
2013-02-23 20:43:38 +01:00
enkore
dd7b5ef346
i3bar has some issues with locale-handling I guess.
...
It reliably crashes i3pystatus, but only if started by i3bar. Meh.
I can't tell if this locale issue is local (ha-ha) or everyone is affected.
2013-02-23 20:41:42 +01:00
enkore
ebe3d718e3
Reworked exceptions
2013-02-23 20:15:20 +01:00
enkore
70155b2f18
Fixed clock (my bad)
2013-02-23 19:05:57 +01:00
enkore
f6e5530468
~rough refactoring
2013-02-23 18:59:48 +01:00
enkore
163662a633
README
2013-02-23 18:45:05 +01:00
enkore
60be03126d
Docstrings
2013-02-23 18:41:53 +01:00
enkore
9dc7041997
First draft of a doc generator for this
...
(Already supports multiple Modules per python module)
2013-02-23 18:41:33 +01:00
enkore
d31fe9a62d
Moving code around a bit
2013-02-23 18:40:59 +01:00