Commit Graph

723 Commits

Author SHA1 Message Date
enkore
bbab4c0db0 setting util: add -l -v options 2015-06-17 15:50:10 +02:00
enkore
f5598b8b7c make setting_util zip_safe and location-independent 2015-06-17 15:10:24 +02:00
enkore
2a6d6bbea0 Move and ln-s setting_util there 2015-06-17 14:52:37 +02:00
enkore
56f6fd6a8b Create package i3pystatus.tools for additional command line tools 2015-06-17 14:52:24 +02:00
enkore
dee25535e7 Fix some warning from some glib-thing. 2015-06-17 14:07:43 +02:00
enkore
ff519fbde0 Remove shebangs and coding tags 2015-06-17 10:32:10 +02:00
David Wahlstrom
b2175b1931 dota2wins: truncate win % to 2 decimals
In order to avoid filling i3pystatus with super long decimals, this
patch sets the dota2win module to use only 2 decimal places for it's win
percent.
2015-06-17 10:27:05 +02:00
enkore
29d6a5c63b Merge pull request #217 from fpcr/feature/tot_bytes
Add total received/sent Mbytes to network module
2015-06-17 10:25:16 +02:00
David Wahlstrom
3ad6fc495c net_speed: allow bps or Bps
This patch provides a feature that allows the user to select between
Bits or Bytes when displaying the calculated network speed.  Also fixes
an issue that would sometimes cause the widget to break when
speedtest_cli couldn't find a good server.
2015-06-17 10:19:13 +02:00
David Wahlstrom
9c246bc60f net_speed: a module to display internet speeds
This module provides a glimpse/snapshot of current internet based
speeds.  To keep things simple (and due to bugs in speedtest_cli), this
module simply uses requests to download a small(ish) image and times the
download.  This is not a perfect/definitive test, but it should be a
decent indicator of how the internet bound traffic looks on the clients
network.
2015-06-17 10:18:58 +02:00
microarm15
46c6076f95 check whether files exist 2015-06-16 19:10:48 +02:00
microarm15
4742f74583 add whitespace around the / operator 2015-06-15 21:28:05 +02:00
microarm15
16ab492b84 add whitespace around the * operator 2015-06-15 20:15:45 +02:00
microarm15
475c788c0c add total rcv/snt Mbytes to network module 2015-06-15 18:57:41 +02:00
Lukáš Mandák
3d0142b74d Module: Added docs for hints.
Module: All modules now set `"markup": "none"` by default to prevent from #181.
Module: is now replacing ampersands with "&" if output is to be parsed by pango.
2015-06-12 17:38:34 +02:00
enkore
c5fe29d258 Always log to file in home dir 2015-06-08 02:41:34 +02:00
enkore
e9b7c6c439 Don't print exceptions to stderr, log them instead, always force output 2015-06-08 02:41:04 +02:00
enkore
3a6319c1b9 Change default log level to WARNING (30) 2015-06-08 02:40:48 +02:00
enkore
63c7cc6523 Fix minor bug with required inherited settings in subclasses redefining them 2015-06-08 02:32:39 +02:00
Lukáš Mandák
040b765b5d Module: Replaced list comprehension for better code readability. 2015-06-06 18:17:38 +02:00
Lukáš Mandák
8d80b375a3 Module: Added hints setting that allows the user to add additional i3bar protocol blocks to module's output. 2015-06-06 14:15:48 +02:00
enkore
41003ef702 Remove unnecessary metaclass from IntervalModule 2015-06-06 12:49:13 +02:00
enkore
60470e4d7f Handle settings inheritance statically through a metaclass 2015-06-06 12:48:47 +02:00
enkore
e41d12079f Fix missing documentation of inherited settings 2015-06-06 12:37:51 +02:00
David Wahlstrom
b09e213e69 makewatch: remove uneeded modules
psutil is already included (line 25) and getpass is part of the stdlib.
2015-06-06 09:29:21 +02:00
David Wahlstrom
8b8a3db25c makewatch: Remove "user" setting
While there was documentation suggesting you could limit the search by
user, the code was not written to do such.  This could be implimented in
the future, but for now, I'm just going to remove the comment.
2015-06-06 09:29:18 +02:00
David Wahlstrom
7be136167d makewatch: a module to watch for make (or other long running) jobs
A module that will watch for (by default) make jobs and notify of their
status.  This can be used for other long-running processes by providing
an alternate 'name'.
2015-06-06 09:28:42 +02:00
enkore
317d96b176 docs 2015-06-06 00:48:45 +02:00
enkore
3a2542a266 Merge pull request #214 from claria/master
Add module for DPMS state
2015-06-06 00:03:11 +02:00
enkore
82959e117c Merge pull request #213 from gacekjk/master
CPU frequency module
2015-06-06 00:02:17 +02:00
gacekjk
adbb9c0165 changed docstrings to be more informative, removed unnecessary docstring 2015-06-05 22:23:33 +02:00
Georg Sieber
2fe7ad1c41 more formatting fixes 2015-06-05 21:39:17 +02:00
Georg Sieber
c569dd608f fixed formatting issues 2015-06-05 21:19:17 +02:00
Georg Sieber
19ea035e68 Add module for DPMS state 2015-06-05 21:08:32 +02:00
gacekjk
2f778885e6 code refactor, reformat and add docstrings 2015-06-05 17:23:21 +02:00
enkore
4e169b199e Merge pull request #211 from drwahl/master
Dota 2 win rate module
2015-06-05 16:49:26 +02:00
David Wahlstrom
22dc932e22 dota2wins: fix typo and remove uneeded modules
urllib and json are part of the standard library.
2015-06-05 06:21:21 -07:00
gacekjk
f8c803e1cb GHz values added 2015-06-05 15:04:03 +02:00
enkore
4383a34446 mail: fix incorrect specification of settings 2015-06-05 13:25:25 +02:00
enkore
375bbb6962 parcel: fix missing required setting 'name' 2015-06-05 13:25:10 +02:00
enkore
0a66c57f3b pomodoro: fix missing required setting 'sound' 2015-06-05 13:25:00 +02:00
gacekjk
d723ae47e3 added cpu frequency module 2015-06-05 04:13:37 +02:00
David Wahlstrom
a1a4127eed dota2wins: add screename identifier
Add the ability for a user to define a screenname or for the name to be
dynamically discovered from the API.
2015-06-04 12:47:03 -07:00
David Wahlstrom
3ce9c13a8a dota2win: provide overrides for color
While the default values for the colors are probably reasonable, this
patch provides the user with a way to override them.  This will be
particularly useful for colorblind users, or people who just don't like
the defaults.
2015-06-04 12:05:49 -07:00
David Wahlstrom
4963ac9c96 dota2wins: update discription 2015-06-04 11:07:46 -07:00
David Wahlstrom
69b565ac7d dota2wins: another pep8 compliance fix 2015-06-04 10:27:44 -07:00
David Wahlstrom
ebbe033a66 dota2wins: pep8 compliance 2015-06-04 10:21:40 -07:00
David Wahlstrom
d1d3fe332f Dota 2 win rate module
A Dota 2 win/loss module that helps track the win:loss ratio of
recent games.
2015-06-04 10:09:35 -07:00
enkore
588e8dfc88 openstack_vms: add format option 2015-06-03 23:05:37 +02:00
David Wahlstrom
5d4e893d7b Truncat openstack_vms output some
The output for openstack_vms was a bit too verbose, causing it too
consume too much of the status bar.  This patch uses smaller words
that may be less accurate, but portray the same general idea.
2015-06-03 13:45:43 -07:00
enkore
14ad898f78 Merge pull request #209 from richese/updates
Updates module
2015-06-03 20:44:12 +02:00
Lukáš Mandák
3a69a5d0eb Fixed typo. 2015-06-03 20:06:16 +02:00
David Wahlstrom
efcf36205d Remove unused import 2015-06-03 10:08:42 -07:00
David Wahlstrom
33aba21cd3 Fix typo 2015-06-03 10:06:07 -07:00
David Wahlstrom
31b8d423b4 Remove defaults documentation, as they are auto-gen 2015-06-03 09:46:19 -07:00
Lukáš Mandák
96ef3656c8 Simplified pacman and cower backends.
Fixed bug in `aptget` backend.
2015-06-03 16:43:24 +02:00
David Wahlstrom
8b299233cc Add mock module and additional documentation
This patch updates conf.py's mock_modules to include the required
python-novaclient module to ensure we have green tests.  This patch
also updates the openstack_vms.py description to be more explicit
about it's requirements.
2015-06-03 07:35:28 -07:00
David Wahlstrom
9134880d55 pep8 compliance for openstacK_vms.py 2015-06-03 07:32:55 -07:00
Lukáš Mandák
3496a7bae5 Checks for internet connection before running backends. 2015-06-03 12:19:17 +02:00
David Wahlstrom
6a63df5a72 Initial commit of openstack_vms.py
This patch provides an module for tracking the number of active and
non-active VMs in a given openstack cluster.  When non-"ACTIVE" VMs
are above a given threshold, the text will (by default) change to
red, thus indicating an issue.  Otherwise, the text will be green.
2015-06-03 00:13:12 -07:00
Lukáš Mandák
0b507807bc Updated docs. 2015-06-02 23:22:49 +02:00
Lukáš Mandák
7d48a00b1e Updated docs. 2015-06-02 22:49:12 +02:00
Lukáš Mandák
b47f099dcf Added backend for apt-get. 2015-06-02 19:40:18 +02:00
enkore
ffaf67eb61 Update network.py 2015-06-01 13:41:45 +02:00
Lukáš Mandák
a42d78c5c5 Added Update indicator module with pacman and cower backends. 2015-06-01 12:55:47 +02:00
enkore
e395fe31f1 Fix #206 - {kbs} doesn't work if no other traffic formatter is used 2015-05-28 00:52:38 +02:00
Mikael Knutsson
0bf17aa833 Fixed an accidental replace in a bullet list 2015-05-27 19:13:53 +02:00
Mikael Knutsson
848077dbfe Fixed a typo in not_present_text 2015-05-27 19:13:53 +02:00
Mikael Knutsson
01a4a04fa1 The tests now complete successfully! 2015-05-27 19:13:53 +02:00
Mikael Knutsson
3e8e0b8b18 Added a mention of the new "ALL" battery_ident value which will summarise all batteries available 2015-05-27 19:13:53 +02:00
Mikael Knutsson
2251889855 Add support for multiple batteries 2015-05-27 19:13:53 +02:00
enkore
e50a893aa3 openvpn: removed offensive space 2015-05-27 19:13:44 +02:00
facetoe
b06785cea9 Add module for monitoring openvpn connections. 2015-05-21 07:38:03 +08:00
facetoe
5448e38d14 Use named tuple for return value 2015-05-20 21:51:26 +08:00
enkore
a610722b6d Update backlight.py 2015-05-19 10:45:18 +02:00
enkore
05c4dd366b backlight: typos 2015-05-19 10:44:54 +02:00
enkore
ce0504bea0 Merge pull request #204 from pandada8/add_scroll_for_backlight
Add scroll support for backlight
2015-05-19 10:43:53 +02:00
Pandada8
80b44c9c55 Use run_though_shell rather than subprocess 2015-05-08 01:01:47 +08:00
Pandada8
0a3241ac30 pep8 and docs 2015-05-07 11:00:38 +08:00
Pandada8
babda71f9d Fix typo :( 2015-05-07 10:40:49 +08:00
Pandada8
3c01f85455 Add xbacklight support 2015-05-07 10:05:52 +08:00
enkore
c3b6f095ff Merge pull request #198 from richese/clock
Remove dependency on `pytz` in clock module.
2015-04-28 12:17:51 +02:00
krypt-n
7b696d948d Fixes newline issue in shell module 2015-04-28 10:51:23 +02:00
Lukáš Mandák
b6080422da Updated docs. 2015-04-13 15:51:05 +02:00
Lukáš Mandák
e31c58f1ad Remove dependency on pytz and datetime modules. 2015-04-13 12:25:52 +02:00
enkore
23ecdeed88 Merge pull request #195 from simon04/doc
Harmonize documentation wrt formatters
2015-04-10 10:16:59 +02:00
Simon Legner
f4fdea377d Weather: provide today's min/max temperature
The corresponding formatters are `{min_temp}`, `{max_temp}`,
respectively.
2015-04-07 19:46:10 +02:00
Simon Legner
72386c1fd3 Harmonize documentation wrt formatters 2015-04-07 19:40:28 +02:00
enkore
e92e93f0e7 Merge pull request #194 from theswitch/feature/pulse-default-sinks
Detect default sink changes in pulseaudio
2015-04-05 17:01:29 +02:00
enkore
ba7ca67453 Merge pull request #193 from simon04/direct_weather
Remove `pywapi` dependency from weather module
2015-04-05 17:00:47 +02:00
theswitch
bd7ed9704f pulseaudio: subscribe to default sink changes 2015-04-05 16:54:16 +10:00
Simon Legner
1976a83569 Fix PEP8 errors in weather module 2015-04-04 13:21:00 +02:00
Simon Legner
e2d07f8262 Remove pywapi dependency from weather module
The python-weather-api seems currently unmaintained and provides a thin
wrapper around the XML structure output from weather.com
2015-04-04 13:21:00 +02:00
enkore
83c04fd245 Merge pull request #191 from Arvedui/load_better_critical_default
Better default for critical load limit
2015-04-03 15:24:02 +02:00
enkore
e5c128ea39 Merge pull request #190 from facetoe/master
Truncate long error messages.
2015-04-03 15:22:23 +02:00
Arvedui
04fa8b0458 add fallback to multiprocessing.cpu_count because os.cpu_count is not available before 3.4 2015-03-29 12:40:31 +02:00
Arvedui
b353b5adc9 use os.cpu_count instead of the multiprocessing one 2015-03-29 12:36:10 +02:00
Arvedui
21ce8db120 adjusted docs 2015-03-29 12:24:09 +02:00
Arvedui
d73be0911e improve default for critical_limit in the load module 2015-03-29 12:21:51 +02:00
facetoe
3146b2a567 Add max_error_len to Github module. 2015-03-28 19:24:41 +08:00