Commit Graph

1873 Commits

Author SHA1 Message Date
Raphael Scholer
811ade8160 Use different format strings for each auto-detected network interface (#565)
* network - Use different format strings for each autodetected interface

Introduce format_active_up dictionary. Each key can be a valid globbing pattern
for fnmatch.fnmatch().

Fall back to format_up if no match could be found.

* network - Always honor disabled dynamic_color

Disable the calculation of color values if detect_active is enabled
and dynamic_color is disabled.

This resulted in "#000000" for some reason.
2017-04-23 21:20:11 +07:00
facetoe
c6464aeecb Add option for detecting active interface. (#562) 2017-04-19 23:27:38 +07:00
Alex Corkwell
3c6d2167e5 uptime: Check seconds_alert against raw seconds (#555)
Originally, uptime checked seconds_alert against seconds to determine
whether to use color_alert, but if {days}, {hours}, or {mins} is used in
the format string, seconds is truncated to exclude anything above a day,
hour, or minute respectively.
This caused seconds to always be below a seconds_alert value greater
than a day, for example, if {days} is used, so the alert color was never
used.
Fix this by saving and checking against the raw seconds that were
originally read.
2017-04-15 14:58:00 +07:00
David Wahlstrom
414fbe1e5e Fix weathercom module (#561)
The weathcom module was broken due to referencing a variable that did
not exist.  It appears this was a typo or copy/paste error.  Either way,
this patch fixes that error and the weathcom module works again!
2017-04-13 13:14:35 -05:00
Erik Johnson
0fbc29ef8a I'm an idiot and put my API key in the Weather Underground example (#560)
Just got a usage alert when my laptop wasn't even on.

n00b mistake! I've disabled the API key, and this removes it from the
example in the documentation.
2017-04-05 21:05:01 -05:00
Erik Johnson
5bf3b2b32a Another fix for Weather.com API changes (#559)
It appears that the page data loads in one of two ways. I haven't
figured out what causes either, but this makes it so that we detect both
methods and load the relevant data either way.
2017-03-30 10:36:23 -05:00
Erik Johnson
79e90260a8 Update Weather.com weather backend to reflect API changes (#558)
* Update Weather.com weather backend to reflect API changes

Their API still provides a feed which requires a rotating API key, but
that API key is no longer something we can parse out of the webpage.
Fortunately, the forecast data is compiled server-side anyway and is
present as a blob of javascript that we can parse out of the page and
load as JSON.

* Clarify directions for getting location code
2017-03-29 12:47:52 -05:00
enkore
1a575cd639 2017 2017-03-15 14:20:35 +01:00
Jason Paris
33f6ebbf0a Delete i3pystatusrc.py 2017-03-13 09:48:15 +01:00
Jason Paris
fe5c8df35a removed password 2017-03-13 09:48:15 +01:00
Jason Paris
cc46c208e2 fixed get_redditor() method 2017-03-13 09:48:15 +01:00
Jason Paris
06cac68ae3 updated module to use PRAW 4.3.0 2017-03-13 09:48:15 +01:00
Jason Paris
6e0fe2ec90 upgraded fixed_redditor() to praw 4.3 2017-03-13 09:48:15 +01:00
Thiago Kenji Okada
a0082fb3b1 Need to strip values separated 2017-03-13 09:47:51 +01:00
Thiago Kenji Okada
53b49a4fbd Added brightness value to Redshift module 2017-03-13 09:47:51 +01:00
Thiago Kenji Okada
0cc39bc9d6 Redshift module fixes
Small rewrite in redshift module, removing regex usage in favor of
split()/strip(). I removed the function declaration inside function
declaration too, since it was strange.

Fix some typos in documentation too.
2017-03-13 09:47:51 +01:00
Andrey Astafyev
ec67429456 update ipv6 address handling to work with netifaces >= 0.10.5 2017-03-13 09:47:21 +01:00
Andrey Astafyev
b7324eed6a fixed mistype in song_length formatter 2017-03-13 09:47:21 +01:00
Mathis FELARDOS
883ff41e60 utils/gpu: add support of several GPU 2017-03-13 09:47:03 +01:00
enkore
133643fc6d Merge pull request #546 from alarmschaben/master
add option "freq_divisor" to "network" module, which allows division …
2017-03-13 09:46:37 +01:00
enkore
b0fdbfde3e Merge pull request #550 from kyrias/battery-notif
Battery notification timeout
2017-03-03 22:01:59 +01:00
facetoe
c77d853e14 Merge pull request #552 from sileht/master
pulseaudio: hides some error messages
2017-03-01 17:24:42 +08:00
Mehdi Abaakouk
d3ae79301b pulseaudio: hides some error messages
When we move the sink of an application, it can fail, then pacmd
print error message on stdout, breaking the i3pystatus json.

This changes hides these messages since their are not really usefull.
2017-03-01 10:03:03 +01:00
facetoe
b974196221 Merge pull request #544 from facetoe/temp_fix
Fix bug where sensors reports no maximum.
2017-02-27 20:50:21 +08:00
Johannes Löthberg
123516fe54 battery: Make alert timeout configurable
Fixes #549.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-02-23 13:53:41 +01:00
Johannes Löthberg
96936946fa core/desktop: Use default server timeout
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-02-23 13:51:35 +01:00
enkore
2cfeeca3e2 Merge pull request #548 from enkore/enkore-patch-1
codestyle -E722
2017-02-23 10:56:38 +01:00
enkore
30f84b1a73 codestyle -E722 2017-02-23 10:55:28 +01:00
enkore
e60d3d4027 Merge pull request #547 from rscholer/dpms_status
Fix output when dpms is enabled
2017-02-23 10:54:56 +01:00
Raphael Scholer
22b2d4a6f5
Fix output when dpms is enabled
This fixes #537.
2017-02-23 03:42:50 +01:00
Armin F. Gnosa
e9a4948adb add option "freq_divisor" to "network" module, which allows division of Wi-Fi frequency 2017-02-22 15:45:05 +01:00
Facetoe
12612c1e5a Fix bug where sensors reports no maximum. 2017-02-16 20:20:25 +08:00
Erik Johnson
82555cb6a7 Fall back to local_epoch if observation_epoch is non-numeric
This fixes a traceback when the weather data is incomplete (possibly due
to a PWS being on the fritz).
2017-01-31 11:11:27 -06:00
facetoe
86634f8f8a Merge pull request #539 from facetoe/temp_modifications
Some modifications to the Temperature  module:
2017-01-29 11:45:36 +08:00
Facetoe
10e00263b3 Some modifications to the Temperature module:
* Support multiple CPUs/cores
	* Support dynamically discovering warning/critical limits
	* Support dynamic colors
	* Add vertical bar formatters

Should't break existing configs.
2017-01-27 19:49:40 +08:00
facetoe
4d2ccc5dcb Merge pull request #538 from facetoe/master
Move session initialization into run().
2017-01-27 09:49:57 +08:00
Facetoe
aa8110caf4 Move session initialization into run().
Prevent exceptions when i3pystatus is started without internet.
2017-01-27 08:33:10 +08:00
facetoe
386bf55d59 Merge pull request #535 from facetoe/google_calendar_modifications
Some modifications to Google Calendar:
2017-01-24 20:16:40 +08:00
facetoe
9f71f31d57 Merge pull request #532 from Xenopathic/patch-1
taskwarrior: Prevent KeyError on missing project
2017-01-24 03:03:50 +08:00
Robin McCorkell
6292f4b3f0 Replace if in then ... else ... with .get() 2017-01-23 17:11:49 +00:00
facetoe
821bd950da Merge pull request #531 from Xenopathic/taskwarrior-reset-next-task
taskwarrior: Add reset_next_task callback
2017-01-23 20:55:46 +08:00
Facetoe
6c9bb749b9 Some modifications to Google Calendar:
* Add amazing urgent_blink feature
	* Perform updates in a background thread
	* Be more consistent with time
	* Add some enlightening comments
2017-01-23 20:35:30 +08:00
Robin McCorkell
6b487bbe81 Fix style issues 2017-01-16 22:49:24 +00:00
Robin McCorkell
4283ed919a taskwarrior: Prevent KeyError on missing project 2017-01-15 17:14:51 +00:00
Robin McCorkell
2b56c6cd03 Merge branch 'master' into taskwarrior-reset-next-task 2017-01-15 16:06:50 +00:00
enkore
d90511597e Merge pull request #525 from m45t3r/delete_playerctl
Remove playerctl module
2017-01-15 16:38:33 +01:00
enkore
d1d12b8f23 Merge pull request #530 from Xenopathic/taskwarrior-formats
taskwarrior: Add `project` formatter for next task project
2017-01-15 16:38:06 +01:00
Robin McCorkell
f10f07c9f1 taskwarrior: Add reset_next_task callback
Callback resets display to most urgent task after any switching by
other callbacks. Installed by default on left click.
2017-01-15 15:06:05 +00:00
Robin McCorkell
bd210c22ad taskwarrior: Add project formatter for next task project 2017-01-15 14:21:54 +00:00
enkore
0a1f92db36 Merge pull request #528 from m45t3r/revert-527-xkblayout_fix
Revert "Forcibly update xkblayout module internal state"
2017-01-14 21:44:45 +01:00