Brenden Matthews
584d05d2ad
Add the -p/--pause command line option.
2009-10-03 14:26:39 -07:00
Pavel Labath
bfda285567
Make -d switch work again
...
-d was broken because fork-to-background was done after the update thread creation, so the
threads ended up in the wrong process. This delays the thread creation until after the fork.
2009-09-22 18:19:08 +02:00
Phil Sutter
cfccea4079
do not block when reading inotify_fd
...
Originally, I was experiencing sporadic lockups when reading inotify_fd;
which is strange, since it is protected by select(). This should fix it
despite of the original problem.
2009-09-20 19:04:45 +02:00
Phil Sutter
d45aa362b0
fixup for ncurses output
2009-09-20 13:52:46 +02:00
Phil Sutter
4823b1f428
drop duplicate code
2009-09-20 13:18:10 +02:00
Phil Sutter
3569ece513
minor indentation fixup
2009-09-20 13:16:43 +02:00
Phil Sutter
e391fa40a9
this was looking wrong
2009-09-20 13:16:43 +02:00
Phil Sutter
15e262a3ca
minor simplification of get_string_width_special()
2009-09-20 13:16:20 +02:00
Phil Sutter
2cb45085e0
simplify get_string_width() a bit
2009-09-20 13:12:56 +02:00
Phil Sutter
925ac2b7ba
read_tcp: get rid of heavy indenting
2009-09-15 23:16:35 +02:00
Pavel Labath
09c0bccf55
Move vi modelines closer to the beginning, so they're more likely to be actually used.
2009-09-12 12:50:51 +02:00
Pavel Labath
3736b141aa
Fix window width calculation when $lua returns newlines
...
I just hope it doesn't break anything.
2009-09-09 21:15:18 +02:00
Phil Sutter
d7c7f06aca
rework the update machinery to use callbacks
...
Besides improving performance when updating stuff, we ideally have no
text object specific code in update_stuff() anymore (aside some
leftovers).
The macros in construct_text_object() have gotten a bit crazier than
they were before:
* using CALLBACK(&func) instead of an INFO_* parameter to OBJ() will
make it add the given callback to the list of callbacks to be iterated
over at each update interval.
* BEWARE: the above assumes function pointer values to be > 0!
* This implicitly fixes a bug in the code: passing 0 as INFO_* value
led to selecting INFO_MAIL (1 << 0 == 1).
* Now it would select INFO_CPU (== 0), which got unused and therefore is
not a problem at all (the 0 value should be unused in enums anyway).
This needs some more work, then we should be able to drop the whole
INFO_* enum. Then CALLBACK() can die again and with it goes the ugly
casting stuff done to distinguish callbacks from INFO_* values.
2009-09-07 00:36:02 +02:00
Phil Sutter
5a3b7c074b
Rewrite hddtemp support for better scaling
...
Instead of connecting once for each object, have a central update
routine (limiting support to only a single hddtemp daemon to connect
to).
2009-09-06 21:53:53 +02:00
Phil Sutter
ff199355f6
outsource the whole template object machinery
2009-09-04 00:08:17 +02:00
Cesare Tirabassi
75ce3b259b
Fix if_running not working on linux when a top flavour is not running
2009-09-03 23:13:14 +02:00
Brenden Matthews
043cf686c6
Revert "Uhh..ansohus"
...
This reverts commit 9827726ae5
.
Or this.
2009-08-07 01:24:24 -06:00
Brenden Matthews
d7838b87bf
Revert "Merge branch 'master' of git.omp.am:/home/omp/git/conky"
...
This reverts commit d710ea8b9d
, reversing
changes made to 9827726ae5
.
Also didn't meant to push this.
2009-08-07 01:23:27 -06:00
Brenden Matthews
098e28598f
Revert "auesnthaeou"
...
This reverts commit 70adc04fc2
.
Oops, didn't mean to push this. I'll start a new branch now (so I don't
do this again...).
2009-08-07 01:21:56 -06:00
Brenden Matthews
70adc04fc2
auesnthaeou
2009-08-06 21:56:40 -06:00
Brenden Matthews
d710ea8b9d
Merge branch 'master' of git.omp.am:/home/omp/git/conky
...
Conflicts:
src/conky.h
2009-08-06 14:21:50 -06:00
Nikolas Garofil
157537fc30
Fix buildproblems introduced by 3f4127080e
. inet.h is used by read_tcp and timeout is renamed to prevent clashes with timeout in ncurses
2009-08-06 15:28:07 +02:00
Brenden Matthews
9827726ae5
Uhh..ansohus
2009-08-06 00:54:40 -06:00
Brenden Matthews
3f4127080e
Started on breaking up conky.c.
...
These changes will likely result in breakage, particularly with
different features enabled/disabled.
2009-08-05 16:46:51 -06:00
Brenden Matthews
c29301d02a
Move xdbe swap stuff into x11.c.
2009-08-05 15:41:56 -06:00
Brenden Matthews
4e88abde40
Finish c60209f6d0
.
2009-08-05 15:33:41 -06:00
Brenden Matthews
c60209f6d0
Swap Xdbe buffers when resizing window.
2009-08-05 15:21:59 -06:00
Brenden Matthews
2904720a58
Don't clear entire X window, just drawing area.
2009-08-05 14:40:53 -06:00
Brenden Matthews
7b93ad8071
Don't pass mouse clicks when window is desktop type.
2009-08-05 14:35:33 -06:00
Cesare Tirabassi
e16511be02
Set refresh period for the 5 days forecast to 3 and a half hours, in accordance to Exhibit B of EULA
2009-08-05 17:26:25 +02:00
Brenden Matthews
f10ffe07c4
Fix invalid call to close().
2009-08-04 23:06:13 -06:00
Brenden Matthews
fbf746e53c
Fix broken RSS code.
2009-08-04 22:56:19 -06:00
Nikolas Garofil
c99e092246
Gcc complains too much when build without X11 and NCurses
2009-08-04 22:13:06 +02:00
Nikolas Garofil
d69b3b56f0
Fix: reloading turned ncurses off
2009-08-04 13:46:59 +02:00
Brenden Matthews
aa142b0941
Revert "Compilation fix for weather stuff."
...
This reverts commit 63229dac63
.
2009-08-03 12:52:10 -06:00
Brenden Matthews
63229dac63
Compilation fix for weather stuff.
2009-08-03 12:48:52 -06:00
Brenden Matthews
05330f24a3
Merge branch 'master' of git.omp.am:/home/omp/git/conky
...
Conflicts:
src/conky.c
2009-08-03 12:41:07 -06:00
Brenden Matthews
51ddee12dd
Fix imlib2 context.
2009-08-03 12:39:44 -06:00
Cesare Tirabassi
2118fc5889
Merge branch 'master' into weather-forecast
2009-08-03 19:59:36 +02:00
Cesare Tirabassi
36ae626ab8
Add parser initialisation and cleanup
2009-08-03 19:58:21 +02:00
Nikolas Garofil
37e2bb471b
Support for in ncurses
2009-08-03 19:36:47 +02:00
Cesare Tirabassi
4fe70ad0e6
weather: change hardcoded constant 5 to FORECAST_DAYS macro
2009-08-03 11:49:26 +02:00
Cesare Tirabassi
14b7acdab6
Add weather_forecast object
2009-08-02 23:54:44 +02:00
Brenden Matthews
dbf3448031
Update conky_window Lua table when it changes.
2009-08-01 15:11:18 -06:00
Brenden Matthews
47b2869028
Code formatting.
2009-08-01 15:01:00 -06:00
Brenden Matthews
358a2b989e
Add lua_startup_hook.
2009-08-01 14:36:38 -06:00
Brenden Matthews
41aed41e35
Add lua_shutdown_hook.
2009-08-01 14:30:14 -06:00
Nikolas Garofil
44b82311b9
Added support for out_to_ncurses
...
All ERR()'s are renamed to NORM_ERR() and box to mbox so that they don't
clash with things in ncurses.h .
Ncurses is enabled by default when building conky but can be disabled with
--disable-ncurses .
At the moment configure doesn't check if ncurses is actually available.
I'm adding support for ncurses so that we can make as much things as possible
that are only available in X11 also available in console in the future.
2009-08-01 20:45:43 +02:00
Nikolas Garofil
763ae568a7
Fix reloading config after 7ff2a71aa0
2009-08-01 12:14:10 +02:00
Cesare Tirabassi
01e66c7f8c
Bug fix: make -X,--display actually work, improve error message if display not found
2009-08-01 09:34:21 +02:00