ncoop
34e87927de
Implement and document player_command callback.
2016-12-28 18:41:56 -08:00
ncoop
ea26373a78
Documented a possible bug with mpd.
2016-12-28 01:36:48 -08:00
ncoop
40cff0d6b1
"The use of pause command w/o the PAUSE argument is deprecated."
2016-12-28 01:16:35 -08:00
ncoop
713c93c3ff
Implement and document mpd_command method.
2016-12-28 01:15:13 -08:00
Felipe Martin
285e73ca99
Fixed typo.
...
Related PR #510
2016-12-25 23:04:49 +01:00
Felipe Martin
739b208e79
Allow empty stdout on shell module
2016-12-25 20:49:33 +01:00
Jonathan Tammo Siebert
a497ff21cc
Added packagekit backend for update notifications
2016-12-24 00:11:25 +01:00
Norman Köster
e91e193b22
Improve naming and add verification
2016-12-08 11:50:09 +01:00
Norman Köster
1e501fc60b
Fix wrongly placed whitespace
2016-12-07 18:02:29 +01:00
Norman Köster
e770869514
Add configuration for graph direction
2016-12-07 17:45:40 +01:00
Erik Johnson
734afa2409
Add documentation about running in virtualenv
2016-12-04 17:28:21 -06:00
enkore
a1eba370bd
Merge pull request #499 from terminalmage/issue498
...
Rewrite DNF updates module to use DNF's Python API
2016-12-02 11:35:27 +01:00
Erik Johnson
80781b5033
Fix multiple-OT display for NBA
2016-12-02 01:08:49 -06:00
Nikolay Polyarniy
97fd940e17
gpu_temp: setting "display_if" default value fixed
...
gpu_temp setting "display_if" (introduced in https://github.com/enkore/i3pystatus/pull/382 ) default value expected to be string (like in https://github.com/enkore/i3pystatus/pull/383 )
Error message:
```
GPUTemperature: TypeError: eval() arg 1 must be a string, bytes or code object
```
2016-12-01 19:09:33 +03:00
Erik Johnson
572f94eb87
Fix shadowing of dnf module when module is executed directly
2016-11-30 21:25:10 -06:00
Erik Johnson
0eb825cdd8
Rewrite DNF updates module to use DNF's Python API
...
This is a lot easier than trying to parse the DNF CLI output.
2016-11-30 11:20:40 -06:00
Sergei Turukin
4f7d5673c0
Refactor pomodoro
module
...
Replace `subprocess` call with built-in module for sending
desktop notifications.
2016-11-06 13:21:39 +03:00
hcpl
c2c54df054
Xkblayout: document PyPI dependency
2016-11-03 23:09:23 +02:00
hcpl
8f7a35ae92
Xkblayout: refine formatting and switching layouts
...
Introduces PyPI package xkbgroup as a dependency.
Changes include:
* Add more formatters
- Backwards-incompatible: ``{name}`` now refers to the layout group
name, such as 'English (US)' or 'German'.
- To show the old ``{name}`` use ``{symbols::,}`` (this is the
advanced formatting syntax employed by xkbgroup package)
+ For details on formatting see
https://github.com/hcpl/xkbgroup/blob/master/docs/formatting.rst .
* Now Xkblayout can switch groups and you can toggle groups with
keyboard at the same time.
2016-11-03 21:32:48 +02:00
Facetoe
328eb92864
Catch all exceptions.
2016-11-03 21:54:02 +08:00
Facetoe
458e05cae8
Catch exceptions thrown in init().
...
Possible solution for #490
2016-11-01 20:01:27 +08:00
hcpl
8adc73ec53
Mem: conform to PEP 8
2016-10-28 18:50:19 +03:00
hcpl
d28cc6369c
Mem: fix displaying negative values ( #485 )
...
Accomodating to changes made in `psutil` version 4.4.0 in calculating
`virtual_memory().used`.
2016-10-28 18:42:40 +03:00
hcpl
c7bbae9278
Backlight: add missing self object qualifier
2016-10-26 07:20:50 +03:00
hcpl
9c870d72b0
Backlight: terminate init() after monkey patching
2016-10-26 04:19:25 +03:00
hcpl
285ba71ba0
Backlight: fix crash in #442
2016-10-26 04:06:05 +03:00
enkore
115bd4d34f
Merge pull request #481 from m45t3r/glob_in_backlight
...
Glob expansion in backlight
2016-10-23 23:28:00 +02:00
Thiago Kenji Okada
7a081f4dd3
Glob expansion in backlight
...
Using default settings ("*"), this will match any device found in
backlight. Fix #442 .
2016-10-23 18:19:37 -02:00
enkore
bbbaded77e
Merge pull request #475 from m45t3r/next_if_down
...
network: add next_if_down option
2016-10-23 22:14:21 +02:00
enkore
884e85aab4
Merge pull request #480 from m45t3r/redshift
...
Added new module Redshift
2016-10-23 20:43:17 +02:00
enkore
1041f5d0c8
Merge pull request #476 from m45t3r/playerctl
...
Spotify module refactoring
2016-10-23 20:32:33 +02:00
Thiago Kenji Okada
c76be588c2
Speed up user feedback
2016-10-23 16:20:35 -02:00
Thiago Kenji Okada
9aa3368a5c
Added new redshift module
2016-10-23 16:03:55 -02:00
hcpl
10e13b90d7
Change hide_if_empty default to False
...
Apply the principle of least surprise
2016-10-22 12:44:36 +03:00
hcpl
afa4e610ab
Add module for swap usage tracking
2016-10-22 06:36:27 +03:00
Thiago Kenji Okada
dd1243a063
Rename Spotify module to Playerctl
...
Provides a Spotify module, that is simply a wrapper of Playerctl module,
for compatibility purposes.
2016-10-20 10:50:30 -02:00
Mehdi Abaakouk
d1e8f6f1b7
pulseaudio: allow to configure the sink
...
When we have multiple sinks, this change allows to have all/some of them
available in i3pystatus and to identify which one is currently the
default. Also it allows to configure if we want that the hook
change_sink move all inputs to the new sink or not.
2016-10-20 09:52:40 +02:00
enkore
962f376f43
Merge pull request #473 from dopykuh/master
...
Provide ability to serve filter and specify min_severity.
2016-10-20 08:18:11 +02:00
Erik Johnson
0ce0ed812b
Merge pull request #455 from terminalmage/github-status
...
Add a GitHub Status module
2016-10-19 21:42:23 -05:00
Erik Johnson
4c5466d2d6
Remove desktop notification when update fails
...
We're already logging this and populating the "update_error" formatter,
so this is redundant.
2016-10-19 21:38:56 -05:00
Thiago Kenji Okada
aab7f35c7d
Use TimeWrapper to format length, additional clean-ups
2016-10-19 22:06:01 -02:00
Thiago Kenji Okada
42b09c8834
Make format_not_running works again
2016-10-19 16:15:50 -02:00
Thiago Kenji Okada
962578cf61
Forget to get format from dict
2016-10-19 14:51:33 -02:00
Thiago Kenji Okada
f4479b7c77
Refactored method get_info()
2016-10-19 14:47:38 -02:00
Thiago Kenji Okada
70b56624c2
Improve documentation
2016-10-19 13:58:04 -02:00
Thiago Kenji Okada
217b60a3c8
Convert strings to lower case or it does not work
2016-10-19 13:45:23 -02:00
Thiago Kenji Okada
cf8415d228
Added 'stopped' to status
...
And make sure that the status exist so we don't show an error to the
user.
2016-10-19 13:34:57 -02:00
Thiago Kenji Okada
76cdd5487f
Modify Spotify module to support any player
2016-10-19 10:17:52 -02:00
Thiago Kenji Okada
8b95c429d4
Refactor Spotify module
...
Simplify logic and increase code robutness by using specific instead of
generic Exceptions.
2016-10-19 10:17:52 -02:00
Tim Foerster
6953df5aa8
Don't let the linter crying
2016-10-18 12:14:54 +02:00
Tim Foerster
584f34ed48
Provide ability to serve filter and specify min_severity.
2016-10-18 12:07:57 +02:00
enkore
2fec760d3d
Merge pull request #463 from JindrichPilar/timewarrior
...
Timewarrior module
2016-10-18 12:01:13 +02:00
Thiago Kenji Okada
581f9875b7
network: add next_if_down option
...
This option switch to the next interface (using cycle_interface() method)
if the current one is down.
2016-10-18 00:10:58 -02:00
enkore
10416e8ed0
Merge pull request #471 from hobarrera/online-dont-fail-when-offline
...
online module: Don't fail when offline
2016-10-18 01:18:32 +02:00
Hugo Osvaldo Barrera
aeec2e86f3
online module: Don't fail when offline
...
If the system is offline, socket.gaierror is raised, the module crashes,
and shows `offline` indefinitely.
Catch that exception, and return False.
2016-10-17 20:05:05 -03:00
enkore
8fb6b0843a
Merge pull request #464 from JindrichPilar/taskwarrior
...
Taskwarrior re-raise and log error
2016-10-17 18:36:06 +02:00
enkore
6ac571e402
Merge pull request #466 from rscholer/moc
...
Add module for MOC (music on console)
2016-10-17 18:35:49 +02:00
Tim Foerster
03341386e5
Provide ability to filter by groups.
2016-10-17 18:24:34 +02:00
Raphael Scholer
0fd281d4a0
moc - Fix typo
2016-10-14 15:16:47 +02:00
Raphael Scholer
ab00bf4d2a
moc - Remove all references to cmus
2016-10-14 15:16:07 +02:00
Raphael Scholer
be22e60433
Fix stupid and avoidable error in moc
2016-10-14 03:40:27 +02:00
Raphael Scholer
4ca3112331
Expose collected data in moc module
2016-10-14 02:42:25 +02:00
Raphael Scholer
d16d66e520
Add module for MOC (music on console)
2016-10-14 00:46:53 +02:00
Jindrich Pilar
0e3ca19469
Taskwarrior re-raise and log error
2016-10-09 13:41:04 +02:00
Jindrich Pilar
6016c52a87
Timewarrior use Logger instead of print
2016-10-09 10:53:01 +02:00
Jindrich Pilar
4692e0f914
Timewarrior re-raise error
2016-10-09 10:09:54 +02:00
Jindrich Pilar
4a3744192a
Timewarrior module
...
Module for heads up information for taskwarrior.org/docs/timewarrior/
2016-10-08 16:03:23 +02:00
hcpl
f678565666
Pulseaudio: fix non-working decrease_volume()
...
Also change switch_mute() and increase_volume() to look similar to
decrease_volume()
2016-10-07 02:25:13 +03:00
Erik Johnson
86f1248a85
Rename api_request func to specify it is for GitHub Status API
...
Also change loglevel to error when API response is blank
2016-10-04 17:27:52 -05:00
Erik Johnson
5b8ed2de2c
Check API response for additional pages of notifications
2016-10-04 17:21:13 -05:00
facetoe
55b1c1432c
Merge pull request #458 from udono/master
...
Use len() for lists instead of count() for #447
2016-09-29 19:12:16 +08:00
Erik Johnson
d0503262ce
Update color for Pittsburgh Penguins
...
This reflects a change in their primary accent color
2016-09-28 20:51:39 -05:00
Udo Spallek
5099227027
Use len() for lists instead of count() for #447
2016-09-28 22:30:19 +02:00
Gareth Dunstone
c462ecf955
Added to docstring pip installation command for speedtest-cli/modularize-2
2016-09-28 14:20:06 +10:00
Gareth Dunstone
207aa22035
change to conf as per https://github.com/enkore/i3pystatus/pull/449#issuecomment-247045192
2016-09-28 14:15:35 +10:00
Erik Johnson
7dbcec5a09
Updates from code review
...
See https://github.com/enkore/i3pystatus/pull/455#pullrequestreview-1728935
2016-09-27 19:29:04 -05:00
Erik Johnson
598a511420
Keep the previous color if a status update fails
2016-09-27 09:33:04 -05:00
Erik Johnson
8afd1da5cf
Merge githubstatus.py's functionality into github.py
2016-09-25 15:01:12 -05:00
Robin McCorkell
d6f8f5d660
Change ping module text color above latency threshold
2016-09-24 17:28:34 +01:00
Erik Johnson
38e23aedcb
Merge pull request #454 from terminalmage/issue453
...
Fix traceback when notification daemon not running
2016-09-21 17:21:32 -05:00
Erik Johnson
bafc492c45
Always log exception for DesktopNotification failure
...
Also remove unused ``exc`` variable.
2016-09-20 12:53:06 -05:00
enkore
e0bd9385af
Merge pull request #452 from sileht/master
...
Fix imap re-connection
2016-09-20 19:19:26 +02:00
Mehdi Abaakouk
caaf9844f6
Fix imap re-connection
...
Imap re-connection is not working.
Connection exceptions (socket.error, socket.gaierror, IMAP4.abort) can
be raise during any imap operations, not only on connection
establishment.
Also the idle thread call start() on thread multiple times, but this is
not allowed by python. The thread is not daemonize, so the thread code
can be never runned if the python process is busy. And the module is
located in imaplib2.imaplib2.IMAP4 not imaplib2.IMAP4...
This change fixes all of that.
2016-09-20 19:18:05 +02:00
enkore
a5b463dd60
Merge pull request #445 from terminalmage/system_tz
...
clock: Detect system TZ (if possible) for cases where no TZ is specified
2016-09-20 19:15:31 +02:00
Erik Johnson
bc429c965d
Ignore decimal point
2016-09-19 17:38:19 -05:00
Erik Johnson
ac961dbd33
Use colors from status.github.com
2016-09-19 10:13:33 -05:00
Erik Johnson
c48ec987f2
Add a GitHub Status module
...
This adds a new module for displaying the status of github.com via
GitHub's Status API.
2016-09-18 23:51:54 -05:00
Erik Johnson
d798a8c3d8
Optimize weather module, rewrite Weather.com backend
...
Weather.com's XML feed is now defunct, this commit includes a rewritten
Weather.com module which uses the same JSON feed used by the website
itself.
The weather updates now happen in a separate thread rather than
happening in the ``run()`` function. Since the ``run()`` function is
executed before any of the mouse events are run, this was causing the
mouse event callbacks to result in a flurry of weather updates, which
caused the Weather Underground API to be overutilized beyond its rate
limit.
2016-09-18 23:26:07 -05:00
Erik Johnson
429c5d4865
Fix traceback when notification daemon not running
...
When a desktop notification is displayed but there is no notification
daemon running, an exception is raised.
This fixes the traceback by adding a logger to the DesktopNotification
class, and logging an error when the exception is caught.
Fixes #453 .
2016-09-18 20:45:40 -05:00
Gareth Dunstone
439e725107
2fp is too precise I think
2016-09-14 10:33:10 +10:00
Gareth Dunstone
338ad21ccb
fixed net_speed to properly use speedtest-cli/modularize-2
...
added some nice unicode formatting down and up symbols for download and upload speed.
2016-09-14 10:24:17 +10:00
Erik Johnson
3590dd20e5
clock: Detect system TZ (if possible) for cases where no TZ is specified
...
When the pytz dep was reintroduced, this made all TZ usage reliant upon
a tzinfo object generated by pytz. This had the effect of making the
``%Z`` strftime placeholder evaluate as blank when a timezone is not
explicitly defined (i.e. when the format is just a format string and
not a tuple containing the format string and timezone).
This commit resolves this regression by using pytz to build a tzinfo
object from either /etc/localtime or /etc/timezone during the ``init()``
function, establishing the system TZ to be used for those cases where no
TZ was specified.
2016-08-31 23:15:17 -05:00
David Wahlstrom
453767e50e
dota2wins: fix win% reporting
...
Somehow I accidentially had 2 win_percent values being set in the cdict,
one of which was a string that breaks when you try to round off the
remainder.
2016-08-31 07:57:29 -07:00
David Wahlstrom
338d446bb3
openstack_vms: update novaclient auth
...
The openstack novaclient has updated it's auth mechanism, deprecating
the method used in this module. This patch updates the novaclient
authentication call to leverage this new auth method.
2016-08-30 13:55:27 -07:00
Matthieu Coudron
33764e349e
"logfile" accepts environment variables
2016-08-29 14:54:07 +02:00
enkore
2eba2fd9ac
Merge pull request #404 from janoliver/master
...
If imaplib2 is installed use the IDLE feature of IMAP to avoid polling
2016-08-29 10:01:27 +02:00
colajam93
2930b9448c
Follow change of netifaces ipv6 mask
2016-08-27 22:56:23 +09:00
Jan Oliver Oelerich
0e8d667641
Fixed PEP Error
2016-08-15 15:06:44 +02:00
Jan Oliver Oelerich
bfcab60993
If imaplib2 is installed, we use the IDLE feature of IMAP to avoid polling for mails.
2016-08-15 15:03:43 +02:00
facetoe
3fcfb88084
Merge pull request #432 from facetoe/exceptions
...
Catch some common exceptions
2016-08-13 17:13:54 +08:00