1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-10-02 15:09:07 +00:00
Commit Graph

2117 Commits

Author SHA1 Message Date
Nikolas Garofil
b98ebc90ee Internationalization support
This patch adds i18n-support with gettext, all translatable strings in the
code should be placed inside _() to make sure users see them in their own
language (I only did this for print_version() for now)
2010-10-31 00:02:02 +02:00
Pavel Labath
214ed0ac87 Add lock/unlock functions to lua::state 2010-10-30 23:54:13 +02:00
Nikolas Garofil
be9b62f0aa Show error when creating a empty udp package fails, this also fixes a g++ warning 2010-10-30 22:53:13 +02:00
Nikolas Garofil
33db46cef1 Fix building without Imlib2 2010-10-30 17:44:33 +02:00
Nikolas Garofil
89a8456495 Fix x11 check in cmake 2010-10-27 07:37:11 +02:00
Nikolas Garofil
11e5db2132 Fix memleak when there is no config available
The 'buf' string in current_config() got allocated but not deleted when
CRIT_ERR stops the program.
2010-10-24 17:57:58 +02:00
Kevin Lyles
56ddea77a8 Fixed foreground colors being semi-transparent
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-15 11:23:14 -07:00
Kevin Lyles
a251357f1d Fixed gradients to actually use both end colors
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-15 11:23:08 -07:00
Brenden Matthews
ca9acc13c0 C++ify some curl stuff. 2010-10-14 17:28:57 -07:00
Dan McGee
93c6baebb6 Enable use of HTTP cache headers in curl plugin
This will allow us to get 304 responses back from remote URLs that we are
grabbing using the curl, weather, and rss plugins. The first time we fetch a
resource, we will always get the full content, but from there on out we will
store any provided 'Etag' or 'Last-Modified' header, and submit these on the
next request. If we get a 304 response back, we won't have to do any work at
all.

This benefits both us (bandwidth and parsing savings) and remote URLs (we
actually make an attempt to not retrieve the same resource over and over
again).
2010-10-14 17:04:32 -07:00
Brenden Matthews
b06af986a8 Bulid fix for nvidia support.
See http://bugs.gentoo.org/show_bug.cgi?id=339971 for details.
2010-10-06 11:53:06 -07:00
Brenden Matthews
15006a1a41 Fix warning. 2010-10-05 13:22:27 -07:00
Brenden Matthews
d64b05b648 Build fix. 2010-10-05 13:21:36 -07:00
Brenden Matthews
6437804959 Allow method to pass execgraph arguments containing spaces. 2010-10-05 12:27:03 -07:00
Ben Kibbey
5a898d373e Abort curl transfers if they drop below 1000B/s for more than 60s.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-05 12:09:55 -07:00
Brenden Matthews
5b0dee741c Improve curl code. 2010-10-05 11:56:08 -07:00
Markus
c9cf08d9e9 Fix short_units for below kilo values.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-05 11:31:31 -07:00
Pavel Labath
1c785f2ab9 Remove obsolete config-file stuff, move slowly toward making conky functional again 2010-09-15 23:37:13 +02:00
Pavel Labath
9f7e696a85 Remove the $include variable
the way it is implemented now just wont work with the new config file. And i don't think that
many people used it anyway. Maybe add a replacement later?
2010-09-15 23:34:47 +02:00
Pavel Labath
d9d8506e0b Add a luaL_gsub wrapper to lua::state 2010-09-13 13:16:16 +02:00
Pavel Labath
22de36271d Build fix in smapi.cc 2010-09-13 11:49:44 +02:00
Pavel Labath
bad23c7b77 Remove the --for-scripts hack. Maybe add it later? 2010-09-12 16:43:43 +02:00
Pavel Labath
0fd23a6f7e Set CLOEXEC flag on the inotify file descriptor 2010-09-12 16:36:21 +02:00
Pavel Labath
eeb1a6a0d7 Properly load config file and print the default one
ps: the new implementation no longer requires fopencookie() and co.
2010-09-12 16:23:06 +02:00
Pavel Labath
e935a3d107 Call curl_global_cleanup() even in case of errors 2010-09-12 15:42:20 +02:00
Pavel Labath
bee7b9b99c Bugfix in own_window setting handler 2010-09-12 15:32:05 +02:00
Pavel Labath
8cb63b0c8b Update the default config file to match new syntax 2010-09-12 15:31:18 +02:00
Pavel Labath
c5e45008df Add a luaL_loadfile wrapper to lua::state 2010-09-12 14:53:06 +02:00
Pavel Labath
55282b64d8 Config file handling changes
- changed default config filenames, to avoid conflict with conky-1.x
- specifying "-" as config file reads from stdin
- if a user config file exists but is not readable, report an error instead of falling back to
  the system-wide config.
2010-09-12 14:01:34 +02:00
Pavel Labath
4426a8fa5b The --stdin-config param is kinda pointless, just use -c /dev/stdin 2010-09-12 13:50:47 +02:00
Pavel Labath
0a655c1ff6 Merge remote branch 'origin/master' into lua-config 2010-09-11 14:52:25 +02:00
Pavel Labath
eb06bb874c curl_global_init() is not needed here (anymore) 2010-09-11 14:51:08 +02:00
Pavel Labath
ef24f62412 Merge remote branch 'origin/master' into lua-config
Conflicts:
	src/conky.cc
2010-09-11 14:50:37 +02:00
Pavel Labath
a111356ea4 Make music_player_interval a lua setting 2010-09-11 14:45:19 +02:00
Pavel Labath
47d9a63dff Make update_interval{,_on_battery} lua settings 2010-09-11 14:25:19 +02:00
Brenden Matthews
2f9195bd56 When we have a failure in mail thread, sleep for a bit. 2010-09-09 10:55:34 -07:00
Brenden Matthews
d0a20850c8 Improve failure handling in mail threads.
When we have a failure in the mail thread, lookup the hostname again in
case the failure is due odd to DNS changes, or some other madness.
2010-09-09 10:55:24 -07:00
Pavel Labath
cd5e3f8fa0 Make font and xftalpha lua settings 2010-09-08 17:30:04 +02:00
Pavel Labath
9fc5b84a32 Make pop3 and imap lua settings 2010-09-07 17:39:36 +02:00
Pavel Labath
2978965368 Make total_run_times a lua setting 2010-08-31 11:49:37 +02:00
Pavel Labath
5e6a5fdb3c htons() is not needed when using getaddrinfo (sf.net #3055612)
patch sumbitted by Ben Kibbey
2010-08-30 12:06:50 +02:00
Pavel Labath
ef2b39a97f Make text_buffer_size a lua setting 2010-08-29 23:50:32 +02:00
Pavel Labath
a9893684ac Make max_user_text a lua setting 2010-08-29 20:01:05 +02:00
Pavel Labath
6364bbd380 Make lua_{draw_hook_{pre,post},{shutdown,startup}_hook} lua settings 2010-08-29 15:56:15 +02:00
Pavel Labath
26cb39f67c Make lua_load a lua setting 2010-08-29 15:45:38 +02:00
Pavel Labath
b1891474e7 Make max_port_monitor_connections a lua setting 2010-08-29 15:19:46 +02:00
Pavel Labath
eedb5241f8 Make imlib_cache_{size,flush_interval} lua settings 2010-08-29 14:31:22 +02:00
Pavel Labath
77d4a55dcc Fix segfault in ccurl_thread.cc
curl_global_init() is not thread-safe, it must be called at the start of main()
2010-08-29 13:42:07 +02:00
Pavel Labath
ebd8a6d9fa Merge remote branch 'origin/master' into lua-config 2010-08-28 12:28:37 +02:00
Pavel Labath
0d9052b83b Add modelines to imlib.h 2010-08-28 12:26:12 +02:00
Pavel Labath
0ac1c21ece Avoid compiler warning 2010-08-27 16:24:26 +02:00
Pavel Labath
71e6a23729 Merge remote branch 'origin/master' into lua-config 2010-08-27 14:56:55 +02:00
Pavel Labath
b5f4c0f7e9 Update modelines on imlib.cc 2010-08-27 14:20:26 +02:00
Pavel Labath
68d0a223fb Make sensor_device a lua setting
I haven't tested if this compiles, but I couldn't have broken much, because before this it
definitely didn't compile.
2010-08-27 13:52:21 +02:00
Pavel Labath
ce49490144 Make mail_spool a lua setting 2010-08-26 23:07:21 +02:00
Pavel Labath
976e0eddf5 Merge remote branch 'origin/master' into lua-config
Conflicts:
	src/conky.cc
2010-08-26 22:38:55 +02:00
Pavel Labath
df6db63972 c++-ify variable_substitute() 2010-08-26 20:04:46 +02:00
Brenden Matthews
dee932d83b Fix crash in mail stuff due to bad free(). 2010-08-26 10:34:34 -07:00
Pavel Labath
ed70663b99 Make minimum_{width,height} lua settings 2010-08-26 17:40:53 +02:00
Pavel Labath
467abd2edf Make default_gauge_{width,height} lua settings 2010-08-26 17:26:34 +02:00
Pavel Labath
184afe1555 Make default_graph_{width,height} lua settings 2010-08-26 17:18:55 +02:00
Pavel Labath
34a34693d7 Make default_bar_{width,height} lua settings 2010-08-26 16:33:13 +02:00
Pavel Labath
b6ed33b82a Make temperature_unit a lua setting 2010-08-25 21:26:14 +02:00
Pavel Labath
0085402d08 Make if_up_strictness a lua setting 2010-08-25 19:40:24 +02:00
Pavel Labath
127ed29fb9 Make stippled_borders a lua setting 2010-08-25 19:26:15 +02:00
Pavel Labath
e59679a0c1 Make pad_percents a lua setting 2010-08-25 19:19:10 +02:00
Pavel Labath
b863f216b8 Make hddtemp_{host,port} lua settings 2010-08-25 19:16:56 +02:00
Pavel Labath
31cbd710a6 Make top_name_width a lua setting 2010-08-25 19:09:15 +02:00
Pavel Labath
3d29d27e8b make maximum_width a lua setting 2010-08-25 19:01:02 +02:00
Pavel Labath
5f60b5427e Improve range_config_setting<>
now it catches negative values assigned to unsigned settings
2010-08-25 18:51:29 +02:00
Pavel Labath
af4633a8ee fix compilation errors in previous commit 2010-08-24 22:27:09 +02:00
Pavel Labath
684933416c Fix segfault in i8k (sf.net #3007167)
Apparently, sometimes the value of i8k.right_fan_status is sometimes null. This just makes sure
the null value isn't passed to atoi(3). A better solution would be to figure out why is it null,
but I cannot do that as I don't have the hardware.
2010-08-24 21:50:07 +02:00
Pavel Labath
2c96799e59 Make {overwrite,append}_file lua settings 2010-08-22 13:04:19 +02:00
Pavel Labath
3dd4593bc9 Make max_text_width a lua setting 2010-08-22 12:49:31 +02:00
Pavel Labath
228f65bc52 Make diskio_avg_samples a lua setting 2010-08-22 12:31:11 +02:00
Pavel Labath
9d30e34a01 Make net_avg_samples a lua setting 2010-08-22 12:28:04 +02:00
Pavel Labath
80f3359634 make cpu_avg_samples a lua setting 2010-08-22 12:24:26 +02:00
Pavel Labath
663e99ee53 Make mpd_{host,password,port} lua settings 2010-08-22 12:17:09 +02:00
Pavel Labath
3a9823b7f3 Add one more pushstring overload to lua::state 2010-08-21 21:06:34 +02:00
Pavel Labath
da5d739fd9 gcc-4.5 fix (kinda)
actually it was more of a bug in the code, but it worked in gcc-4.4
2010-08-21 18:01:16 +02:00
Pavel Labath
4cb6606ea2 Make nvidia_display a lua setting 2010-08-21 14:13:07 +02:00
Pavel Labath
179a1a15b9 Merge branch 'master' into lua-config
Conflicts:
	src/conky.cc
	src/mysql.cc
	src/mysql.h
2010-08-21 14:11:33 +02:00
Pavel Labath
6b45fe1ef0 fix apcupsd compilation 2010-08-19 16:26:34 +02:00
Pavel Labath
a087333285 add missing include 2010-08-19 16:22:09 +02:00
Pavel Labath
1936d6a2ef fix typo 2010-08-16 16:42:30 +02:00
Pavel Labath
abeadb59d7 Use getaddrinfo instead of gethostbyname
Patches conky to use getaddrinfo instead of gethostbyname everywhere. gethostbyname is rather
flawed and doesn't support IPv6 properly.

Patch contributed by Pascal Bleser
2010-08-15 15:56:36 +02:00
Pavel Labath
8ff9b58c3b Fix 'nvidia with ncurses segfaults' (sf.net #3006233)
Additionally, add a nvidia_display variable. This enables the $nvidia variable to be used without
out_to_x yes (X11 support still has to be built in, you just don't have to use it).
2010-08-13 15:23:11 +02:00
Pavel Labath
14511b19ea Make $fs_used_perc and $fs_bar report used space correctly
they reported fs->size - fs->avail, which is not correct if fs has super-user reserved blocks.

note that now $fs_used_perc and $fs_free_perc need not add up to 100%, but that is consistent
with what $fs_used and $fs_free do.
2010-08-12 20:58:21 +02:00
Pavel Labath
699d6bed40 Fix buffer overflows in eve.c (sf.net #3034056) 2010-08-12 17:26:07 +02:00
Pavel Labath
074271b430 Fix gcc warning 2010-07-29 16:31:30 +02:00
Pavel Labath
968f5f4201 auto_ptr is deprecated 2010-06-26 12:33:55 +02:00
Pavel Labath
dad4b80c8f Fix double-free bug in mysql.cc 2010-06-23 19:06:32 +02:00
Pavel Labath
b5a4d899ab Make mysql_* lua settings 2010-06-22 01:34:55 +02:00
Pavel Labath
c33d617179 make templateN a lua setting 2010-06-21 00:37:58 +02:00
Pavel Labath
76a1b17e5c make out_to_http a lua setting 2010-06-20 19:31:17 +02:00
Pavel Labath
8c41d3183e make http_refresh a lua setting 2010-06-20 19:15:56 +02:00
Pavel Labath
78ba5c2800 Merge remote branch 'origin/master' into lua-config
Conflicts:
	src/conky.cc
	src/conky.h
	src/top.cc
2010-06-20 19:09:13 +02:00
Pavel Labath
e70df5e477 Ignore spaces in {} when breaking up arguments to $lua 2010-06-18 17:55:49 +02:00
Pavel Labath
945b52b9a6 Use pass-by-reference paramers in ccurl_thread where possible 2010-06-17 15:19:31 +02:00
Pavel Labath
1cf1b5c631 Fix overflow in ccurl_thread interval caused by 0f213c89 2010-06-17 15:12:42 +02:00