monky
16 years ago* Added patch to use mail_spool correctly (thanks Kapil)
Brenden Matthews [Wed, 2 Apr 2008 18:29:08 +0000 (18:29 +0000)]
* Added patch to use mail_spool correctly (thanks Kapil)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1099 7f574dfc-610e-0410-a909-a81674777703

16 years ago* Fixed segfault when configuration doesn't contain TEXT block (thanks
Brenden Matthews [Wed, 2 Apr 2008 02:12:57 +0000 (02:12 +0000)]
* Fixed segfault when configuration doesn't contain TEXT block (thanks
Pippijn).

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1098 7f574dfc-610e-0410-a909-a81674777703

16 years agodocs
Brenden Matthews [Tue, 1 Apr 2008 21:37:49 +0000 (21:37 +0000)]
docs

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1097 7f574dfc-610e-0410-a909-a81674777703

16 years agocapitalization consistency
Brenden Matthews [Tue, 1 Apr 2008 06:10:58 +0000 (06:10 +0000)]
capitalization consistency

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1096 7f574dfc-610e-0410-a909-a81674777703

16 years agocleanup configure output
Brenden Matthews [Tue, 1 Apr 2008 05:05:24 +0000 (05:05 +0000)]
cleanup configure output

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1095 7f574dfc-610e-0410-a909-a81674777703

16 years agobump version; doc fixes
Brenden Matthews [Tue, 1 Apr 2008 04:59:00 +0000 (04:59 +0000)]
bump version; doc fixes

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1094 7f574dfc-610e-0410-a909-a81674777703

16 years agoConky 1.5.1
Brenden Matthews [Tue, 1 Apr 2008 04:11:14 +0000 (04:11 +0000)]
Conky 1.5.1

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1092 7f574dfc-610e-0410-a909-a81674777703

16 years agomake specifying hdd names more flexible
Phil [Mon, 31 Mar 2008 15:33:54 +0000 (15:33 +0000)]
make specifying hdd names more flexible

* the macro DEV_NAME() "removes" any leading "/dev/"
  if existing
* the only object that needs the full path is hddtemp,
  so add code there to add "/dev/" if necessary
  (can't be done via macro)
* attempt to fix also the hddtemp output, as the
  "degree"-sign seems to be inserted in utf-8 and
  printed in latin.
* hddtemp breaks the rules by inserting the unit
  itself, but as it could be either "C" or "F", this
  would lead to confusion otherwise

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1091 7f574dfc-610e-0410-a909-a81674777703

16 years agodoc cleanup
Brenden Matthews [Mon, 31 Mar 2008 04:56:39 +0000 (04:56 +0000)]
doc cleanup

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1090 7f574dfc-610e-0410-a909-a81674777703

16 years agofix two typos in docs
Phil [Mon, 31 Mar 2008 04:02:33 +0000 (04:02 +0000)]
fix two typos in docs

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1089 7f574dfc-610e-0410-a909-a81674777703

16 years agofix possible mem leak in prepare_diskio_stat, fix return value on failure
Brenden Matthews [Mon, 31 Mar 2008 03:56:03 +0000 (03:56 +0000)]
fix possible mem leak in prepare_diskio_stat, fix return value on failure

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1088 7f574dfc-610e-0410-a909-a81674777703

16 years agomake diskio accept devices starting with "/dev/"
Brenden Matthews [Mon, 31 Mar 2008 03:51:29 +0000 (03:51 +0000)]
make diskio accept devices starting with "/dev/"

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1087 7f574dfc-610e-0410-a909-a81674777703

16 years ago* Added mem_res and mem_vsize to $top.
Brenden Matthews [Sun, 30 Mar 2008 07:04:25 +0000 (07:04 +0000)]
* Added mem_res and mem_vsize to $top.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1084 7f574dfc-610e-0410-a909-a81674777703

16 years agomore battery cleanup
Brenden Matthews [Sun, 30 Mar 2008 04:02:53 +0000 (04:02 +0000)]
more battery cleanup

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1083 7f574dfc-610e-0410-a909-a81674777703

16 years agoadd more checking in libmpdclient; make battery stuff look the same for sysfs and...
Brenden Matthews [Sun, 30 Mar 2008 03:26:55 +0000 (03:26 +0000)]
add more checking in libmpdclient; make battery stuff look the same for sysfs and proc

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1082 7f574dfc-610e-0410-a909-a81674777703

16 years agompd fix take 2
Brenden Matthews [Sun, 30 Mar 2008 02:29:12 +0000 (02:29 +0000)]
mpd fix take 2

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1081 7f574dfc-610e-0410-a909-a81674777703

16 years ago* Fixed bug in libmpdclient that caused file descriptors to be left open.
Brenden Matthews [Sun, 30 Mar 2008 01:23:04 +0000 (01:23 +0000)]
* Fixed bug in libmpdclient that caused file descriptors to be left open.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1080 7f574dfc-610e-0410-a909-a81674777703

16 years agofinally update our debugging CFLAGS
Phil [Sat, 29 Mar 2008 12:55:36 +0000 (12:55 +0000)]
finally update our debugging CFLAGS

* drop -Wmissing-prototypes and -Wmissing-declarations,
  as not every function needs a prototype
* in fact the code builds using these flags, at least for
  my setup (--enable-smapi --enable-wlan --enable-rss
  --with-x --disable-portmon)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1079 7f574dfc-610e-0410-a909-a81674777703

16 years agosome relocation of header includes
Phil [Sat, 29 Mar 2008 12:44:29 +0000 (12:44 +0000)]
some relocation of header includes

* conky.h must come first, because it includes config.h
  which again defines _GNU_SOURCE, which is necessary
  for strdup() & Co.
* declaring cpu_separate in top.h makes no sense, as it
  includes conky.h which declares cpu_separate itself

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1078 7f574dfc-610e-0410-a909-a81674777703

16 years agofix typo
Phil [Sat, 29 Mar 2008 11:49:10 +0000 (11:49 +0000)]
fix typo

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1077 7f574dfc-610e-0410-a909-a81674777703

16 years agomake use of __attribute__
Phil [Sat, 29 Mar 2008 11:35:02 +0000 (11:35 +0000)]
make use of __attribute__

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1076 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdate ChangeLog
Phil [Sat, 29 Mar 2008 11:13:13 +0000 (11:13 +0000)]
update ChangeLog

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1075 7f574dfc-610e-0410-a909-a81674777703

16 years agoimplement upwards path traversal to find fs type
Phil [Sat, 29 Mar 2008 11:09:47 +0000 (11:09 +0000)]
implement upwards path traversal to find fs type

* yes, this is a feature and right now there is something
  like a feature freeze.
* BUT I tested this with: /, /tmp, /dev/mapper, /dev, //,
  /mnt/, /tmp/bla (the last one was non-existent, creating
  it during runtime and even mounting tmpfs on it led to
  expected results.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1074 7f574dfc-610e-0410-a909-a81674777703

16 years agoimprove header style
Phil [Sat, 29 Mar 2008 10:13:25 +0000 (10:13 +0000)]
improve header style

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1073 7f574dfc-610e-0410-a909-a81674777703

16 years agono 'a' modifier in C99
Phil [Sat, 29 Mar 2008 10:11:16 +0000 (10:11 +0000)]
no 'a' modifier in C99

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1072 7f574dfc-610e-0410-a909-a81674777703

16 years agoremove unused global mail_s instance
Phil [Sat, 29 Mar 2008 09:59:27 +0000 (09:59 +0000)]
remove unused global mail_s instance

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1071 7f574dfc-610e-0410-a909-a81674777703

16 years agorename all shadowing variables for -Wshadow
Phil [Sat, 29 Mar 2008 09:58:09 +0000 (09:58 +0000)]
rename all shadowing variables for -Wshadow

* sadly intuitive names like "time" or "index" are already
  globally defined (functions in time.h and string.h)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1070 7f574dfc-610e-0410-a909-a81674777703

16 years agofix register_iconv
Phil [Sat, 29 Mar 2008 07:24:25 +0000 (07:24 +0000)]
fix register_iconv

* not sure but this looked completely wrong, as 'iconv'
  is a function.
* if iconv_cd is NULL, iconv_count is 0 and therefore
  realloc should do the same as malloc here.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1069 7f574dfc-610e-0410-a909-a81674777703

16 years agothe big relocation patch
Phil [Sat, 29 Mar 2008 06:24:04 +0000 (06:24 +0000)]
the big relocation patch

* this moves all declarations to the beginning of their block
  to prevent mixed declarations and code

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1068 7f574dfc-610e-0410-a909-a81674777703

16 years agodon't use %Lu here, too
Phil [Sat, 29 Mar 2008 05:28:33 +0000 (05:28 +0000)]
don't use %Lu here, too

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1067 7f574dfc-610e-0410-a909-a81674777703

16 years agoclear naming for the global text objects
Phil [Sat, 29 Mar 2008 05:23:45 +0000 (05:23 +0000)]
clear naming for the global text objects

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1066 7f574dfc-610e-0410-a909-a81674777703

16 years agofix thread definitions
Phil [Sat, 29 Mar 2008 05:14:35 +0000 (05:14 +0000)]
fix thread definitions

* we code against interfaces (void *f(void *))
* casting function pointers to object pointers
  is a no-no says gcc

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1065 7f574dfc-610e-0410-a909-a81674777703

16 years agodeclaring info in common.c is redundant
Phil [Sat, 29 Mar 2008 04:55:41 +0000 (04:55 +0000)]
declaring info in common.c is redundant

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1064 7f574dfc-610e-0410-a909-a81674777703

16 years agoISO C99 forbids named variadic macros
Phil [Sat, 29 Mar 2008 04:47:10 +0000 (04:47 +0000)]
ISO C99 forbids named variadic macros

* also at least a single variadic argument must be
  specified, so this (absolutely perfect) code doesn't
  work
* this should fix it without changing the way the
  macros are to be called

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1063 7f574dfc-610e-0410-a909-a81674777703

16 years agofix segfault
Brenden Matthews [Sat, 29 Mar 2008 04:41:37 +0000 (04:41 +0000)]
fix segfault

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1062 7f574dfc-610e-0410-a909-a81674777703

16 years agomoving debug cflags below other stuff
Brenden Matthews [Sat, 29 Mar 2008 04:09:09 +0000 (04:09 +0000)]
moving debug cflags below other stuff

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1061 7f574dfc-610e-0410-a909-a81674777703

16 years agomade configure output better; fixed small error in conky.conf
Brenden Matthews [Sat, 29 Mar 2008 04:02:12 +0000 (04:02 +0000)]
made configure output better; fixed small error in conky.conf

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1060 7f574dfc-610e-0410-a909-a81674777703

16 years agomake intense use of const keyword
Phil [Sat, 29 Mar 2008 03:45:36 +0000 (03:45 +0000)]
make intense use of const keyword

* accidential writes to const char * are being detected
  at compile time
* also clean up casting at some places

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1059 7f574dfc-610e-0410-a909-a81674777703

16 years agomatch signedness and format when scanning into variables
Phil [Sat, 29 Mar 2008 03:01:48 +0000 (03:01 +0000)]
match signedness and format when scanning into variables

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1058 7f574dfc-610e-0410-a909-a81674777703

16 years agouse %llu instead of %Lu
Phil [Sat, 29 Mar 2008 02:28:38 +0000 (02:28 +0000)]
use %llu instead of %Lu

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1057 7f574dfc-610e-0410-a909-a81674777703

16 years agofix potential segfault in get_ioscheduler().
Phil [Sat, 29 Mar 2008 02:19:36 +0000 (02:19 +0000)]
fix potential segfault in get_ioscheduler().

returning a const char * instead of a char * will lead to
trouble if the string is then tried to be free()'d.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1056 7f574dfc-610e-0410-a909-a81674777703

16 years agosome linting on function definitions
Phil [Sat, 29 Mar 2008 02:01:03 +0000 (02:01 +0000)]
some linting on function definitions

* instead of empty args "void" should always be specified.
  Using this, the compiler can detect incorrect function calls,
  like with update_stuff().
* No args seems to be interpreted as "unspecified args" by the
  compiler, as with update_mail_count(). So no checking for
  correctness of arguments when calling was done at all.
* This is not complete yet, as I still don't have any BSD for
  testing.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1055 7f574dfc-610e-0410-a909-a81674777703

16 years agooh yeah, battery_percent too
Brenden Matthews [Fri, 28 Mar 2008 23:23:21 +0000 (23:23 +0000)]
oh yeah, battery_percent too

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1054 7f574dfc-610e-0410-a909-a81674777703

16 years ago* Fixed messed up percentages (fs_free_perc, fs_used_perc, mpd_percent).
Brenden Matthews [Fri, 28 Mar 2008 23:17:01 +0000 (23:17 +0000)]
* Fixed messed up percentages (fs_free_perc, fs_used_perc, mpd_percent).

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1053 7f574dfc-610e-0410-a909-a81674777703

16 years agoadding missing include to smapi code
Brenden Matthews [Thu, 27 Mar 2008 20:01:27 +0000 (20:01 +0000)]
adding missing include to smapi code

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1052 7f574dfc-610e-0410-a909-a81674777703

16 years agominor updates; changing package naming to meet http://devmanual.gentoo.org/ebuild...
Brenden Matthews [Thu, 27 Mar 2008 19:46:35 +0000 (19:46 +0000)]
minor updates; changing package naming to meet devmanual.gentoo.org/ebuild-writing/file-format/index.html guidelines to begin doing prereleases

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1051 7f574dfc-610e-0410-a909-a81674777703

16 years agorecord my recent changes
Phil [Wed, 26 Mar 2008 01:23:56 +0000 (01:23 +0000)]
record my recent changes

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1050 7f574dfc-610e-0410-a909-a81674777703

16 years ago * Fixed battery_bar default size
Brenden Matthews [Mon, 24 Mar 2008 21:44:50 +0000 (21:44 +0000)]
* Fixed battery_bar default size

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1049 7f574dfc-610e-0410-a909-a81674777703

16 years agofix indenting in linux.c
Phil [Mon, 24 Mar 2008 20:43:55 +0000 (20:43 +0000)]
fix indenting in linux.c

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1048 7f574dfc-610e-0410-a909-a81674777703

16 years agotwo conky fixes
Phil [Mon, 24 Mar 2008 20:35:20 +0000 (20:35 +0000)]
two conky fixes

* opened file for laptop_mode wasn't closed again
* hopefully fix reading interface addresses

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1047 7f574dfc-610e-0410-a909-a81674777703

16 years agocorrected indenting
Phil [Mon, 24 Mar 2008 20:13:04 +0000 (20:13 +0000)]
corrected indenting

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1046 7f574dfc-610e-0410-a909-a81674777703

16 years agodisk_protect - show queue protection state
Phil [Mon, 24 Mar 2008 20:08:16 +0000 (20:08 +0000)]
disk_protect - show queue protection state

* disk protection needs a kernel patch and is useful in combination with hdaps

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1045 7f574dfc-610e-0410-a909-a81674777703

16 years agocheck validity of specified config
Phil [Mon, 24 Mar 2008 19:24:55 +0000 (19:24 +0000)]
check validity of specified config

* I accidentially used wrong args when testing conky -> segfault
* reproduce using 'conky -c /this/doesnt/exist'
* code should be portable, but untested on freebsd

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1044 7f574dfc-610e-0410-a909-a81674777703

16 years ago* $battery_bar sysfs fix (thanks Marcus)
Brenden Matthews [Mon, 24 Mar 2008 05:09:09 +0000 (05:09 +0000)]
* $battery_bar sysfs fix (thanks Marcus)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1043 7f574dfc-610e-0410-a909-a81674777703

16 years ago * Fixed linux.c compilation problem due to (suspected) broken linux
Brenden Matthews [Mon, 24 Mar 2008 03:38:28 +0000 (03:38 +0000)]
* Fixed linux.c compilation problem due to (suspected) broken linux
    headers

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1042 7f574dfc-610e-0410-a909-a81674777703

16 years agofixed compilation with --disable-x11
Brenden Matthews [Sun, 23 Mar 2008 17:26:41 +0000 (17:26 +0000)]
fixed compilation with --disable-x11

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1041 7f574dfc-610e-0410-a909-a81674777703

16 years agoversion bump for 1.5.1
Brenden Matthews [Sun, 23 Mar 2008 02:33:56 +0000 (02:33 +0000)]
version bump for 1.5.1

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1040 7f574dfc-610e-0410-a909-a81674777703

16 years agoconky 1.5.0
Brenden Matthews [Sun, 23 Mar 2008 02:10:23 +0000 (02:10 +0000)]
conky 1.5.0

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1038 7f574dfc-610e-0410-a909-a81674777703

16 years agoadded propset svn:ignore to ignore all temporary files
Phil [Sat, 22 Mar 2008 23:38:49 +0000 (23:38 +0000)]
added propset svn:ignore to ignore all temporary files

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1037 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdated ChangeLog
Phil [Sat, 22 Mar 2008 23:18:19 +0000 (23:18 +0000)]
updated ChangeLog

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1036 7f574dfc-610e-0410-a909-a81674777703

16 years agosupport displaying current nameservers
Phil [Sat, 22 Mar 2008 22:58:26 +0000 (22:58 +0000)]
support displaying current nameservers

* gathers information from /etc/resolv.conf
* included (still commented) code to prevent reading too often,
  as I'm not sure whether reading from a real FS (not /proc or /sys)
  could generate higher load in some cases -> comments please!

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1035 7f574dfc-610e-0410-a909-a81674777703

16 years agoenable displaying the used ioscheduler for a given disk
Phil [Sat, 22 Mar 2008 21:10:43 +0000 (21:10 +0000)]
enable displaying the used ioscheduler for a given disk

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1034 7f574dfc-610e-0410-a909-a81674777703

16 years agolaptop_mode displays the current laptop mode
Phil [Sat, 22 Mar 2008 20:13:51 +0000 (20:13 +0000)]
laptop_mode displays the current laptop mode

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1033 7f574dfc-610e-0410-a909-a81674777703

16 years agofixed another memleak issue in smapi.c
Phil [Sat, 22 Mar 2008 19:39:43 +0000 (19:39 +0000)]
fixed another memleak issue in smapi.c

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1032 7f574dfc-610e-0410-a909-a81674777703

16 years agomake default gateway information accessible
Phil [Sat, 22 Mar 2008 19:06:09 +0000 (19:06 +0000)]
make default gateway information accessible

* gw_iface prints the interface having a default gateway
* gw_ip prints the gatway's ip
* if_gw jumps if no default gateway exists
* when there are multiple gateways, gw_iface and gw_ip
  only print "multiple" when they are different (allows
  basic debugging of ones networking setup)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1031 7f574dfc-610e-0410-a909-a81674777703

16 years agobury dead code
Phil [Sat, 22 Mar 2008 18:21:46 +0000 (18:21 +0000)]
bury dead code

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1030 7f574dfc-610e-0410-a909-a81674777703

16 years agohopefully fix spaced_print
Phil [Sat, 22 Mar 2008 18:18:25 +0000 (18:18 +0000)]
hopefully fix spaced_print

* when printing only width bytes to buf, with
  width being set to pad_percents which itself
  is set by the user to zero, nothing is printed
* in the unlikely (but possible) case of width > size,
  this could lead to a segfault

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1029 7f574dfc-610e-0410-a909-a81674777703

16 years agosmapi review
Phil [Sat, 22 Mar 2008 18:08:47 +0000 (18:08 +0000)]
smapi review

* rewrote some functions in src/smapi.c for more
  simplicity and less malloc/free hell
* added object cleanup in free_text_objects(),
  valgrind said it was missing
* fixed indenting in construct_text_object()
* fixed use of spaced_print() in generate_text_internal()

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1028 7f574dfc-610e-0410-a909-a81674777703

16 years agoadded $execpi, new ebuild, various other misc updates
Brenden Matthews [Sat, 22 Mar 2008 06:10:54 +0000 (06:10 +0000)]
added $execpi, new ebuild, various other misc updates

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1027 7f574dfc-610e-0410-a909-a81674777703

16 years agoclarifying docs on $execp
Brenden Matthews [Sat, 22 Mar 2008 02:52:50 +0000 (02:52 +0000)]
clarifying docs on $execp

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1026 7f574dfc-610e-0410-a909-a81674777703

16 years agosmall fix for newly introduced bug in non-xft font loading--thanks Phil
Brenden Matthews [Fri, 21 Mar 2008 23:39:38 +0000 (23:39 +0000)]
small fix for newly introduced bug in non-xft font loading--thanks Phil

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1025 7f574dfc-610e-0410-a909-a81674777703

16 years agofixing warning
Brenden Matthews [Fri, 21 Mar 2008 23:17:37 +0000 (23:17 +0000)]
fixing warning

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1024 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdating docs/changelog, again
Brenden Matthews [Thu, 20 Mar 2008 21:29:32 +0000 (21:29 +0000)]
updating docs/changelog, again

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1023 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdating docs/changelog
Brenden Matthews [Thu, 20 Mar 2008 21:29:02 +0000 (21:29 +0000)]
updating docs/changelog

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1022 7f574dfc-610e-0410-a909-a81674777703

16 years agofixing up text_buffer_size stuff
Brenden Matthews [Thu, 20 Mar 2008 21:28:19 +0000 (21:28 +0000)]
fixing up text_buffer_size stuff

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1021 7f574dfc-610e-0410-a909-a81674777703

16 years agofixing problem where p_max_size becomes <1
Brenden Matthews [Thu, 20 Mar 2008 20:56:13 +0000 (20:56 +0000)]
fixing problem where p_max_size becomes <1

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1020 7f574dfc-610e-0410-a909-a81674777703

16 years ago * Added CRLF characters to POP3 and IMAP stuff (should play nicer with
Brenden Matthews [Thu, 20 Mar 2008 20:33:31 +0000 (20:33 +0000)]
* Added CRLF characters to POP3 and IMAP stuff (should play nicer with
some servers now).
* Added preliminary support for parsing the output of external commands
(via $execp)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1019 7f574dfc-610e-0410-a909-a81674777703

16 years agocleaning up
Brenden Matthews [Thu, 20 Mar 2008 19:22:29 +0000 (19:22 +0000)]
cleaning up

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1018 7f574dfc-610e-0410-a909-a81674777703

16 years agotrying to fix more leaks
Brenden Matthews [Thu, 20 Mar 2008 05:28:23 +0000 (05:28 +0000)]
trying to fix more leaks

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1017 7f574dfc-610e-0410-a909-a81674777703

16 years agosvn readme
Brenden Matthews [Thu, 20 Mar 2008 02:58:17 +0000 (02:58 +0000)]
svn readme

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1016 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdating svn readme
Brenden Matthews [Thu, 20 Mar 2008 02:05:27 +0000 (02:05 +0000)]
updating svn readme

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1015 7f574dfc-610e-0410-a909-a81674777703

16 years ago2008-03-19
Brenden Matthews [Wed, 19 Mar 2008 22:28:23 +0000 (22:28 +0000)]
2008-03-19
* Fixed a number of small memory leaks.
* Performed some minor profiling on Conky; introduced
small_text_buffer_size and large_text_buffer_size config options instead
of just text_buffer_size.
* Fixed some minor bugs introduced by new patches.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1014 7f574dfc-610e-0410-a909-a81674777703

16 years agoadding $Id$
Brenden Matthews [Tue, 18 Mar 2008 17:10:27 +0000 (17:10 +0000)]
adding $Id$

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1013 7f574dfc-610e-0410-a909-a81674777703

16 years agoadding missing files
Brenden Matthews [Tue, 18 Mar 2008 17:09:47 +0000 (17:09 +0000)]
adding missing files

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1012 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdating new file props
Brenden Matthews [Tue, 18 Mar 2008 17:08:22 +0000 (17:08 +0000)]
updating new file props

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1011 7f574dfc-610e-0410-a909-a81674777703

16 years ago * Applied 12 patches:
Brenden Matthews [Tue, 18 Mar 2008 00:23:16 +0000 (00:23 +0000)]
* Applied 12 patches:
        1) sysfs battery support (for Linux >=2.6.24) (thanks Kapil)
        2) Improved audacious support patch (thanks Miroslav)
        3) tp_smapi support patch for IBM laptops (thanks Phil)
        4) user info patch (thanks Roland)
        5) added conky build info patch (thanks Roland)
        6) added if_up patch (thanks Phil)
        7) added reload on SIGHUP patch (thanks Jonas)
        8) added pad percentages patch (thanks Jonas)
        9) added fs_type patch (thanks Ryan)
        10) added xmms2 fixes patch (thanks Lassi)
        11) fix sysfs crash patch (thanks Phil)
        12) multiple ip patch ($addrs)
    * Added more alignment support (top_middle, bottom_middle, middle_left,
    and middle_right).

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1010 7f574dfc-610e-0410-a909-a81674777703

16 years ago * Applied 2 patches:
Brenden Matthews [Mon, 17 Mar 2008 22:27:20 +0000 (22:27 +0000)]
* Applied 2 patches:
1) sysfs battery support (for Linux >=2.6.24) (thanks Kapil)
2) Improved audacious support patch (thanks Miroslav)

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1009 7f574dfc-610e-0410-a909-a81674777703

16 years agoFix compilation.
Roman Bogorodskiy [Sun, 24 Feb 2008 16:35:18 +0000 (16:35 +0000)]
Fix compilation.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1008 7f574dfc-610e-0410-a909-a81674777703

16 years agoReformatted all code
Kevin Lyles [Wed, 20 Feb 2008 20:30:45 +0000 (20:30 +0000)]
Reformatted all code

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1007 7f574dfc-610e-0410-a909-a81674777703

16 years agoRefactored the top and top_mem handling to use a switch statement
Kevin Lyles [Wed, 20 Feb 2008 10:01:31 +0000 (10:01 +0000)]
Refactored the top and top_mem handling to use a switch statement

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1006 7f574dfc-610e-0410-a909-a81674777703

16 years agoFixed a few minor type issues
Kevin Lyles [Wed, 20 Feb 2008 10:01:23 +0000 (10:01 +0000)]
Fixed a few minor type issues

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1005 7f574dfc-610e-0410-a909-a81674777703

16 years agoRemoved unused macros and removed X11 options from the options string unless X11...
Kevin Lyles [Wed, 20 Feb 2008 10:01:13 +0000 (10:01 +0000)]
Removed unused macros and removed X11 options from the options string unless X11 is enabled

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1004 7f574dfc-610e-0410-a909-a81674777703

16 years agoAdded missing break statements and a missing freebsd kernel check
Kevin Lyles [Wed, 20 Feb 2008 10:01:00 +0000 (10:01 +0000)]
Added missing break statements and a missing freebsd kernel check

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1003 7f574dfc-610e-0410-a909-a81674777703

16 years agoFixed a typo and re-added an accidentally removed line
Kevin Lyles [Wed, 20 Feb 2008 10:00:45 +0000 (10:00 +0000)]
Fixed a typo and re-added an accidentally removed line

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1002 7f574dfc-610e-0410-a909-a81674777703

16 years agoFixed broken compilation on FreeBSD
Kevin Lyles [Tue, 19 Feb 2008 18:48:54 +0000 (18:48 +0000)]
Fixed broken compilation on FreeBSD

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1001 7f574dfc-610e-0410-a909-a81674777703

16 years agoFixed round_to_int to handle negative numbers properly
Kevin Lyles [Tue, 19 Feb 2008 03:33:12 +0000 (03:33 +0000)]
Fixed round_to_int to handle negative numbers properly

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1000 7f574dfc-610e-0410-a909-a81674777703

16 years agoFixed some typos and restored a few accidentally removed lines in the recent diskio...
Kevin Lyles [Sun, 10 Feb 2008 11:14:19 +0000 (11:14 +0000)]
Fixed some typos and restored a few accidentally removed lines in the recent diskio patch.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@999 7f574dfc-610e-0410-a909-a81674777703

16 years agoadding license header
Brenden Matthews [Sat, 9 Feb 2008 02:28:31 +0000 (02:28 +0000)]
adding license header

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@998 7f574dfc-610e-0410-a909-a81674777703

16 years agoupdating keywords on new files
Brenden Matthews [Sat, 9 Feb 2008 02:26:22 +0000 (02:26 +0000)]
updating keywords on new files

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@997 7f574dfc-610e-0410-a909-a81674777703

16 years ago * Applied 2 patches:
Brenden Matthews [Sat, 9 Feb 2008 02:21:06 +0000 (02:21 +0000)]
* Applied 2 patches:
        1) Add diskio for individual devices
        2) Improved output of units, added "short_units" option

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@996 7f574dfc-610e-0410-a909-a81674777703