Commit Graph

1849 Commits

Author SHA1 Message Date
enkore
89424d103c Merge pull request #382 from drwahl/gpu_temp
gpu_temp: add "display_if" setting
2016-06-04 20:29:51 +02:00
facetoe
07cbb84406 Merge pull request #392 from colajam93/fix-typo
Fix typo
2016-06-04 00:52:26 +08:00
colajam93
ecb532a5ac Fix typo 2016-06-04 01:39:31 +09:00
Mehdi ABAAKOUK
2d7b3afaca Fix imap connection lost (#380)
Nothing in imap mail backend reinit the imap connection
when this one is lost, and then the backend always output "socket.error:..."

This change fixes that by cleanup the connection object when
connection is lost so get_connection() will recreate a new one.

This also remove the unless utils.internet() checks already done by
Mail().run()
2016-05-24 12:22:30 +02:00
eBrnd
cee2860138 add weekcal module (#388) 2016-05-24 12:21:06 +02:00
enkore
b686afe42e Merge pull request #391 from rumpelsepp/syncthing
Use CSFR Token in Syncthing module
2016-05-24 12:20:17 +02:00
Stefan Tatschner
f059184411 Use CSFR Token in Syncthing module
Fixes #390
2016-05-24 10:24:56 +02:00
enkore
6859eb5a10 Merge pull request #389 from enkore/fix-spotify-playerctl
spotify: pass player_name=spotify to playerctl
2016-05-22 23:44:44 +02:00
enkore
3ab7a58d03 spotify: pass player_name=spotify to playerctl 2016-05-22 22:18:29 +02:00
Sergei Turukin
ccb688c404 Quick fix 2016-05-18 15:49:20 +03:00
Sergei Turukin
cea50cbe5e Fix PEP8 issue 2016-05-18 14:53:59 +03:00
Sergei Turukin
565e4a66d1 Change pomodoro counting logic 2016-05-18 14:51:54 +03:00
enkore
1a64158c8b Merge pull request #385 from terminalmage/scores
Make NHL team wins reflect series wins during playoffs
2016-05-17 17:40:47 +02:00
Erik Johnson
8f9c878689 Make NHL team wins reflect series wins during playoffs
The win/loss values from the NHL data feed reset in the playoffs, but
don't reflect the current series. Instead, they reflect the current
win/loss total since the beginning of the playoffs.

This commit checks for a key in the API return data indicating that the
game is a playoff game, and if the game is a playoff game the team's
wins will be set to the remainder of the total wins divided by 4 (a team
with 6 overall wins will be assumed to have 2 wins in the current
playoff series).

The team's losses during a playoff series will be set to the amount of
wins for the opposing team.
2016-05-17 09:49:29 -05:00
Sergei Turukin
ae3721ce87 Flake8 fixes 2016-05-17 14:11:26 +03:00
Sergei Turukin
d4f209bfe9 Refactor. 2016-05-17 14:07:41 +03:00
Sergei Turukin
7ec7739055 Refactor
Use integer values for states instead of strings. Feels more optimal.
2016-05-17 14:01:37 +03:00
Sergei Turukin
575f682a61 Using utcnow helps to avoid timezone issues.
On timer start timezone is provided to `datetime.now()` call, but on refresh is not.
That cause a bug with wrong time difference (it include timezone diff). Didn't
dig deep enough to figure out why there is inconsistency with timezones so just
pin timezone info as it's not useful anyway.
2016-05-17 13:54:42 +03:00
David Wahlstrom
b901cec5a6 temp: add a "display_if" setting
Adds a "display_if" setting to temp module.  This is a snippet that will
be evaulated, and if the result is true, it will display the module's
output.
2016-05-11 13:38:28 -07:00
David Wahlstrom
cc3781a6c0 gpu_temp: add "display_if" setting
Adds a "display_if" setting to the gpu_temp module that allows the
output to be squelched unless some snippet has been evaluated as true.
2016-05-11 13:26:38 -07:00
David Wahlstrom
12c74674f2 openfiles: add tests and close files
Added a functional test and included a close() call on files that are
opened when the module/test run.
2016-05-06 09:12:33 -07:00
David Wahlstrom
d1de6c5fa3 openfiles: module to report open file handle count
This module will display the current open file handles and the kernel
setting for max open file handles.  This is particularly useful when
running applications that like to grab a lot of file handles to help
monitor if/when your system may run out of available file handles.
2016-05-06 08:45:34 -07:00
enkore
4611295475 Merge pull request #365 from ncoop/iss359
Stricter criteria for including query output
2016-05-03 09:47:17 +02:00
enkore
b5a4fd2ab0 Merge pull request #373 from terminalmage/scores
Add module to display sports scores
2016-05-03 09:46:01 +02:00
enkore
efcf7d0cde Merge pull request #377 from terminalmage/weather-tstorm
Catch another odd weather.com weather condition
2016-05-03 09:42:39 +02:00
Erik Johnson
da104268ab Catch another odd weather.com weather condition
This properly colorizes when there is a thunderstorm and the weather.com
API response defines the current weather condition as "T-Storm". No idea
why they decide to do this, it's definitely not for brevity as they have
a "Thunderstorms in the Vicinity" weather condition as well. Just a
weird quirk of their API, I guess.
2016-05-02 22:08:12 -05:00
enkore
682961f956 Merge pull request #367 from k1-hedayati/patch-1
Added interval option to online module
2016-04-26 11:04:58 +02:00
enkore
dcc3cfeffc Merge pull request #371 from ncoop/master
Module should be chmod a-x
2016-04-26 11:04:36 +02:00
enkore
ba0b6bc0f1 Merge pull request #372 from ncoop/mpd-KeyError-fix
MPD KeyError fix at end of playback
2016-04-26 11:03:52 +02:00
enkore
f120fb65e3 Merge pull request #362 from terminalmage/logging
RFC: Improved logging
2016-04-26 11:03:19 +02:00
Erik Johnson
633ea4628e Use playoff W/L numbers if in playoffs
Also add seed info
2016-04-25 22:42:17 -05:00
Erik Johnson
c930fe8330 Properly identify multi-OT NHL games 2016-04-25 22:42:17 -05:00
Erik Johnson
157f0f57c8 Properly identify delayed games in-progress
Had to wait for an in-progress game to be delayed to see the API return
to properly catch this.
2016-04-25 22:42:17 -05:00
Erik Johnson
11db5baca6 Add EPL backend for scores module 2016-04-25 22:42:17 -05:00
Erik Johnson
5d053f7094 Add NBA backend for scores module 2016-04-25 22:42:17 -05:00
Erik Johnson
ddde786763 Add NHL backend for scores module 2016-04-25 22:42:17 -05:00
Erik Johnson
afdcf32388 Add module to display sports scores
This is a pluggable module which supports multiple backends. The first
backend displays MLB scores, with more planned (NHL to start).
2016-04-25 22:42:17 -05:00
ncoop
84e438caf4 Ensure currentsong dictionary has "file" key 2016-04-15 20:22:25 -07:00
ncoop
e7ca6d7cb9 Module should be chmod a-x 2016-04-15 02:00:41 -07:00
ncoop
762315dde1 Corrected setxkbmap -query output
Only includes the one or two lines desired.
Also, uses a class function instead of relying on sed.
2016-04-13 13:17:30 -07:00
Keyvan Hedayati
753860157c Added interval option to online module 2016-04-12 11:16:38 +04:30
Erik Johnson
16b28ec493 Document "logformat" option for i3pystatus.status.Status() 2016-04-10 21:16:23 -05:00
Erik Johnson
3d97ea80b8 Add information on setting logfile in i3pystatus.status.Status() constructor 2016-04-10 21:16:23 -05:00
Erik Johnson
8e9b6dfba3 Remove leading newline from exception logging
The new log formatting makes this unnecessary.
2016-04-10 21:16:23 -05:00
Erik Johnson
c6b2077263 Add support for logformat parameter to i3pystatus.Status()
This improves the usefulness of log messages, especially when it comes
to debug logging added for the purpose of future troubleshooting.
2016-04-10 21:16:23 -05:00
enkore
8aeaab7fa5 Merge pull request #363 from ncoop/iss357
Create updates backend for dnf
2016-04-09 13:18:47 +02:00
ncoop
52ef0e07df Not all lines after the second are updates.
There are 14 here:

```
Last metadata expiration check: 1:16:29 ago on Sat Apr  9 01:14:36 2016.

google-chrome-stable.x86_64            49.0.2623.112-1             google-chrome
kernel.x86_64                          4.4.6-301.fc23              updates
kernel-core.x86_64                     4.4.6-301.fc23              updates
kernel-debug-devel.x86_64              4.4.6-301.fc23              updates
kernel-devel.x86_64                    4.4.6-301.fc23              updates
kernel-headers.x86_64                  4.4.6-301.fc23              updates
kernel-modules.x86_64                  4.4.6-301.fc23              updates
kernel-modules-extra.x86_64            4.4.6-301.fc23              updates
openssh.x86_64                         7.2p2-2.fc23                updates
openssh-askpass.x86_64                 7.2p2-2.fc23                updates
openssh-clients.x86_64                 7.2p2-2.fc23                updates
openssh-server.x86_64                  7.2p2-2.fc23                updates
webkitgtk3.x86_64                      2.4.10-2.fc23               updates
Obsoleting Packages
kernel-headers.x86_64                  4.4.6-301.fc23              updates
    kernel-headers.x86_64              4.4.6-300.fc23              @updates
```
2016-04-09 03:35:45 -07:00
ncoop
c33a798b86 Simple 'dnf check-updates' backend for updates 2016-04-09 03:35:45 -07:00
enkore
ff63d95737 Merge pull request #358 from grimpy/nowplaying_tolerant
Now playing: be more tolerant for mpris properties
2016-04-09 12:33:04 +02:00
Jo De Boeck
be83476aef Now playing: be more tolerant for mpris properties
Some mpris clients dont implement all properties
2016-04-08 13:23:53 +02:00