Lukáš Mandák
8cca39bb1a
StandaloneIO: Modules with above average intervals are refreshed in their own threads. This should prevent freezing of the bar caused by running all modules.
2015-06-22 12:27:58 +02:00
Lukáš Mandák
ba01a7af44
Click events: Modules output is udated and status line is refreshed after a valid click event callback is executed.
2015-06-22 11:43:52 +02:00
Lukáš Mandák
7dd99604be
StandaloneIO: Responds to SIGUSR1 signal by refreshing outputs of all modules.
2015-06-22 11:32:46 +02:00
Lukáš Mandák
c042be12ed
Module: on_click
now returns True if a valid click event callback was found and executed, False otherwise.
2015-06-22 11:07:23 +02:00
Lukáš Mandák
fff0444151
Module: Fixed and documented 'text_to_pango' method.
2015-06-22 11:04:51 +02:00
enkore
14b35c6081
Fix failing test, therefore fixing #89
2015-06-21 20:24:22 +02:00
Lukáš Mandák
b501d22ad9
Moved hints
documentation to Configuration section.
...
Added a few basic examples.
2015-06-19 22:27:16 +02:00
Lukáš Mandák
d802c7d3de
Merge branch 'Master' into hints
...
# Conflicts:
# i3pystatus/core/modules.py
2015-06-18 21:05:54 +02:00
Lukáš Mandák
0267454557
Module: Add hyperlinks to hints docstring.
2015-06-18 20:39:28 +02:00
enkore
394e80ad4e
Some minor docstuff ; functionally equivalent
2015-06-17 18:11:49 +02:00
enkore
7df811b9a1
Add callbacks chapter
2015-06-17 18:11:40 +02:00
enkore
66b568afc6
Fix trailing whitespace
2015-06-17 15:55:33 +02:00
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
facetoe
2701a22db4
Add method to truncate long error messages.
2015-03-28 19:10:13 +08:00
David Garcia Quintas
f81841c722
Fixed processing of dynamic_colors settings, previously ignored.
2015-03-22 14:30:29 -07:00
enkore
ab4bb9af20
Merge pull request #188 from facetoe/master
...
Truncate error message if it is too long.
2015-03-21 15:56:00 +01:00
facetoe
07b0244dd9
Merge https://github.com/enkore/i3pystatus
2015-03-21 20:17:24 +08:00
facetoe
e1edb1a9d8
Truncate error message if it is too long.
2015-03-21 20:15:33 +08:00
tyjak
ab25a1b6eb
Merge remote-tracking branch 'upstream/master'
2015-03-16 21:43:45 +01:00
tyjak
09f6e27a7e
fix output format
2015-03-16 21:32:03 +01:00
enkore
0182372d92
Merge pull request #178 from richese/fixes
...
Fixes
2015-03-16 16:03:20 +01:00
enkore
54d813877c
Merge pull request #180 from facetoe/network_fix
...
Fixed bug that prevented color_up being shown if the user is not using network_traffic
2015-03-16 16:02:20 +01:00
enkore
d37eb9e890
Merge pull request #186 from facetoe/master
...
Remove 'u' prefix from unicode strings
2015-03-16 16:01:00 +01:00
facetoe
16b3799b91
Remove 'u' prefix from unicode strings as it is no longer required in Python3
2015-03-16 19:45:50 +08:00
Arvedui
194fc29e02
readded default intervall 1 but in the right way this time
2015-03-12 20:42:15 +01:00
facetoe
4209d7046c
Fixed bug that prevented color_up being shown if the user is not using network_traffic.
2015-03-08 08:38:08 +08:00
tyjak
c2592e9272
Update network.py
2015-03-07 21:58:01 +01:00
Lukáš Mandák
013b15ffd4
Fixed dbus error when not using player autodetection.
2015-03-07 12:47:42 +01:00
Lukáš Mandák
efd1c5f09f
fixed #177
2015-03-07 12:47:20 +01:00
Arvedui
6dbc2c78e5
remove the module specific and hard coded interval in cpu_usage
2015-03-01 14:54:12 +01:00
enkore
22b5abf899
Merge pull request #172 from Arvedui/mpd_truncation_improvment
...
Mpd truncation improvement
2015-02-23 20:57:39 +01:00
enkore
aadabc1a55
Merge pull request #171 from ixjlyons/disk-urgent
...
Disk module urgent output
2015-02-23 20:57:22 +01:00
enkore
ee56b48e2d
Merge pull request #170 from gacekjk/master
...
added alert temperature handling
2015-02-23 20:56:19 +01:00
Arvedui
787e8d2623
fixed build failure
2015-02-22 15:03:32 +01:00
Arvedui
68813026e6
add functionalaty for deactivate truncation in mpd module
2015-02-22 14:54:01 +01:00
Arvedui
d0692798b7
fix a documentation issue
2015-02-22 14:29:48 +01:00
Arvedui
2bcef67c83
some changes to prevent recomputation of the output string if no truncation is done
2015-02-22 14:17:03 +01:00
Arvedui
87b57ce838
some clarification in docs about the truncation order
2015-02-22 14:14:58 +01:00
Arvedui
cceb032576
rename text_len to max_field_len, add max_len parameter and some logic to truncate certain fields if output len exceeds max_len
2015-02-22 14:10:36 +01:00
Kenneth Lyons
912be61900
Output should not be urgent if available space is greater than the critical limit.
2015-02-21 16:53:41 -08:00
gacekjk
40a9291cef
added alert temperature handling
2015-02-21 22:21:52 +01:00
facetoe
cb8f4225bd
Fixed bug that prevented user-defined keyring being used.
2015-02-16 21:09:59 +08:00
facetoe
c051e01959
Added documentation of keyring feature.
2015-02-14 10:40:58 +08:00
facetoe
61a8669eca
Removed POC NetrcBackend.
2015-02-14 10:07:30 +08:00
facetoe
7fa5c10787
Added keyring_backend to the settings tuple.
2015-02-13 19:53:08 +08:00
David Foucher
5432a9faa1
synchro
...
Merge branch 'master' of github.com:tyjak/i3pystatus
2015-02-09 22:55:38 +01:00
David Foucher
b6f6eeaf36
Add option to choose bitcoin symbol
2015-02-09 22:54:11 +01:00
tyjak
a28f29cf8f
format wifi percentage
2015-02-08 14:34:04 +01:00
David Foucher
7d8ebb948f
Better percentage format
2015-02-07 00:06:09 +01:00
facetoe
9324f06a3c
Added keyring_backend variable.
2015-02-01 09:31:13 +08:00
facetoe
887c45119b
Look for protected settings that are in the required tuple.
2015-02-01 09:15:26 +08:00
facetoe
f95066903e
Merge https://github.com/enkore/i3pystatus into credentials
2015-02-01 08:29:23 +08:00
Matus Telgarsky
c71fecdf36
util::make_graph pep8... (again, sorry)
2015-01-28 19:55:32 -05:00
Matus Telgarsky
ac2b494401
util::make_graph lower_limit parameter
...
None is now a choice for lower_limit and upper_limit as well, so that
the graph can scale as before.
For cpu_usage_graph and network, rather than exposing lower_limit
in the interface, 0.0 is used as a default, since it is already
used implicitly when choosing colors.
2015-01-28 19:48:16 -05:00
Matus Telgarsky
82db7a87a2
more braille styles (ideas from drawille)
...
added 'braille-peak' and 'braille-snake'. 'braille-peak'
renders only the top point, and 'braille-snake' fills some in.
I should have stressed earlier that I only got the braille drawing ideas
after coming across drawille ( https://github.com/asciimoo/drawille ).
2015-01-28 16:54:42 -05:00
Matus Telgarsky
117a2acfff
braille graphs: pep8 fixes
2015-01-27 15:34:05 -05:00
Matus Telgarsky
49d2f3bb0a
braille graph option
2015-01-27 15:10:26 -05:00
Matus Telgarsky
5865995d0f
simplify util::make_graph
...
rather than appending the upper limit, use it as the maximum.
In the process fixes a display bug when extent == 0,
and simplifies the addition of other drawing styles (which need
not also work around this values logic).
2015-01-27 13:42:57 -05:00
facetoe
b0d5fdba75
Added example custom keyring backend.
2015-01-25 20:26:29 +08:00
facetoe
215b85e431
Added prototype support for custom keyring backends.
2015-01-25 20:07:37 +08:00
facetoe
bec2674d38
Added prototype for protected settings.
2015-01-25 14:33:04 +08:00
facetoe
d18988827f
Documented dependency on beautifulsoup4.
2015-01-20 08:29:24 +08:00
facetoe
fc76b543da
Added whosonlocation module
2015-01-20 08:22:31 +08:00
facetoe
e00a25aebe
Document dependency on requests module.
2015-01-20 08:22:31 +08:00
facetoe
97e8e8346c
Added method to open users mailbox.
2015-01-20 08:22:31 +08:00
facetoe
37c70634a8
Prevent webrowser.open() writing to stdout when opening link.
2015-01-20 08:22:31 +08:00
facetoe
05349256de
Added Github module.
2015-01-20 08:22:31 +08:00
facetoe
a40ba18272
Allow users to scroll through interfaces.
2015-01-20 08:22:31 +08:00
facetoe
d3e8fe9b6a
Don't require importing psutil unless using the functionality it offers
2015-01-20 08:22:31 +08:00
facetoe
2999b90b22
Don't import basiciw unless using the functionality it offers.
2015-01-20 08:22:31 +08:00
Lukáš Mandák
f726300ca5
Fixed freezing on mouse events when player is not running.
...
Fixed color when player is not running.
2015-01-18 19:51:55 +01:00
Lukáš Mandák
877233ffab
Removed 'deadbeef' module since it had mpris plugin. *facepalm*
2015-01-18 18:37:22 +01:00
Lukáš Mandák
9b2591018c
Updated 'now_playing' module:
...
- Added custom format and color, when no player is running.
- Make a difference between DBus error and no players found.
- Exdended try-cath for DBus errors.
- Changed player method calls according to docs [1] since my player did not recognize them.
[1] http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#interfaces-and-methods
2015-01-18 18:24:35 +01:00
Lukáš Mandák
efcf8c8610
Updated 'clock' module to change locale only if necessary.
2015-01-18 11:59:05 +01:00
Lukáš Mandák
f8a7a86fab
Reverted changes in 'pulseaudio' module.
2015-01-18 11:36:35 +01:00
Lukáš Mandák
e2c709481c
Fixed variable name.
2015-01-17 19:59:20 +01:00
Lukáš Mandák
6e7c225269
Fixed 'clock' module to properly format locale specific formats.
2015-01-17 19:30:49 +01:00
Lukáš Mandák
1bacaa1cf5
Updated 'pulseaudio' module to use pactl instead of amixer.
2015-01-17 19:09:38 +01:00
Lukáš Mandák
483d5a03fc
Added 'deadbeef' module.
2015-01-17 19:07:31 +01:00
Matthieu Coudron
a26d20dcd2
Merge branch 'master' of https://github.com/enkore/i3pystatus into multiple_mail_accounts and removal of some old comments
2015-01-08 23:16:55 +01:00
enkore
b016eedb87
Merge pull request #159 from azmd/depleted-battery
...
Add support for depleted batteries
2015-01-08 00:36:13 +01:00
enkore
0ac3c54aa1
Merge pull request #157 from cganas/master
...
Updated spotify module to check for metadata on start.
2015-01-08 00:35:51 +01:00
Gordon Schulz
c6c7e162b3
Add support for depleted batteries
...
This commit adds support for detecting depleted (empty) batteries.
Introduces new 'Depleted' battery status and a 'DPL' status mapping.
2015-01-06 12:35:45 +01:00
Matthieu Coudron
b9e23b18a7
Add the possibility to display per backend unread mail along with the total number of unread mails (default). The displayed backend can be set via callbacks (on mousewheel events by default)
2015-01-06 00:41:35 +01:00
Matthieu Coudron
ff2794fa3d
WIP
2015-01-05 19:46:32 +01:00
Christopher Ganas
404c9ea348
Updated spotify module to check for metadata on start.
2015-01-04 16:07:25 -05:00
facetoe
8425db8d8d
Remove NetUtil class, don't inherit from object, slight refactoring.
2015-01-04 10:46:15 +08:00
facetoe
a9116fa592
Update docs
2015-01-03 21:53:26 +08:00
facetoe
d84b1675a9
Centralize network related functionality under one module.
2015-01-03 17:29:05 +08:00
facetoe
9928322bd6
Cycle available interfaces on click
2015-01-03 10:59:27 +08:00
facetoe
2c8834d775
Fixed incorrect default
2015-01-01 17:00:44 +08:00
Matthieu Coudron
c5933a3b26
This commit adds a basic test to check callbacks work.
...
This can also serve as an exemple.
2014-12-21 13:31:40 +01:00
Matthieu Coudron
12546736a6
Fix in documentation
2014-12-20 15:46:34 +01:00
Matthieu Coudron
d31cc380ef
Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 .
...
This commit removes and replaces all the old methods 'on_*' by settings
with the same name. The old methods were renamed into more explicit names that can be used for the callbacks like "next_song","mute" etc...
For instance, you can test with:
status.register("clock",
format=[
("Format 0",'Europe/London'),
("%a %-d Format 1",'Europe/Dublin'),
"%a %-d %b %X format 2",
("%a %-d %b %X format 3", 'Europe/Paris'),
],
on_leftclick= ["urxvtc"] , # launch urxvtc on left click
on_rightclick= ["scroll_format", 2] , # update format by steps of 2
log_level=logging.DEBUG,
)
This way much code could be removed from other modules, though I did it only for the clock module here.
2014-12-20 15:30:41 +01:00
Matthieu Coudron
98e46ac3d6
Updated alsa & clock modules with new mechanism
2014-12-19 22:04:49 +01:00
Matthieu Coudron
14c0528be5
This commit introduces a skeleton that allows personalized callbacks in
...
a backwards compatible way. Settings 'on_lclick','on_rclick',
'on_scrollup','on_scrolldown' are inherited by all modules.
These parameters should be a string. Then when a matching action is
detected (ie mouseclick, scrolling), the module check if this string
corresponds to a:
1/ python callable
2/ module method,
In cases 1 and 2, it calls the python function with the module as the
first parameter. Otherwise it considers the string is an external command and launches it via run_through_shell
2014-12-19 18:52:15 +01:00
Matthieu Coudron
a480701ee6
Added doc for unread method in mail/__init__/py + make sure that db is closed before deleting the notmuch db object
2014-12-19 14:31:10 +01:00
Matthieu Coudron
cb80f133d7
Simple fix for notmuch database not in sync
2014-12-18 22:02:27 +01:00
Matthieu Coudron
9e3f128a15
This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now).
...
Also adds a test for the function run_through_shell
2014-12-18 18:42:58 +01:00
Matthieu Coudron
69c1cd6460
Various pep8 and comments removal + converted shell module to use run_through_shell command
2014-12-18 00:26:24 +01:00
Matthieu Coudron
bc15eb4e6b
i3pystatus creates a logger that can be imported via import i3pystatus.logger . Thus when modules enable the 'enable_log' setting, it should log i3pystatus errors to a file called '.i3pystatus-<pid>'. This commit only solves the case when email_client was called in the email module and would output things into stderr/stdout.
2014-12-17 23:39:10 +01:00
Matthieu Coudron
f8a5bc716f
Revert "Fixed indentation in order to remove pep8 errors"
...
This reverts commit b37c7e28f8
. Error was
apparently due to a bug in pep8 <= 1.5.6
2014-12-17 21:55:14 +01:00
Matthieu Coudron
cb25cb5fb3
Fix error generated by sphinx-build complaining of no end for the list
2014-12-17 18:18:08 +01:00
Matthieu Coudron
b37c7e28f8
Fixed indentation in order to remove pep8 errors
2014-12-17 16:36:50 +01:00
Matthieu Coudron
f440322b36
Settings will be inherited between modules
2014-12-17 00:48:49 +01:00
enkore
9de7640fcc
Merge pull request #145 from rampage644/features/pomodoro_cmus
...
Features/pomodoro cmus
2014-12-11 14:07:05 +01:00
Sergei Turukin
8913450ac2
PEP8 fix, hope wont' break rST parser as well
2014-12-11 13:54:31 +02:00
Sergei Turukin
2a5c0e77a0
Insert blank line to make rST happy
2014-12-11 13:29:14 +02:00
Sergei Turukin
eab6f77bd6
PEP8 fix
2014-12-10 19:19:11 +02:00
Sergei Turukin
362c3ec83e
Fix typos
2014-12-10 18:26:15 +02:00
Sergei Turukin
d0f76a2d97
PEP8 fix
2014-12-10 18:25:32 +02:00
Sergei Turukin
105e92b5aa
Update format description for pomodoro
module
2014-12-10 18:25:15 +02:00
Sergei Turukin
f263cb55e8
Update format string description
2014-12-10 18:23:25 +02:00
Sergei Turukin
6593c580ae
Improve doc for available formatters for cmus
module
2014-12-10 18:20:51 +02:00
Sergei Turukin
b89b1c783f
PEP8 fixes
2014-12-09 16:56:35 +02:00
Sergei Turukin
45c94bd5cd
Make format configurable, fix bug, progess output
2014-12-09 16:49:27 +02:00
Sergei Turukin
a1c66f33b5
Update heuristics for getting artist/title from filename
2014-12-09 16:48:14 +02:00
enkore
4574fd5c40
weather: fix reST
2014-12-02 12:14:50 +01:00
enkore
57fda43b4e
Add uname module
2014-11-25 22:35:15 +01:00
Alex Timmermann
c2cb417fca
fix volume percentage
2014-11-19 15:35:50 +01:00
Joaquin Ignacio Barotto
8c24f6f9de
Updated the docs
2014-11-15 11:36:05 +01:00
Joaquin Ignacio Barotto
441d143810
Aded 'keyboard_locks' module, to show CAPSLOCK, NUMLOCK and SCROLLLOCK status
2014-11-15 11:35:53 +01:00
enkore
1d9614fae7
Fix #141
2014-11-07 11:22:55 +01:00
enkore
3c751882d2
Merge pull request #140 from jlucchese/master
...
Add pianobar module
2014-11-07 11:10:29 +01:00
enkore
43e9b49396
Merge pull request #139 from Arvedui/mpd_text_len
...
mpd text length
2014-11-07 11:10:07 +01:00
Simon Legner
96d7b78e2d
network_traffic: do not hide by default down iface
2014-11-04 08:22:46 +01:00
Júlio Rieger Lucchese
97c9cb7e80
Add optional event_cmd bash file into the docs
2014-11-02 15:23:00 -02:00
Júlio Rieger Lucchese
4fe4408736
Fix blank lines and whitespaces
2014-11-02 14:14:43 -02:00
Arvedui
38128eab31
fixed pep8 issue
2014-11-02 17:04:52 +01:00
Júlio Rieger Lucchese
4840362030
Add pianobar module
2014-11-02 13:21:04 -02:00
Arvedui
04eb15c330
added options text_len and truncate_fields to mpd module for taming insanly long artist, album and song names
2014-10-30 12:14:18 +01:00
Sergei Turukin
b1a7dba986
Fix module with no cmus
running
2014-10-30 11:59:18 +02:00
Simon Legner
9591de4461
network_traffic: allow to hide down interfaces
...
Interfaces which are down can be hidden or formatted differently.
The following options are added:
hide_down - whether to not display a interface which is down
format_down - format string if the interface is down (unless hide_down is set)
2014-10-30 08:23:00 +01:00
Sergei Turukin
b46c68ed50
Reset timer right on left click
2014-10-28 11:11:32 +02:00
enkore
58a3185921
Merge pull request #136 from rampage644/features/cmus
...
Add `cmus` module
2014-10-23 14:19:40 +02:00
enkore
23d4daa15f
Merge pull request #135 from rampage644/features/pomodoro
...
Pomodoro module
2014-10-23 14:19:02 +02:00
Sergei Turukin
9a83f7117e
Pep8 formatting
2014-10-23 14:38:09 +03:00
Sergei Turukin
1ca35c238e
Pep8 formatting
2014-10-23 14:35:06 +03:00
enkore
b263c66baf
Close #133
2014-10-23 12:25:40 +02:00
Sergei Turukin
2ae45ec1e7
Add cmus
module
...
Use `cmus-remote` to get info and send commands to `cmus`.
2014-10-22 18:30:40 +03:00
Sergei Turukin
c64e759b5a
Update docs
2014-10-22 18:26:20 +03:00
Sergei Turukin
e0cb834ae1
Add pomodoro
module.
...
Add _Pomodoro_ module. See http://en.wikipedia.org/wiki/Pomodoro_Technique
It uses `aplay` for playing alarm sound. It also uses `notify-send` utility
for nitification.
2014-10-22 18:26:07 +03:00
enkore
a2bb10443c
mimimi - 1.5.6 doesn't complain about that. interesting.
2014-10-14 17:40:16 +02:00
enkore
f18ee346c8
PEP 8 (I'm bored): pulseaudio
2014-10-14 16:53:09 +02:00
enkore
9e06145389
PEP 8 (I'm bored): core/util
2014-10-14 16:51:58 +02:00
enkore
b2b34ad81a
PEP 8 (I'm bored): core/modules
2014-10-14 16:50:40 +02:00
enkore
8db7b1d160
PEP 8 (I'm bored): core/io
2014-10-14 16:50:08 +02:00
enkore
3b3b716307
PEP 8 (I'm bored): mail.notmuchmail
2014-10-14 16:47:19 +02:00
enkore
2346d82ed8
PEP 8 (I'm bored): weather
2014-10-14 16:44:56 +02:00
enkore
d1725228d0
PEP 8 (I'm bored): uptime
2014-10-14 16:44:40 +02:00
enkore
ac58db5811
PEP 8 (I'm bored): text
2014-10-14 16:43:29 +02:00
enkore
f7d95a28a0
PEP 8 (I'm bored): shell
2014-10-14 16:43:15 +02:00
enkore
d782621696
PEP 8 (I'm bored): reddit
2014-10-14 16:43:02 +02:00
enkore
7b12be077d
PEP 8 (I'm bored): parcel
2014-10-14 16:41:27 +02:00
enkore
1d46cde704
PEP 8 (I'm bored): now_playing
2014-10-14 16:41:06 +02:00
enkore
45e0a13cf5
PEP 8 (I'm bored): network_traffic
2014-10-14 16:40:15 +02:00
enkore
a07539f126
PEP 8 (I'm bored): network
2014-10-14 16:38:36 +02:00
enkore
29a0278bc5
PEP 8 (I'm bored): mpd
2014-10-14 16:37:48 +02:00
enkore
c596f1b5f6
PEP 8 (I'm bored): mem
2014-10-14 16:37:04 +02:00
enkore
89fd73d9c0
PEP 8 (I'm bored): disk
2014-10-14 16:37:02 +02:00
enkore
69a62726f4
PEP 8 (I'm bored): cpu_usage_graph
2014-10-14 16:35:22 +02:00
enkore
54bae95804
PEP 8 (I'm bored): bitcoin
2014-10-14 16:35:15 +02:00
enkore
f6e910c114
PEP 8 (I'm bored): battery
2014-10-14 16:32:07 +02:00
enkore
146b952180
now_playing: hide_no_player option
2014-10-14 16:28:09 +02:00
enkore
7c6561c854
close #130
2014-10-12 18:13:59 +02:00
enkore
1fd3b748a5
...
2014-10-12 16:50:50 +02:00
facetoe
a5915a0999
Document how to switch focus to mail client on left click.
2014-10-12 21:50:52 +08:00
facetoe
c554244157
Merge https://github.com/enkore/i3pystatus into pulseaudio
...
Conflicts:
i3pystatus/pulseaudio/__init__.py
2014-10-12 19:36:52 +08:00
facetoe
556eed9fde
Added toggle mute/unmute on left click, increment/decrement volume on
...
scroll.
2014-10-12 19:30:21 +08:00
facetoe
27182f3196
Added optional volume_bar and colors.
2014-10-12 18:14:47 +08:00
enkore
b2adb09d03
Docfix
2014-10-12 11:36:12 +02:00
enkore
eeeb629e98
Nicer doc markup
2014-10-12 11:35:44 +02:00
enkore
ae1b9a8f8f
Merge pull request #126 from facetoe/vertical_bar
...
Vertical bar
2014-10-12 11:18:22 +02:00
facetoe
a789b31d6d
Added multi_colors option to MemBar.
2014-10-12 15:37:51 +08:00
facetoe
fbd852b79b
Modified CpuUsageBar to show either a vertical or horizontal bar.
2014-10-12 13:15:52 +08:00
facetoe
55810e1431
Added method to draw a vertical bar made of Unicode characters.
2014-10-12 12:10:03 +08:00
facetoe
296d26f432
Prevent division by zero errors.
2014-10-12 12:10:03 +08:00
enkore
9841cc65f8
Better.
2014-10-12 02:47:49 +02:00
enkore
344ad4647f
Moved all docs to sphinx. Nothing changes for module authors.
2014-10-12 01:32:29 +02:00
enkore
9fd557915c
Update util.py
2014-10-11 13:03:04 +02:00
facetoe
d14e7ddadc
Documented dependencies on the PyPI colour module.
2014-10-11 18:54:12 +08:00
facetoe
aa349c8ba9
Added module for graphing cpu usage.
2014-10-11 16:03:13 +08:00
facetoe
2e7df52394
Modified NetworkGraph to use new ColorRangeModule class.
2014-10-11 16:02:33 +08:00
facetoe
20363b9da0
Moved color code into it's own class that other classes can inherit
...
from.
2014-10-11 16:02:04 +08:00
facetoe
48821e34ca
Moved get_hex_color_range() from util.py to network_graph.py to prevent
...
breaking the build.
2014-10-11 14:52:08 +08:00
facetoe
856bc5cc24
Added module to draw a network graph in Unicode.
2014-10-11 14:43:00 +08:00
facetoe
a0d528f1d8
Added methods for retrieving network information to make the class
...
easier to extend.
2014-10-11 14:39:37 +08:00
facetoe
3901aa43f1
Added method to generate a list of hex color values between a start
...
color and end color.
2014-10-11 13:17:02 +08:00
facetoe
a77b06a25e
Added method for printing a graph of Unicode characters.
2014-10-06 19:23:32 +08:00
Frank Tackitt
16c6979ca9
Add color settings for muted/unmuted to pulseaudio plugin
2014-10-01 07:19:36 -07:00
enkore
5470d7460c
Fix #119
2014-09-18 15:59:51 +02:00
Tom X. Tobin
c8b4dc0466
Fix internet() test function
...
The change in commit 6989713
broke the internet() test function by
trying to access the DNS port of "www.google.de", causing it to always
return False, which in turn broke all modules calling it. We instead use
the actual domain name of Google's DNS server at IP "8.8.8.8".
2014-09-14 17:15:50 -04:00
Matthieu Coudron
f748f8a4d8
this commit fixes 2 problems:
...
-there was a trailing comma in the clock module that would interact badly with i3pystatus & i3bar; i3pystatus seeing the comma would generate the json ** full_text : ["13 september"] ** and then i3bar would only display the last module (one may have to check for i3bar robustness). resulted in having only the clock module displayed
-the 2nd problem was with the alsa module when setting the volume to a number <0 or > 100 then the pyalsa bindings would generate the following error in .xsession-errors
target_module.on_click(command["button"])↲
File "/home/teto/i3pystatus/i3pystatus/core/modules.py", line 31, in
on_click↲
self.on_upscroll()↲
File "/home/teto/i3pystatus/i3pystatus/alsa.py", line 95, in
on_upscroll↲
self.alsamixer.setvolume( vol + self.increment)↲
alsaaudio.ALSAAudioError: Volume must be between 0 and 100↲
2014-09-13 23:37:16 +02:00
enkore
806ee99e93
Merge pull request #115 from teto/scroll_time_formats
...
With this commit, it is possible to provide a list of formats for the
2014-09-13 17:36:05 +02:00
Matthieu Coudron
389124e5c4
This commit introduces the ability for i3pystatus clock to display the
...
time depending on different timezones. You can set the timezone as
described on the data linked on http://www.iana.org/time-zones .
For instance:
status.register('clock',
format=[("%a %X",'Europe/Dublin'),("%X",'Europe/Paris')]
)
2014-09-06 19:18:34 +02:00
Matthieu Coudron
f3c549bb24
With this commit, it is possible to provide a list of formats for the
...
clock module. You can cycle through these different formats with the
mousewheel. It is backward compatible.
2014-09-05 21:08:47 +02:00
enkore
749feb54cc
Merge pull request #116 from teto/alsa_mute_onclick
...
Right/left click will toggle mute status of alsa
2014-09-05 12:13:56 +02:00
Matthieu Coudron
7d2a7c2828
Right/left click will toggle mute status of alsa
2014-09-05 00:37:02 +02:00
Matthieu Coudron
f5520e220b
Mousewheel up will play next song, down will play previous song
2014-09-05 00:07:03 +02:00
enkore
73413efe4a
Merge pull request #111 from teto/mousewheel
...
i3 next branch send click events on mouse wheel up/down. This patch allo...
2014-09-04 14:01:08 +02:00
Matthieu Coudron
000bdc6978
i3 next branch send click events on mouse wheel up/down. This patch allows to change the alsa volume with the mousewheel when hovering the alsa indicator
2014-08-30 00:13:57 +02:00