Commit Graph

1531 Commits

Author SHA1 Message Date
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
Erik Johnson
7cb2dcc255 Fix improper usage of time.tzset() (#347)
* Fix improper usage of time.tzset()

time.tzname is a tuple containing the non-daylight-savings and
daylight-savings timezone abbreviations. However, when the TZ
environment variable is set to just the daylight-savings timezone (as
the clock module was changed to do in e31c58f), time.tzset() will break
time.tzname by setting both elements of the tuple to that timezone,
causing the effective timezone to fallback to UTC:

>>> time.tzname
('CST', 'CDT')
>>> time.localtime().tm_hour
1
>>> os.environ.putenv('TZ', 'CST')
>>> time.tzset()
>>> time.tzname
('CST', 'CST')
>>> # ^^^ This is broken
...
>>> time.localtime().tm_hour
6
>>> os.environ.putenv('TZ', 'CST+06:00CDT')
>>> time.tzset()
>>> time.tzname
('CST', 'CDT')
>>> time.localtime().tm_hour
1

This fixes this incorrect behavior by building a proper TZ environment
variable to set localtime.

* Use time.timezone instead of time.altzone

* Make _get_local_tz a static method
2016-04-07 23:21:23 +02:00
Maximiliano
c0cdfae1f8 mod bitcoin: multiple exchange support (#353)
* mod bitcoin: add 'volume_percent'

* mod bitcoin: Fix exception on url opening (#304)

Calling user_open as a 'Python callback' raises an exception because
this function doesn't expects 'self'.
Wrote a wrapper function as a 'Member callback' to filter it out.

* mod bitcoin: add specific exchange support

* mod bitcoin: add request age attribute

* mod bitcoin: refactor

* mod bitcoin: btc volume divisor

* bitcoin: Deal with diffrent locales

* Fixing PEP8

* mod bitcoin: Updated docs
2016-04-07 23:20:37 +02:00
Jindřich Pilař
c93bfe16b6 Taskwarrior module (#354)
* Taskwarrior module

* Taskwarrior - sort by urgency

* Taskwarrior - filter with multiple constraints
2016-04-07 23:19:59 +02:00
enkore
d9f5950eaa Merge pull request #355 from Xenopathic/master
Properly set MPD filename if no title
2016-04-07 23:19:17 +02:00
Erik Johnson
01395c6b39 Catch "Showers" as "Rainy" weather condition (#356)
* Catch "Showers" as "Rainy" weather condition

Weather.com has a "Showers in the Vicinity" weather condition that I
just happened to see this morning. This commit assigns this condition as
"Rainy" so it is properly colorized.

* Make "Clear / Windy" map to "Fair" weather condition

Another odd weather condition from the weather.com API

* Reverse icons for Fair and Sunny

"Sunny" should have a filled-in sun icon as it implies a brighter weather
condition than "Fair" does.

* Properly detect "Sunny / Windy" as "Sunny" weather condition

Also, do not check for similarly-named conditions if an exact match is
found.

* Properly detect "Fair / Windy" as "Fair"
2016-04-07 23:18:39 +02:00
Robin McCorkell
e3194147fa Properly set MPD filename if no title 2016-04-01 13:07:49 +01:00
enkore
ad2f08e89b Merge pull request #351 from terminalmage/google-calendar
google_calendar: make number of days for event search configurable
2016-03-31 11:08:14 +02:00
enkore
c858c289e7 Merge pull request #350 from terminalmage/issue232
Improve documentation for battery module
2016-03-31 11:06:26 +02:00
enkore
07c70b0ac8 Merge pull request #348 from hasB4K/pullrequest-ping
ping: Add ping module
2016-03-31 11:05:33 +02:00
enkore
11861a500a Merge pull request #349 from terminalmage/wunderground
Add generic weather module
2016-03-31 11:05:02 +02:00
Erik Johnson
0fafb1a652 Identify more kinds of cloudy weather 2016-03-30 13:19:38 -05:00
Erik Johnson
2ac7c6af3d Support more types of "rain" conditions 2016-03-30 11:40:30 -05:00
Erik Johnson
7c25dff1a1 Let color default to i3bar color 2016-03-29 23:39:43 -05:00
Erik Johnson
f30b929752 Make number of days for event search configurable 2016-03-29 23:27:59 -05:00
Erik Johnson
97600454ed Improve documentation for battery module
This adds a mention and usage example for ``formatp`` to hide the status
icon when the battery is full.

Resolves #232.
2016-03-29 09:22:18 -05:00
Erik Johnson
66bc56b7a4 Add reference to weather module to the formatp documentation 2016-03-29 01:14:56 -05:00
Erik Johnson
0ec2bf7b53 Add docs/_build to .gitignore 2016-03-29 01:14:56 -05:00
Erik Johnson
19af608312 Add i3pystatus.weather to packages list 2016-03-29 01:14:56 -05:00