Nikolas Garofil
f0211cd43d
fix invalid free in if_up
2009-11-15 23:45:33 +01:00
Pavel Labath
ec879680d2
Forgot to set top_running when $running_processes is used
2009-11-15 23:00:14 +01:00
Nikolas Garofil
2ed76a345f
Added support for $pid_vmpeak, $pid_vmsize, $pid_vmlck, $pid_vmhwm, $pid_vmrss, $pid_vmdata, $pid_vmstk, $pid_vmexe, $pid_vmlib, $pid_vmpte
2009-11-15 19:44:37 +01:00
Pavel Labath
72412c463b
Rename $running_processes to $running_threads, implement real $running_processes
2009-11-15 17:55:03 +01:00
Nikolas Garofil
2c2e87061b
Added support for $gid_name
2009-11-15 17:46:41 +01:00
Nikolas Garofil
3fa868f35b
Added support for $uid_name
2009-11-15 17:21:55 +01:00
Nikolas Garofil
d38049fb96
Added support for $pid_uid, $pid_euid, $pid_suid, $pid_fsuid, $pid_gid, $pid_egid, $pid_sgid and $pid_fsgid
2009-11-15 14:49:55 +01:00
Nikolas Garofil
b8e6b1a58d
Add support for $pid_parent
2009-11-15 13:26:40 +01:00
Phil Sutter
68278e4a45
yet another fix for FreeBSD (somehow sneaked through last time)
2009-11-14 16:47:30 +01:00
Phil Sutter
40792b7d05
fix compiling for freebsd
...
Tested using default options, lua disabled as only lua50 available in
7.2-RELEASE.
2009-11-15 01:36:17 +01:00
Phil Sutter
8f1eae1b94
add generated files for profiling to clean list
2009-11-15 01:36:17 +01:00
Nikolas Garofil
038e182c38
argument of $cmdline_to_pid doesnt have to be the full commandline
2009-11-15 00:51:38 +01:00
Nikolas Garofil
7b6e01b869
fix last commit
2009-11-14 22:17:41 +01:00
Nikolas Garofil
fa459f0539
Make it possible to use other vars as arguments for the $pid-vars, add support for $pid_state_short, add support for $cmdline_to_pid
2009-11-14 22:07:54 +01:00
Cesare Tirabassi
e582acf1a0
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-11-14 15:58:06 +01:00
Cesare Tirabassi
0ee5e9935a
Refactoring of commit 363cf1ab73
...
The problem with the original commit was that some session-managers set
stdin to /dev/null for the processes they launch, therefore the variable
wasn't very effective.
This commit change the variable conky_user_time to user_time.
This variable has a mandatory argument, a console identifier
(eg. tty7, pts/0, etc.).
Once called, this will list how long the user for the given console has been
logged in for.
This commit also allows multiple user_time to be specified for different
consoles, as well as correctly handle a conky restart.
2009-11-14 15:57:45 +01:00
Nikolas Garofil
1a4c2c61e8
Shrink proc.c
2009-11-14 15:08:41 +01:00
Nikolas Garofil
44de7fe6be
Support for $pid_state
2009-11-14 13:58:07 +01:00
Pavel Labath
6db3b5809d
Add middle_middle alignment, mostly for completeness
2009-11-13 21:35:49 +01:00
Nikolas Garofil
ab0b80e495
Added support for $pid_chroot
2009-11-13 16:54:40 +01:00
Cesare Tirabassi
f1272dbd31
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-11-13 16:36:49 +01:00
Cesare Tirabassi
363cf1ab73
Add $conky_user_time (sf.net #2830919 )
...
The bug reporter asks if it is possible to add a variable giving the "current
user time" only, since the variable user_times reports the times for ALL
logged users.
AFAIK, the only info one can gather inside conky, is the login time for the
tty connected to conky's standard input.
This commit adds support for it (it should work on any posix compliant *nix).
Note that in coherence with the definition, the variable is called
conky_user_time (for a single user stand-alone machine used as a desktop
this would be the "current" user time).
2009-11-13 16:30:04 +01:00
Nikolas Garofil
e9d92ae717
Fix bug in $pid_openfiles
2009-11-13 16:29:44 +01:00
Phil Sutter
bde5845077
drop adt746x objects
...
This was really creepy stuff. Last updated in April, 2006 to work with
kernels > 2.6.12. I consider this "fobar" (fscking obsolete beyond all
recognition) and doubt anyone still uses this. If you do, blame me. :)
2009-11-13 00:47:23 +01:00
Nikolas Garofil
52df1d2bf2
Merge branch 'master' of ssh://git.omp.am/home/omp/git/conky
2009-11-13 00:38:13 +01:00
Nikolas Garofil
52629bef61
Added support for $pid_openfiles
2009-11-13 00:36:46 +01:00
Phil Sutter
8922603b91
entropy: outsource code
...
This patch ought to be small and simple ...
The reason why it's not is me wanting the entropy data out of struct
information. This means update_entropy() can not be used anymore, as it
uses this globally available object.
The solution I am presenting here is quite messy regarding header
includes. Hopefully this will go away soon as I plan on creating some
sort of "OS library" containing all OS specific routines and defining
macros for easier capability checking in the non-specific code. This on
the other hand means we'll need "wrappers" around OS specific objects,
but that's not as bad as it seems - having non-specific text objects
only will definitely clean up the code, and capabilities can be checked
where they should be.
2009-11-13 00:02:16 +01:00
Phil Sutter
e787870eb4
top: fix segfault for $if_running
...
The "name" field may be zero, which makes strcmp() freak out.
2009-11-13 00:02:16 +01:00
Nikolas Garofil
e26c9977f2
fix potential bugs in snprintf
2009-11-12 21:48:15 +01:00
Nikolas Garofil
1d0b68e60d
Fix building without C99
2009-11-12 21:33:57 +01:00
Nikolas Garofil
6c4f069f00
Added support for $pid_exe and $pid_stdin, $pid_stdout and $pid_stderr
2009-11-12 20:34:43 +01:00
Nikolas Garofil
6b20156a1b
Added support for $pid_environ_list
2009-11-12 15:42:18 +01:00
Nikolas Garofil
d595a65077
Add support for $pid_environ
2009-11-11 22:56:12 +01:00
Nikolas Garofil
cb96b3bcca
Add cwd to $pid and split into $pid_cmdline and $pid_cwd
2009-11-11 16:27:19 +01:00
Nikolas Garofil
aa761584db
fix previous commit
2009-11-11 13:44:50 +01:00
Nikolas Garofil
db99693091
fix tiny compile problem
2009-11-11 13:43:14 +01:00
Nikolas Garofil
65cf0439a0
Fix memleak and change literals to defines
2009-11-11 13:23:05 +01:00
Nikolas Garofil
8276da8777
Add proc.c and proc.h
2009-11-11 11:33:28 +01:00
Nikolas Garofil
46dd6ca513
Add support for ${pid cmdline}
2009-11-11 10:55:25 +01:00
Nikolas Garofil
827be3bde8
Fix $if_mpd_playing and $mpd_percent when you stop playing a song, thanks Sakari Matikka
2009-11-10 13:23:00 +01:00
Nikolas Garofil
ccbaf9ea89
Fix memleak
2009-11-10 00:15:30 +01:00
Nikolas Garofil
7025477402
Fix $scroll only scrolls once
2009-11-09 02:38:20 +01:00
Nikolas Garofil
e292dd5e28
Fix segfault and memleaks in curl
2009-11-08 21:49:28 +01:00
Phil Sutter
37071ccd8e
ifblock objects: fix bug for sub-object parsing ifblocks
...
When dropping the ifblock field of struct text_object, I short-sightedly
reused the sub field for holding the pointer to the matching else/endif.
This however doesn't work for objects parsing their own object list, as
they need the sub field for themselfs.
Since we have it, simply reuse the special_data field instead and hope
there won't ever be an object which is both special and ifblock. ;)
2009-11-08 20:20:47 +01:00
Phil Sutter
581c86f070
fix conversion bug when freeing exec objects
2009-11-08 20:20:47 +01:00
Nikolas Garofil
a1e199c85a
Fix building with metar but without xoap
2009-11-08 18:00:13 +01:00
Nikolas Garofil
ce99d1a782
Use a define for the maximum number of network devices
2009-11-07 23:46:46 +01:00
Nikolas Garofil
aad43bea8d
Added support for $threads and fixed $processes on Linux
2009-11-07 18:14:04 +01:00
Nikolas Garofil
1ed564fd0b
Revert "Added support for and fixed on Linux"
...
This reverts commit 43c7c0373b
.
2009-11-07 18:13:21 +01:00
Nikolas Garofil
43c7c0373b
Added support for and fixed on Linux
2009-11-07 18:06:07 +01:00
Nikolas Garofil
ff1fab20c2
Fix building with --disable-xft and add ncurses to the -v option
2009-11-07 15:32:03 +01:00
Nikolas Garofil
68ca9485da
Fix building with --disable-iostats
2009-11-07 13:21:47 +01:00
Nikolas Garofil
74145a7fef
Fix building with --disable-x11 --disable-lua --disable-ncurses
2009-11-07 12:21:48 +01:00
Phil Sutter
e909cdd4eb
scan_graph: allow giving a "hint" about a good scale value
...
This is more or less a temporary fix to restore the former behaviour. In
the long term objects will define a max value, which will be of use for
all kinds of meters.
2009-11-06 00:10:00 +01:00
Phil Sutter
c88d01af95
weather: fix this embarrassing bug
2009-11-05 22:27:34 +01:00
Phil Sutter
556751c8c9
top: drop problematic field totalmem
...
The field totalmem was formerly used to hold the percentage of used mem
by a process. So at update time, the field info.memmax was being
addressed, which is potentially being updated at the same time, As all
updating routines potentially run in parallel. Though there is an
(quite) easy fix for this: calculate the percentage upon object
printing. This works because conky synchronises all update routines
right before printing the result. (To omit locking on it's own.)
2009-11-03 23:24:09 +01:00
Phil Sutter
e08bc8fad7
enum special_types: define nonspecial for completeness
2009-11-03 23:23:23 +01:00
Phil Sutter
4dd54b3df6
if_gw: no need to free unused obj->data.s
2009-11-03 23:23:23 +01:00
Phil Sutter
f61d8d108f
text_object: completely remove the need for data.ifblock
2009-11-03 23:23:23 +01:00
Phil Sutter
9a770295d1
drop useless ifblock.str
2009-11-03 23:23:23 +01:00
Phil Sutter
66c187e7a1
no need to save the args passed to if_empty and if_match
2009-11-03 23:23:23 +01:00
Phil Sutter
7304378d73
drop a few unused fields from struct text_object
2009-11-03 23:23:23 +01:00
Phil Sutter
d9ec45b25d
drop struct text_object field pair, since it got unused due to latest commits
2009-11-03 23:23:23 +01:00
Phil Sutter
76b433c809
drop struct text_object field f
2009-11-03 23:23:23 +01:00
Phil Sutter
f98a360089
drop now unused SIZE_DEFAULTS macro
2009-11-03 23:23:23 +01:00
Phil Sutter
041059f1c2
specials: convert stippled_hr object to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
3458db80aa
specials: convert tab object to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
50e2b5961a
specials: convert gauge objects to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
bbec0db498
specials: convert graph objects to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
a4777c7c55
misc smaller fixes
2009-11-03 23:23:23 +01:00
Phil Sutter
22251dca51
specials: introduce dedicated per-object data and merge graph objects
2009-11-03 23:23:23 +01:00
Phil Sutter
0bed05997b
review load* code
2009-11-03 23:23:23 +01:00
Phil Sutter
42dfb7ac69
move loadavg and loadgraph code to common.c
2009-11-03 23:23:23 +01:00
Phil Sutter
63079a2075
local_mails: convert to generic object payload
...
This also includes a little header include cleanup.
2009-11-03 23:23:22 +01:00
Phil Sutter
90ed7d8a2c
mail: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
35ecbb3330
mail: use a private common struct mail_s instead of info.mail
2009-11-03 23:23:22 +01:00
Phil Sutter
ac99833646
text_object: use field i instead of cpu_index
2009-11-03 23:23:22 +01:00
Phil Sutter
3a365bcd33
if_up: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
2112b1f0ee
drop now unused sensor field
2009-11-03 23:23:22 +01:00
Phil Sutter
0de0047bdc
obsd_sensors: cleanup code (untested)
2009-11-03 23:23:22 +01:00
Phil Sutter
f2188a67a1
ibm: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
c8f07daceb
net_stats: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
0740e91911
diskio: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
aa4d61d3d7
combine: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
64ec783475
scroll: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
bf9263bc5e
read_tcp: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
b74e0494de
exec: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
0dc60481cf
top: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
4b0c1d3226
mboxscan: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
dd36fc4caa
mixer: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
c45decda5e
curl: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
4716969cc6
weather objects: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
046ae1dd61
rss: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
9202a9da87
eve: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
94ac89e091
sysfs objects: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
d2be5980ca
tcp_portmon: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
8d1640f30b
fs_*: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
f31e5cefe7
fs_bar, fs_bar_free: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
f6942c8c98
tailhead: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
1d73d82b87
convert tztime to generic object payload
2009-11-03 23:23:22 +01:00