Commit Graph

572 Commits

Author SHA1 Message Date
facetoe
97e8e8346c Added method to open users mailbox. 2015-01-20 08:22:31 +08:00
facetoe
37c70634a8 Prevent webrowser.open() writing to stdout when opening link. 2015-01-20 08:22:31 +08:00
facetoe
05349256de Added Github module. 2015-01-20 08:22:31 +08: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
Lukáš Mandák
f726300ca5 Fixed freezing on mouse events when player is not running.
Fixed color when player is not running.
2015-01-18 19:51:55 +01:00
Lukáš Mandák
877233ffab Removed 'deadbeef' module since it had mpris plugin. *facepalm* 2015-01-18 18:37:22 +01:00
Lukáš Mandák
9b2591018c Updated 'now_playing' module:
- Added custom format and color, when no player is running.
- Make a difference between DBus error and no players found.
- Exdended try-cath for DBus errors.
- Changed player method calls according to docs [1] since my player did not recognize them.

[1] http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#interfaces-and-methods
2015-01-18 18:24:35 +01:00
Lukáš Mandák
efcf8c8610 Updated 'clock' module to change locale only if necessary. 2015-01-18 11:59:05 +01:00
Lukáš Mandák
f8a7a86fab Reverted changes in 'pulseaudio' module. 2015-01-18 11:36:35 +01:00
Lukáš Mandák
e2c709481c Fixed variable name. 2015-01-17 19:59:20 +01:00
Lukáš Mandák
6e7c225269 Fixed 'clock' module to properly format locale specific formats. 2015-01-17 19:30:49 +01:00
Lukáš Mandák
1bacaa1cf5 Updated 'pulseaudio' module to use pactl instead of amixer. 2015-01-17 19:09:38 +01:00
Lukáš Mandák
483d5a03fc Added 'deadbeef' module. 2015-01-17 19:07:31 +01:00
Matthieu Coudron
a26d20dcd2 Merge branch 'master' of https://github.com/enkore/i3pystatus into multiple_mail_accounts and removal of some old comments 2015-01-08 23:16:55 +01:00
enkore
b016eedb87 Merge pull request #159 from azmd/depleted-battery
Add support for depleted batteries
2015-01-08 00:36:13 +01:00
enkore
0ac3c54aa1 Merge pull request #157 from cganas/master
Updated spotify module to check for metadata on start.
2015-01-08 00:35:51 +01:00
Gordon Schulz
c6c7e162b3 Add support for depleted batteries
This commit adds support for detecting depleted (empty) batteries.
Introduces new 'Depleted' battery status and a 'DPL' status mapping.
2015-01-06 12:35:45 +01:00
Matthieu Coudron
b9e23b18a7 Add the possibility to display per backend unread mail along with the total number of unread mails (default). The displayed backend can be set via callbacks (on mousewheel events by default) 2015-01-06 00:41:35 +01:00
Matthieu Coudron
ff2794fa3d WIP 2015-01-05 19:46:32 +01:00
Christopher Ganas
404c9ea348 Updated spotify module to check for metadata on start. 2015-01-04 16:07:25 -05: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
facetoe
2c8834d775 Fixed incorrect default 2015-01-01 17:00:44 +08:00
Matthieu Coudron
c5933a3b26 This commit adds a basic test to check callbacks work.
This can also serve as an exemple.
2014-12-21 13:31:40 +01:00
Matthieu Coudron
12546736a6 Fix in documentation 2014-12-20 15:46:34 +01: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
Matthieu Coudron
98e46ac3d6 Updated alsa & clock modules with new mechanism 2014-12-19 22:04:49 +01:00
Matthieu Coudron
14c0528be5 This commit introduces a skeleton that allows personalized callbacks in
a backwards compatible way. Settings 'on_lclick','on_rclick',
'on_scrollup','on_scrolldown' are inherited by all modules.
These parameters should be a string. Then when a matching action is
detected (ie mouseclick, scrolling), the module check if this string
corresponds to a:
1/ python callable
2/ module method,
In cases 1 and 2, it calls the python function with the module as the
first parameter. Otherwise it considers the string is an external command and launches it via run_through_shell
2014-12-19 18:52:15 +01:00
Matthieu Coudron
a480701ee6 Added doc for unread method in mail/__init__/py + make sure that db is closed before deleting the notmuch db object 2014-12-19 14:31:10 +01:00
Matthieu Coudron
cb80f133d7 Simple fix for notmuch database not in sync 2014-12-18 22:02:27 +01:00
Matthieu Coudron
9e3f128a15 This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now).
Also adds a test for the function run_through_shell
2014-12-18 18:42:58 +01:00
Matthieu Coudron
69c1cd6460 Various pep8 and comments removal + converted shell module to use run_through_shell command 2014-12-18 00:26:24 +01:00
Matthieu Coudron
bc15eb4e6b i3pystatus creates a logger that can be imported via import i3pystatus.logger . Thus when modules enable the 'enable_log' setting, it should log i3pystatus errors to a file called '.i3pystatus-<pid>'. This commit only solves the case when email_client was called in the email module and would output things into stderr/stdout. 2014-12-17 23:39:10 +01:00
Matthieu Coudron
f8a5bc716f Revert "Fixed indentation in order to remove pep8 errors"
This reverts commit b37c7e28f8. Error was
apparently due to a bug in pep8 <= 1.5.6
2014-12-17 21:55:14 +01:00
Matthieu Coudron
cb25cb5fb3 Fix error generated by sphinx-build complaining of no end for the list 2014-12-17 18:18:08 +01:00
Matthieu Coudron
b37c7e28f8 Fixed indentation in order to remove pep8 errors 2014-12-17 16:36:50 +01:00
Matthieu Coudron
f440322b36 Settings will be inherited between modules 2014-12-17 00:48:49 +01:00
enkore
9de7640fcc Merge pull request #145 from rampage644/features/pomodoro_cmus
Features/pomodoro cmus
2014-12-11 14:07:05 +01:00
Sergei Turukin
8913450ac2 PEP8 fix, hope wont' break rST parser as well 2014-12-11 13:54:31 +02:00
Sergei Turukin
2a5c0e77a0 Insert blank line to make rST happy 2014-12-11 13:29:14 +02:00
Sergei Turukin
eab6f77bd6 PEP8 fix 2014-12-10 19:19:11 +02:00
Sergei Turukin
362c3ec83e Fix typos 2014-12-10 18:26:15 +02:00
Sergei Turukin
d0f76a2d97 PEP8 fix 2014-12-10 18:25:32 +02:00
Sergei Turukin
105e92b5aa Update format description for pomodoro module 2014-12-10 18:25:15 +02:00
Sergei Turukin
f263cb55e8 Update format string description 2014-12-10 18:23:25 +02:00
Sergei Turukin
6593c580ae Improve doc for available formatters for cmus module 2014-12-10 18:20:51 +02:00
Sergei Turukin
b89b1c783f PEP8 fixes 2014-12-09 16:56:35 +02:00
Sergei Turukin
45c94bd5cd Make format configurable, fix bug, progess output 2014-12-09 16:49:27 +02:00
Sergei Turukin
a1c66f33b5 Update heuristics for getting artist/title from filename 2014-12-09 16:48:14 +02:00
enkore
4574fd5c40 weather: fix reST 2014-12-02 12:14:50 +01:00
enkore
57fda43b4e Add uname module 2014-11-25 22:35:15 +01:00
Alex Timmermann
c2cb417fca fix volume percentage 2014-11-19 15:35:50 +01:00
Joaquin Ignacio Barotto
8c24f6f9de Updated the docs 2014-11-15 11:36:05 +01:00
Joaquin Ignacio Barotto
441d143810 Aded 'keyboard_locks' module, to show CAPSLOCK, NUMLOCK and SCROLLLOCK status 2014-11-15 11:35:53 +01:00
enkore
1d9614fae7 Fix #141 2014-11-07 11:22:55 +01:00
enkore
3c751882d2 Merge pull request #140 from jlucchese/master
Add pianobar module
2014-11-07 11:10:29 +01:00
enkore
43e9b49396 Merge pull request #139 from Arvedui/mpd_text_len
mpd text length
2014-11-07 11:10:07 +01:00
Simon Legner
96d7b78e2d network_traffic: do not hide by default down iface 2014-11-04 08:22:46 +01:00
Júlio Rieger Lucchese
97c9cb7e80 Add optional event_cmd bash file into the docs 2014-11-02 15:23:00 -02:00
Júlio Rieger Lucchese
4fe4408736 Fix blank lines and whitespaces 2014-11-02 14:14:43 -02:00
Arvedui
38128eab31 fixed pep8 issue 2014-11-02 17:04:52 +01:00
Júlio Rieger Lucchese
4840362030 Add pianobar module 2014-11-02 13:21:04 -02:00
Arvedui
04eb15c330 added options text_len and truncate_fields to mpd module for taming insanly long artist, album and song names 2014-10-30 12:14:18 +01:00
Sergei Turukin
b1a7dba986 Fix module with no cmus running 2014-10-30 11:59:18 +02:00
Simon Legner
9591de4461 network_traffic: allow to hide down interfaces
Interfaces which are down can be hidden or formatted differently.

The following options are added:
hide_down - whether to not display a interface which is down
format_down - format string if the interface is down (unless hide_down is set)
2014-10-30 08:23:00 +01:00
Sergei Turukin
b46c68ed50 Reset timer right on left click 2014-10-28 11:11:32 +02:00
enkore
58a3185921 Merge pull request #136 from rampage644/features/cmus
Add `cmus` module
2014-10-23 14:19:40 +02:00
enkore
23d4daa15f Merge pull request #135 from rampage644/features/pomodoro
Pomodoro module
2014-10-23 14:19:02 +02:00
Sergei Turukin
9a83f7117e Pep8 formatting 2014-10-23 14:38:09 +03:00
Sergei Turukin
1ca35c238e Pep8 formatting 2014-10-23 14:35:06 +03:00
enkore
b263c66baf Close #133 2014-10-23 12:25:40 +02:00
Sergei Turukin
2ae45ec1e7 Add cmus module
Use `cmus-remote` to get info and send commands to `cmus`.
2014-10-22 18:30:40 +03:00
Sergei Turukin
c64e759b5a Update docs 2014-10-22 18:26:20 +03:00
Sergei Turukin
e0cb834ae1 Add pomodoro module.
Add _Pomodoro_ module. See http://en.wikipedia.org/wiki/Pomodoro_Technique
It uses `aplay` for playing alarm sound. It also uses `notify-send` utility
for nitification.
2014-10-22 18:26:07 +03:00
enkore
a2bb10443c mimimi - 1.5.6 doesn't complain about that. interesting. 2014-10-14 17:40:16 +02:00
enkore
f18ee346c8 PEP 8 (I'm bored): pulseaudio 2014-10-14 16:53:09 +02:00
enkore
9e06145389 PEP 8 (I'm bored): core/util 2014-10-14 16:51:58 +02:00
enkore
b2b34ad81a PEP 8 (I'm bored): core/modules 2014-10-14 16:50:40 +02:00
enkore
8db7b1d160 PEP 8 (I'm bored): core/io 2014-10-14 16:50:08 +02:00
enkore
3b3b716307 PEP 8 (I'm bored): mail.notmuchmail 2014-10-14 16:47:19 +02:00
enkore
2346d82ed8 PEP 8 (I'm bored): weather 2014-10-14 16:44:56 +02:00
enkore
d1725228d0 PEP 8 (I'm bored): uptime 2014-10-14 16:44:40 +02:00
enkore
ac58db5811 PEP 8 (I'm bored): text 2014-10-14 16:43:29 +02:00
enkore
f7d95a28a0 PEP 8 (I'm bored): shell 2014-10-14 16:43:15 +02:00
enkore
d782621696 PEP 8 (I'm bored): reddit 2014-10-14 16:43:02 +02:00
enkore
7b12be077d PEP 8 (I'm bored): parcel 2014-10-14 16:41:27 +02:00
enkore
1d46cde704 PEP 8 (I'm bored): now_playing 2014-10-14 16:41:06 +02:00
enkore
45e0a13cf5 PEP 8 (I'm bored): network_traffic 2014-10-14 16:40:15 +02:00
enkore
a07539f126 PEP 8 (I'm bored): network 2014-10-14 16:38:36 +02:00
enkore
29a0278bc5 PEP 8 (I'm bored): mpd 2014-10-14 16:37:48 +02:00
enkore
c596f1b5f6 PEP 8 (I'm bored): mem 2014-10-14 16:37:04 +02:00
enkore
89fd73d9c0 PEP 8 (I'm bored): disk 2014-10-14 16:37:02 +02:00
enkore
69a62726f4 PEP 8 (I'm bored): cpu_usage_graph 2014-10-14 16:35:22 +02:00
enkore
54bae95804 PEP 8 (I'm bored): bitcoin 2014-10-14 16:35:15 +02:00
enkore
f6e910c114 PEP 8 (I'm bored): battery 2014-10-14 16:32:07 +02:00
enkore
146b952180 now_playing: hide_no_player option 2014-10-14 16:28:09 +02:00