Commit Graph

1531 Commits

Author SHA1 Message Date
ncoop
0570b51fa5 Catch AttributeError also. 2016-06-23 21:28:42 -07:00
Erik Johnson
495b736038 Better thunderstorm icon 2016-06-23 11:31:22 -05:00
Erik Johnson
7298b7782b Add "Fog" weather condition 2016-06-23 11:30:18 -05:00
enkore
806ebe9060 Merge pull request #366 from ncoop/iss364
Notification with update summary on_rightclick
2016-06-23 15:16:26 +02:00
facetoe
f3ffb96a17 Merge pull request #396 from asmikhailov/master
Fixed error with empty list
2016-06-23 20:20:16 +08:00
facetoe
4476059aac Merge pull request #405 from grubersjoe/xkblayout
xkblayout module - format and uppercase settings
2016-06-23 20:10:58 +08:00
ncoop
2505468515 Notification support for aptget. 2016-06-22 23:57:40 -07:00
ncoop
f03926ed71 Put yaourt docs into code blocks; 80 char width. 2016-06-22 22:44:34 -07:00
ncoop
9d907732f1 Update notifications for pacman, cower, yaourt.
These modules are also runnable directly from terminal.
2016-06-22 22:44:25 -07:00
Erik Johnson
1cc93937e5 Change default weather icon for thunderstorm
I had added this to be able to use a different icon for thunderstorms,
which were at the time not even being detected as a weather condition
and were just falling back to the default (i.e. no colorization nor
icon). However, the only thunder/lightning unicode icon that is widely
available is too tall, leading to the entire module's text being
vertically-aligned on a different plane from the rest of the modules in
the status bar.

This commit changes the default icon to the same one used for "Rainy"
conditions, while preserving it as a distinct weather type so that
others can still use their own icon if they so choose.
2016-06-22 15:30:02 -05:00
Jonathan Gruber
42d8760462 Removed semicolon 2016-06-20 12:04:54 +02:00
Jonathan Gruber
1baaeb3ccc Added uppercase setting 2016-06-20 11:53:18 +02:00
Jonathan Gruber
f2adc64966 Added format string setting 2016-06-20 11:40:46 +02:00
Igor Sharonov
0a3679510e Treat i3pystatus as launcher 2016-06-19 22:18:07 +03:00
Erik Johnson
1f8e11fd6d Update EPL scores backend for offseason
During the offseason, the context URL which provides params used to
locate information on a given game redirects to the EPL mainpage.
This commit properly catches these cases, and also adds some helpful
logging to the ScoresBackend api_request() function.
2016-06-10 00:05:33 -05:00
Raphael Scholer
1b6dd7ea33 imap - Catch socket.gaierror if no internet connection is available 2016-06-09 22:11:43 +02:00
facetoe
b4e21dfd9e Merge pull request #394 from facetoe/pulseaudio_change_sink
Support changing sinks on the fly.
2016-06-08 20:52:58 +08:00
facetoe
a96271de96 Merge pull request #395 from facetoe/google_calendar
Google calendar modifications
2016-06-07 17:25:06 +08:00
asmikhailov
07dd1bb159 Merged upstream master 2016-06-07 12:10:19 +03:00
facetoe
8140b3b73c Use sink name not index. 2016-06-07 16:24:04 +08:00
facetoe
3dcc2d7d8f Open calendar event on click. 2016-06-06 16:10:26 +08:00
facetoe
0215bdf5f1 Continue on 500/503 errors. 2016-06-06 15:53:54 +08:00
facetoe
bdfed7136a Support changing sinks on the fly.
On double click, move all sink inputs to the next available
sink and set as default.
2016-06-06 15:43:15 +08:00
ncoop
ae1274d5d3 Makes update count algo less wrong. 2016-06-04 21:30:24 -07:00
ncoop
b73dbb1a35 Return early if the check threw an error. 2016-06-04 20:53:12 -07:00
ncoop
5272e10208 Dump data by running as __main__. 2016-06-04 20:32:33 -07:00
ncoop
48273a8205 Unknown update list gives empty string. 2016-06-04 19:54:21 -07:00
ncoop
51675430b1 Notification icon is customizable, and can be None 2016-06-04 19:54:21 -07:00
ncoop
d7d372ff5d Added format_summary option
By default, same as format
2016-06-04 19:54:21 -07:00
ncoop
7fb0794f45 Now returns both the count and a notification body 2016-06-04 19:54:21 -07:00
ncoop
616c68b0f0 Notification displayed on rightclick by default
Notification summary shows the count
Notification icon is `software-update-available`
notif_body concatenates raw or prepared output from all backends

Backends that don't yet output to notif_body should have harmless empty string

Also, linted according to flake8
Corrected typo
2016-06-04 19:54:20 -07:00
enkore
c8c09763c1 Merge pull request #383 from drwahl/temp
temp: add a "display_if" setting
2016-06-04 20:29:58 +02:00
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