Commit Graph

723 Commits

Author SHA1 Message Date
Aaron Fordham
e939d54eaf Adding moon phase module 2015-09-10 23:41:04 +00:00
Aaron Fordham
ae8a57afdc Adding moon phase module 2015-09-10 12:05:29 +00:00
enkore
73b6d96e20 Merge pull request #241 from Arvedui/format_param_shell
Add format parameter to shell module
2015-09-10 12:59:45 +02:00
Arvedui
97ea1f76d3 fix docs build error 2015-09-06 14:43:48 +02:00
Arvedui
05a9cd551e fix docs code discrepancy and error reporting with non empty format strings 2015-09-06 14:01:42 +02:00
Arvedui
2a432c6bb2 add format parameter to shell module 2015-09-06 13:47:12 +02:00
Raphael Scholer
4823d56531 cmus - Use #fffff as default text color
This is the default for most modules.
2015-08-19 18:07:42 +02:00
Raphael Scholer
aaf8eb38ea cmus - Text can now be a different color, when cmus is not running 2015-08-19 18:07:42 +02:00
Raphael Scholer
2eb0abf596 cmus - Make expected result in Cmus.run clearer 2015-08-19 18:07:29 +02:00
Raphael Scholer
1f97408709 cmus - Allow changing of output when cmus is not running
This closes enkore/i3pystatus#226
2015-08-19 18:04:03 +02:00
Raphael Scholer
2b12fb6fe7 cmus - Expose status output mapping as a setting 2015-08-19 07:31:30 +02:00
Raphael Scholer
e979e28aec cmus - One line per from ... import 2015-08-19 07:14:49 +02:00
Raphael Scholer
a1f2636c3c cmus - Make Cmus.run() more pythonic
- Remove duplicate declaration of self.output
- Remove unneccesary stripping of artist and title information. This
  is take care of in the information gathering functions/methods.
- Group code into sections
- Make exit path more obvious
- Make retrival of filename more obvious
- Use more obvious variable names
2015-08-19 06:42:02 +02:00
Raphael Scholer
37c30f645d cmus - Make Cmus._query_cmus more pythonic
- Use string.partition instead of excessive slicing
- Use splitlines instead of split('\n'). This also reduces the times the
  for-loop is run.
2015-08-19 06:15:44 +02:00
Raphael Scholer
e943831b12 cmus - Remove unused class property 2015-08-19 06:00:07 +02:00
Raphael Scholer
6996c0b575 cmus - Update settings information
- Remove duplicate information (available formatters are also listed in
  docstriong)
- Add description for 'color' setting
2015-08-19 05:55:11 +02:00
Raphael Scholer
502000a467 cmus - Simplify extraction of artist and title information
The "fallback" did exactly what the preceeding code did.
2015-08-19 05:28:56 +02:00
Raphael Scholer
5583324c13 cmus - Use run_through_shell() 2015-08-18 21:21:16 +02:00
Raphael Scholer
0daf4ea0c1 cmus - Remove superflous empty line 2015-08-18 21:12:17 +02:00
Raphael Scholer
f93dfcde60 cmus - Replace double quote with single quote 2015-08-18 18:01:50 +02:00
enkore
fb8052ceb5 dota2wins: doc 2015-08-17 10:48:55 +02:00
enkore
5c6cb5e862 Merge pull request #236 from ismaelpuerto/master
Add module for view and change keyboard layout
2015-08-17 10:44:08 +02:00
enkore
2115c26c73 Merge pull request #235 from plumps/adding-lowbattery-command
added the alert_command option
2015-08-17 10:38:32 +02:00
enkore
50d396d761 Merge pull request #230 from SyxbEaEQ2/uptime_format
Added proper formatter for uptime module
2015-08-17 10:37:25 +02:00
enkore
3586dce9be Merge pull request #229 from opatut/dota2win-formatting
dota2win: allow formatting of win percentage by passing it as float
2015-08-17 10:36:56 +02:00
plumps
d1e3ee701a small typo 2015-08-14 11:53:13 +02:00
plumps
873de77294 little typo in critical_level 2015-08-14 11:48:35 +02:00
plumps
f6d30ab093 changed alert_command to critical_level_command
this change is made to differentiate the low-energy from the critical
level one better.

new options:
- critical_level_command="<some command>"
- critical_level_percentage=int
2015-08-14 11:45:56 +02:00
Ismael Puerto
793b1be032 fix commit e85425c 2015-08-12 16:15:06 +02:00
Ismael Puerto
097c42b5a8 Add module for view and change keyboard layout 2015-08-12 14:24:02 +02:00
plumps
f404874767 added the alert_command option
running a shell command before the battery is completely discharged
2015-08-10 18:41:49 +02:00
SyxbEaEQ2
9dea4258a4 Added proper formatter for uptime module 2015-07-24 14:52:43 +02:00
Paul Bienkowski
bea95ab5e4 dota2win: allow formatting of win percentage by passing it as float, not preformatted string
See example format on how to do that.
2015-07-21 17:42:22 +02:00
Paul Bienkowski
f81d903480 dota2wins: allow finding steam ID by username 2015-07-21 17:40:44 +02:00
Sergey Rublev
fe1755835d Added AnyBar widget 2015-07-06 23:28:10 +06:00
Lukáš Mandák
46794200fa StandaloneIO: Change all static and class methods to normal methods. 2015-06-22 17:34:10 +02:00
Lukáš Mandák
a63d7fe4d8 StandaloneIO: Remove unused variable from refresh_signal_handler. 2015-06-22 13:06:32 +02:00
Lukáš Mandák
3a33c8131b StandaloneIO: Added documentation for new methods. 2015-06-22 13:00:41 +02:00
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