Kenny Keslar
693d2ebdb7
Catch exceptions in button handlers
2016-03-02 15:57:57 -05:00
enkore
7117df6fb2
Display exception class name (in-line exception display)
...
cf #322
2016-02-16 13:40:30 +01:00
enkore
58ca67109c
Change default mode to standalone=True
2016-02-12 14:12:43 +01:00
enkore
2890f942f3
configuration.rst: update example callbacks
2016-02-02 16:01:28 +01:00
enkore
dcda1bb3a4
Fix initialization error if standalone is False
...
Does anybody even use this scenario anymore? We could remove quite some
code if we only supported standalone operation.
2016-02-02 15:47:00 +01:00
enkore
9759d6eea5
Revert "Lift restriction that "run" cannot be used as a callback"
...
This reverts commit d018be872a
.
2016-02-01 17:09:47 +01:00
enkore
d018be872a
Lift restriction that "run" cannot be used as a callback
2016-02-01 12:18:03 +01:00
enkore
739c595ef0
Fix is_method_of (cf #310 ), add regression test case
2016-01-28 20:34:53 +01:00
enkore
2aeda9c5e3
Fix single string case & docs
2016-01-27 20:15:59 +01:00
enkore
dec534ce81
Fix errorneous recursive replace mishap
2016-01-27 20:02:51 +01:00
enkore
612b8b07eb
Update modules to a7583a9
...
Not updated for various reasons:
clock,
dpms,
gpu_temp,
load,
mail,
mem_bar,
modsde,
net_speed,
pianobar,
pulseaudio,
regex [no named formatters],
runwatch,
shell,
solaar,
temp,
text,
updates,
weather,
whosonlocation,
xkblayout,
zabbix
This might break something: I can't test all these modules. If it does,
file a bug / open a PR / send me a note.
2016-01-27 19:53:33 +01:00
enkore
a7583a9786
Implement #300
2016-01-27 19:31:12 +01:00
enkore
aed169de4d
Implement decided resolution of #304
...
- Remove self for normal callables
- Retain self for methods (of course)
- Add decorator to retrieve self for special callbacks that need it
(Yes, the example is kinda stupid and would be unnecessary with #300 )
2016-01-27 19:07:59 +01:00
Maxi Padulo
f12d1f9d48
Fix handler not executing external cmd ( #301 )
...
Wrong name on function call was raising AttributeError
exception disrutping the code execution.
2016-01-12 13:03:50 +01:00
Nuno Cardoso
87c01278f7
Added double click support
2016-01-03 16:43:29 +01:00
Lukáš Mandák
6d211f823c
Added options to change logfile and internet check server.
2015-11-28 15:42:26 +01:00
Jan Oliver Oelerich
e78501a0cc
Update desktop.py
...
Fixed syntax error.
2015-10-25 20:41:42 +01:00
enkore
4d24b17e2b
Fix crash on import with desktop notifications when python-gobject is available, but no notification daemon is running.
2015-10-25 20:30:36 +01:00
Lukáš Mandák
b0e914d4e9
Module: Updated docstring for on_click
method.
2015-10-03 11:20:16 +02:00
Lukáš Mandák
081bd329f9
Changed checks for command
attribute in run_through_shell
and execute
.
2015-10-03 10:14:29 +02:00
Lukáš Mandák
2ef74ded79
Replace regular 'split' to 'shlex.split'.
2015-09-29 12:47:32 +02:00
Lukáš Mandák
68d11b2f81
Module: Log first then let bad things happen. :)
2015-09-25 19:37:53 +02:00
Lukáš Mandák
6d3c7eddc8
Module: More detailed logs for clickevents as suggested by @teto in #231 .
2015-09-25 19:12:05 +02:00
Lukáš Mandák
4aa6b2a73c
Docs: Updated docstring of run_through_shell
.
2015-09-25 18:47:54 +02:00
Lukáš Mandák
30b73fe6d6
SettingsBase: Fixed logging for modules outside of i3pystatus directory i.e. modules defined directly in the config file.
2015-09-25 18:17:54 +02:00
Lukáš Mandák
d07168beb7
Module: Allow passing of arguments to callable callbacks.
2015-09-25 13:58:08 +02:00
Lukáš Mandák
32ab77c203
Module: External programs are launched in detached mode.
2015-09-25 13:57:09 +02:00
Lukáš Mandák
97e2ad7bba
Fixed detached mode of execute
and updated its docstring.
2015-09-25 13:55:56 +02:00
Lukáš Mandák
4bfe04dab6
Module: Clickevents now do not wait for commands output. Fix for #254 .
2015-09-22 10:35:42 +02:00
Lukáš Mandák
375b77178d
Renamed 'run_in_background' to 'execute'.
2015-09-21 23:09:19 +02:00
Lukáš Mandák
6f2c8f2e40
Added run_in_background
function.
2015-07-14 16:14:29 +02: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
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
7df811b9a1
Add callbacks chapter
2015-06-17 18:11:40 +02:00
enkore
dee25535e7
Fix some warning from some glib-thing.
2015-06-17 14:07:43 +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
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